26 lines
554 B
JavaScript
26 lines
554 B
JavaScript
'use strict';
|
|
import mongoose from 'mongoose';
|
|
|
|
const Schema = mongoose.Schema;
|
|
const ObjectId = Schema.Types.ObjectId;
|
|
/**
|
|
* 操作日志
|
|
*/
|
|
const Template = new mongoose.Schema({
|
|
// 游戏id
|
|
tpl_name: {type: String},
|
|
tpl_id: {type: String},
|
|
prev_url: {type: String},
|
|
base_style: {type: Object},
|
|
views: [{type: Object}],
|
|
comment: {type: String},
|
|
createdBy: {type: String},
|
|
deleted: {type: Boolean, default: false}
|
|
}, {
|
|
collection: 'mp_share_template',
|
|
timestamps: true,
|
|
});
|
|
|
|
export default mongoose.model('Template', Template);
|
|
|