unit_price_file.js 505 B

123456789101112131415161718192021
  1. /**
  2. * 具体单价数据结构
  3. *
  4. * @author CaiAoLin
  5. * @date 2017/6/29
  6. * @version
  7. */
  8. import mongoose from "mongoose";
  9. let Schema = mongoose.Schema;
  10. let collectionName = 'unit_price_file';
  11. let modelSchema = {
  12. // 自增id
  13. id: Number,
  14. // 标段id
  15. project_id: Number,
  16. // 显示名称
  17. name: String,
  18. };
  19. let model = mongoose.model(collectionName, new Schema(modelSchema, {versionKey: false, collection: collectionName}));
  20. export {model as default, collectionName as collectionName};