t_breed.js 1.2 KB

12345678910111213141516171819202122232425262728
  1. //养殖基础信息
  2. var mongoose = require("./mongodb");
  3. var Schema = mongoose.Schema;
  4. var breedSchema = new Schema(
  5. {
  6. CITY_CODE:{type: String,default:''},//城市编码
  7. CULTIVATION_BATCH:{type: String,default:''},//养殖批次码
  8. ENTERPRISE_CODE:{type: String,default:''},//养殖者编码
  9. ENTERPRISE_NAME:{type: String,default:''},//养殖者名称
  10. PERSON_IN_CHARGE:{type: String,default:''},//养殖负责人姓名
  11. BASE_CODE:{type: String,default:''},//基地编码
  12. BASE_NAME:{type: String,default:''},//基地名称
  13. COLONY_HOUSE_CODE:{type: String,default:''},//圈舍编号
  14. COLONY_HOUSE_NAME:{type: String,default:''},//圈舍名称
  15. CULTIVATION_ACREAGE:{type: Number},//养殖数量
  16. CULTIVATION_DATE:{type: Date,default:Date.now},//养殖时间
  17. VARIETY_CODE:{type: String,default:''},//品种编码
  18. VARIETY_NAME:{type: String,default:''},//品种名称
  19. AREA_CODE:{type: String,default:''},//所属地区编码
  20. AREA_NAME:{type: String,default:''},//所属地区名称
  21. });
  22. var breed = mongoose.model('breed',
  23. breedSchema,'t_breed');
  24. module.exports = breed;