| 1234567891011121314151617181920212223242526272829303132 |
- "use strict";
- /**
- *
- *
- * @author zhang
- * @date 2019/3/5
- * @version
- */
- //子目增加费模板库
- const mongoose = require("mongoose");
- const Schema = mongoose.Schema;
- const oprSchema = require("../all_schemas/opr_schema");
- const itemIncreaseLib = new Schema(
- {
- ID: { type: String, index: true },
- name: String,
- creator: String,
- createDate: Number,
- recentOpr: [oprSchema],
- template: {
- type: Schema.Types.Mixed,
- default: [],
- },
- },
- { versionKey: false }
- );
- mongoose.model(
- "std_item_increase_lib",
- itemIncreaseLib,
- "std_item_increase_lib"
- );
|