2019-11-27 17:02:44 +08:00

22 lines
493 B
JavaScript

'use strict';
import mongoose from 'mongoose';
/**
* 生成器
*/
const Maker = new mongoose.Schema({
title: { type: String, default: '' },
desc: { type: String, default: '' },
template: { type: String, default: '' },
list: { type: Object, default: {} },
tags: { type: String, default: '' },
view: { type: Number, default: 0 },
isRecommand: { type: Boolean, default: false }
}, {
collection: 'maker',
timestamps: true,
});
export default mongoose.model('Maker', Maker);