bill_class.js 663 B

1234567891011121314151617181920
  1. // 清单分类
  2. const mongoose = require('mongoose');
  3. const Schema = mongoose.Schema;
  4. const billClass = new Schema({
  5. compilationID: { type: String, index: true},
  6. name: String,
  7. key: String,
  8. code: String,
  9. itemCharacter: String,
  10. class: { type: Number, index: true }, // 分类
  11. classCode: { type: String, index: true }, // 类别别名
  12. requiredRationIDs: { type:[[Number]], default: [[]] }, // 必套定额ID
  13. optionalRationIDs: { type: [Number], default: [] }, // 选套定额ID
  14. errorRationIDs: { type: [Number], default: [] }, // 错套定额ID
  15. }, {versionKey: false});
  16. mongoose.model('billClass', billClass, 'billClass');