明树Git Lab

Commit bd340c96 authored by zfp1's avatar zfp1

update

parent 89deca4a
......@@ -6,7 +6,41 @@ const moment = require('moment');
* 溯源码
*/
const letianProTraceCodeSchema = new Schema({
proName: {
type: String,
comment: "产品名称"
},
brand: String, //品牌
proInDate: {
type: Date,
default: Date.now,
get: v => moment(v).format("YYYY-MM-DD"),
comment: "产品入库日期"
},
proOutDate: {
type: Date,
default: Date.now,
get: v => moment(v).format("YYYY-MM-DD"),
comment: "产品出库日期"
},
agrProVar: {
type: String,
comment: "农产品品种"
},
agrPlantBase: {
type: String,
comment: "农产品种植基地"
},
harvestDate: {
type: Date,
default: Date.now,
get: v => moment(v).format("YYYY-MM-DD"),
comment: "采收时间"
},
flourMerchant: {
type: String,
comment: "面粉商"
},
batchNumber: {
type: String,
comment: "批次号"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment