明树Git Lab

Commit 3067f836 authored by zfp1's avatar zfp1

update

parent ef28bd7e
...@@ -9,7 +9,8 @@ const moment = require('moment'); ...@@ -9,7 +9,8 @@ const moment = require('moment');
const letianProductDeepSchema = new Schema({ const letianProductDeepSchema = new Schema({
sourcePlantProduct: { sourcePlantProduct: {
type: String, type: mongoose.Types.ObjectId,
ref: 'ProductPre',
comment: "来源初加工产品 靠产品名称关联" comment: "来源初加工产品 靠产品名称关联"
}, },
preProductName: { preProductName: {
...@@ -29,7 +30,8 @@ const letianProductDeepSchema = new Schema({ ...@@ -29,7 +30,8 @@ const letianProductDeepSchema = new Schema({
comment: "库存量" comment: "库存量"
}, },
productPhotos: { productPhotos: {
type: String, type: mongoose.Types.ObjectId,
ref: 'File',
comment: "产品照片" comment: "产品照片"
}, },
introduction: { introduction: {
......
...@@ -34,7 +34,7 @@ const letianProductPlantSchema = new Schema({ ...@@ -34,7 +34,7 @@ const letianProductPlantSchema = new Schema({
comment: "种植规划 关联信息 按照农作物的名称关联" comment: "种植规划 关联信息 按照农作物的名称关联"
}, },
productNumber: { productNumber: {
type: String, type: Number,
comment: "产品编号" comment: "产品编号"
}, },
......
...@@ -8,7 +8,8 @@ const moment = require('moment'); ...@@ -8,7 +8,8 @@ const moment = require('moment');
const letianProductPreSchema = new Schema({ const letianProductPreSchema = new Schema({
sourcePlantProduct: { sourcePlantProduct: {
type: String, type: mongoose.Types.ObjectId,
ref: 'ProductPlant',
comment: "来源种植产品" comment: "来源种植产品"
}, },
preProductName: { preProductName: {
......
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