/** * 版本管理数据模型 * * @author CaiAoLin * @date 2017/7/28 * @version */ import mongoose from "mongoose"; let Schema = mongoose.Schema; let collectionName = 'version'; let modelSchema = { // 自增id id: { type: Number, index: true }, // 名称 name: String, // 标准清单 standard_bill: Schema.Types.Mixed, // 定额库 ration_lib: Schema.Types.Mixed }; let model = mongoose.model(collectionName, new Schema(modelSchema, {versionKey: false, collection: collectionName})); export {model as default, collectionName as collectionName};