1234567891011121314151617181920212223242526272829303132333435 |
- /**
- * Created by Tony on 2021/9/10.
- */
- //工程特征库
- const mongoose = require('mongoose');
- const Schema = mongoose.Schema;
- const oprSchema = require('../all_schemas/opr_schema');
- const project_feature_lib = new Schema({
- ID:{type:String,index:true},
- creator: String,
- createDate: Number,
- recentOpr: [oprSchema],
- name: String,
- compilationId: String,
- compilationName: String,
- feature: {
- basicKeyOptions: {
- type: [Schema.Types.Mixed],
- default: []
- },
- basicMappings:{
- type: [Schema.Types.Mixed],
- default: []
- },
- factorMappings: {
- type: [Schema.Types.Mixed],
- default: []
- }
- }
- },
- {versionKey: false}
- );
- mongoose.model("std_bills_unitprice_feature_lib", project_feature_lib,"std_bills_unitprice_feature_lib");
|