/** * 具体单价数据结构 * * @author CaiAoLin * @date 2017/6/29 * @version */ import mongoose from "mongoose"; let deleteSchema = require('../../../../public/models/delete_schema'); let Schema = mongoose.Schema; let collectionName = 'unit_price_file'; let modelSchema = { // 自增id id: Number, // 标段id project_id: { type: Number, index: true }, // 显示名称 name: String, // 所属用户id user_id: Number, // 顶层projectId root_project_id: Number, deleteInfo: deleteSchema }; let model = mongoose.model(collectionName, new Schema(modelSchema, {versionKey: false, collection: collectionName})); export {model as default, collectionName as collectionName};