feat: add ci cd files dont edit those files
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
const mongoose = require('mongoose');
|
||||
const mongoosePaginate = require('mongoose-paginate-v2');
|
||||
|
||||
|
||||
function PDF(pdf) {
|
||||
if (pdf) return '/uploads/files/ReadOnly-PDF' + pdf
|
||||
}
|
||||
const BookSchema = mongoose.Schema({
|
||||
title: String,
|
||||
uri: String,
|
||||
slides:{
|
||||
default:[],
|
||||
type:Array
|
||||
}
|
||||
});
|
||||
|
||||
BookSchema.plugin(mongoosePaginate);
|
||||
|
||||
module.exports = mongoose.model('Book', BookSchema);
|
||||
Reference in New Issue
Block a user