12345678910111213141516171819202122232425262728 |
- //养殖基础信息
- var mongoose = require("./mongodb");
- var Schema = mongoose.Schema;
- var breedSchema = new Schema(
- {
- CITY_CODE:{type: String,default:''},//城市编码
- CULTIVATION_BATCH:{type: String,default:''},//养殖批次码
- ENTERPRISE_CODE:{type: String,default:''},//养殖者编码
- ENTERPRISE_NAME:{type: String,default:''},//养殖者名称
- PERSON_IN_CHARGE:{type: String,default:''},//养殖负责人姓名
- BASE_CODE:{type: String,default:''},//基地编码
- BASE_NAME:{type: String,default:''},//基地名称
- COLONY_HOUSE_CODE:{type: String,default:''},//圈舍编号
- COLONY_HOUSE_NAME:{type: String,default:''},//圈舍名称
- CULTIVATION_ACREAGE:{type: Number},//养殖数量
- CULTIVATION_DATE:{type: Date,default:Date.now},//养殖时间
- VARIETY_CODE:{type: String,default:''},//品种编码
- VARIETY_NAME:{type: String,default:''},//品种名称
- AREA_CODE:{type: String,default:''},//所属地区编码
- AREA_NAME:{type: String,default:''},//所属地区名称
- });
- var breed = mongoose.model('breed',
- breedSchema,'t_breed');
- module.exports = breed;
|