1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- /**
- *屠宰厂牲畜进场信息表
- */
- var mongoose = require("./mongodb");
- var Schema = mongoose.Schema;
- var moment=require('moment');
- var animalInSchema = new Schema(
- {
- AMOUNT:{type: Number},//进场重量
- AREA_CODE:{type: String,default:''},//所属地区编码
- AREA_NAME:{type: String,default:''},//所属地区名称
- BUTCHER_FAC_ID:{type: String,default:''},//屠宰企业编码
- BUTCHER_FAC_NAME:{type: String,default:''},//屠宰企业名称
- CITY_CODE:{type: String,default:''},//城市编码
- DEAD_NUM:{type: Number},//途亡数量
- ENTERPRISE_CODE:{type: String,default:''},//养殖者编码
- ENTERPRISE_NAME:{type: String,default:''},//养殖者名称
- IN_DATE:{type: Date},//进厂时间
- PRICE:{type: Number},//进场价格
- QUARANTINE_ID:{type: String,default:''},//动物检疫合格证明(动物)编号
- QUARANTINE_NUM:{type: Number,default:0},//检疫证进场数量
- RESULT:{type: Number,default:0},//检疫结果 0-不合格、1-合格
- SELLER_ID:{type: String,default:''},//货主编码
- SELLER_NAME:{type: String,default:''},//货主名称
- SHIPPING_CODE:{type: String,default:''},//物流单号
- SPECIFICATION:{type: Number},//规格
- UNIT:{type: String,default:''},//计量单位
- VARIETY_CODE:{type: String,default:''},//品种编码
- VARIETY_NAME:{type: String,default:''},//品种名称
- },{
- strict: true,
- toObject: {
- virtuals: true
- },
- toJSON: {
- virtuals: true
- }
- });
- var animalIn = mongoose.model('animalIn',
- animalInSchema,'t_animalIn');
- module.exports = animalIn;
|