projects.js 957 B

1234567891011121314151617181920212223242526272829303132333435
  1. /**
  2. * Created by Zhong on 2018/3/22.
  3. */
  4. /*项目*/
  5. const mongoose = require('mongoose');
  6. const Schema = mongoose.Schema;
  7. const deleteSchema = require('../all_schemas/delete_schema');
  8. const collectionName = 'projects';
  9. const ProjectSchema = new Schema({
  10. "ID": Number,
  11. "ParentID": Number,
  12. "NextSiblingID": Number,
  13. "userID": String,
  14. "name": String,
  15. "projType": String,
  16. "recentDateTime": Date,
  17. "createDateTime": Date,
  18. "compilation": String,
  19. "deleteInfo": deleteSchema,
  20. 'fullFolder': Array,
  21. "property": {
  22. type: Schema.Types.Mixed,
  23. default: {}
  24. },
  25. "summaryFees":{
  26. totalFee: String,
  27. estimateFee: String,
  28. safetyFee: String,
  29. chargeFee: String
  30. },
  31. "changeMark":String,//更新标记 feeRate:费率文件发生了改变,unitFile 单件文件发生了改变
  32. "remark":String //备注
  33. });
  34. mongoose.model(collectionName, ProjectSchema, collectionName);