MOOver.js/database/birthdaySchema.js

18 lines
313 B
JavaScript
Raw Normal View History

2022-02-18 12:54:33 +00:00
const mongoose = require('mongoose');
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: '',
},
});
module.exports=mongoose.model('birthdays', birthdaySchema);
2022-02-18 12:54:33 +00:00