feat: add ci cd files dont edit those files
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
const mongoose = require('mongoose');
|
||||
const mongoosePaginate = require('mongoose-paginate-v2');
|
||||
|
||||
|
||||
const CounterDaySchema = mongoose.Schema({
|
||||
title : String,
|
||||
expireDate : Date,
|
||||
publish : {type : Boolean , default: true},
|
||||
_creator :{type: mongoose.Schema.Types.ObjectId, ref: 'User'},
|
||||
_updatedBy: {type: mongoose.Schema.Types.ObjectId, ref: 'User'},
|
||||
});
|
||||
|
||||
CounterDaySchema.plugin(mongoosePaginate);
|
||||
|
||||
module.exports = mongoose.model('CounterDay', CounterDaySchema);
|
||||
Reference in New Issue
Block a user