2022-02-18 12:54:33 +00:00
|
|
|
const mongoose = require('mongoose');
|
|
|
|
|
2023-02-17 08:33:56 +00:00
|
|
|
const birthdaySchema = new mongoose.Schema({
|
2022-02-18 12:54:33 +00:00
|
|
|
id: {
|
|
|
|
type: String,
|
|
|
|
unique: true,
|
|
|
|
},
|
|
|
|
day: Number,
|
|
|
|
month: Number,
|
|
|
|
nickname: {
|
|
|
|
type: String,
|
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
});
|
|
|
|
|
2023-02-17 08:33:56 +00:00
|
|
|
module.exports=mongoose.model('birthdays', birthdaySchema);
|
2022-02-18 12:54:33 +00:00
|
|
|
|