var Schema = require('mongoose').Schema;

let dailySchema = new Schema({
  art: { type: Schema.Types.ObjectId, required: true, index: true, unique: true, ref: 'Art', desc: 'Art Id' },
  artInfo: { type: Schema.Types.Mixed, defualt: {},  desc: 'Art Doc' }, // art详情嵌入在这里，用Mixed类型更灵活一点
  dailyDate: { type: Date, index: true, required: true, desc: '每日图时间', orderable: true, },
});

module.exports = dailySchema;

