|
@@ -9,25 +9,10 @@ import mongoose from "mongoose";
|
|
|
|
|
|
let Schema = mongoose.Schema;
|
|
|
let collectionName = 'compilation';
|
|
|
-let engineeringListSchema = new Schema({
|
|
|
- // 工程专业id
|
|
|
- engineering: {
|
|
|
- type: Number
|
|
|
- },
|
|
|
- engineering_id: {
|
|
|
- type: Schema.Types.Mixed,
|
|
|
- default: []
|
|
|
- }
|
|
|
-}, {_id: false});
|
|
|
let childrenSchema = new Schema({
|
|
|
id:String,
|
|
|
// 计价名称
|
|
|
name: String,
|
|
|
- // 工程专业列表
|
|
|
- engineering_list: {
|
|
|
- type: [engineeringListSchema],
|
|
|
- default: []
|
|
|
- },
|
|
|
// 是否启用
|
|
|
enable: {
|
|
|
type: Boolean,
|