| 123456789101112131415161718192021222324252627282930 | /** * 配合比标准库数据模型 * * @author CaiAoLin * @date 2017/7/7 * @version */import mongoose from "mongoose";let Schema = mongoose.Schema;let collectionName = 'std_mix_ratio';let modelSchema = {    // 编码    code: String,    // 名称    name: String,    // 消耗量    consumption: Number,    // 关联工料机的编码    connect_code: {        type: String,        index: true    },    // 对应的工料机总库id    glj_id: Number,    // 对应工料机类型    glj_type: Number};let model = mongoose.model(collectionName, new Schema(modelSchema, {versionKey: false, collection: collectionName}));export {model as default, collectionName as collectionName};
 |