明树Git Lab
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
L
letian_backend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zengfanpei
letian_backend
Commits
bd340c96
Commit
bd340c96
authored
Mar 10, 2025
by
zfp1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
89deca4a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
1 deletion
+35
-1
letianProTraceCode.js
db/models/letianProTraceCode.js
+35
-1
No files found.
db/models/letianProTraceCode.js
View file @
bd340c96
...
...
@@ -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
:
"批次号"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment