作者 yangfu

模型初始化

正在显示 26 个修改的文件 包含 255 行增加5 行删除
1 version: v1 1 version: v1
2 kind: Attribute 2 kind: Attribute
3 metadata: 3 metadata:
4 - name: productCalendaryId  
5 - description: 工厂日历ID 4 + name: attendanceStatus
  5 + description: 考勤状态 1.未审核 2:已审核 3.自动审核
6 type: 6 type:
7 primitive: int 7 primitive: int
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: attendanceType
  5 + description: 考勤类型 1.正常 2.支援
  6 + type:
  7 + primitive: int
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: productAttendanceId
  5 + description: 考勤记录ID
  6 + type:
  7 + primitive: int
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: signIn
  5 + description: 签到
  6 + type:
  7 + primitive: datetime
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: signOut
  5 + description: 签退
  6 + type:
  7 + primitive: datetime
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: workTimeAfter
  5 + description: 工时(审核后)
  6 + type:
  7 + primitive: float64
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: workTimeBefore
  5 + description: 工时(审核前)
  6 + type:
  7 + primitive: float64
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: remark
  5 + description: 备注
  6 + type:
  7 + primitive: string
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: batchNumber
  5 + description: 批号
  6 + type:
  7 + primitive: string
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: machine
  5 + description: 机台 (A、B、C、D 区分机器大小)
  6 + type:
  7 + primitive: string
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: planDevoted
  5 + description: 计划投入
  6 + type:
  7 + schema: unitQuantity
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: planProductName
  5 + description: 计划的产品名称
  6 + type:
  7 + primitive: string
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: planStatus
  5 + description: 计划状态 (1:上线 2:下线 默认下线)
  6 + type:
  7 + primitive: int
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: productCategory
  5 + description: 产品类别
  6 + type:
  7 + primitive: string
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: productRecordId
  5 + description: 生产记录ID
  6 + type:
  7 + primitive: int
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: productRecordType
  5 + description: 生产记录类型:1:领料 2:退料 4:称重 8:二级品称重
  6 + type:
  7 + primitive: int
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: productWeigh
  5 + description: 产能
  6 + type:
  7 + primitive: int
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: productWorker
  5 + description: 生产工人
  6 + type:
  7 + schema: user
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: weight
  5 + description: 重量
  6 + type:
  7 + primitive: float64
@@ -14,10 +14,12 @@ metadata: @@ -14,10 +14,12 @@ metadata:
14 required: true 14 required: true
15 - ref: productName 15 - ref: productName
16 required: true 16 required: true
17 - - ref: spec  
18 - required: true  
19 - - ref: productExt 17 + - ref: productCategory
20 required: true 18 required: true
  19 + - name: productSpec
  20 + description: 产品规格
  21 + type:
  22 + schema: unitQuantity
21 - ref: createdAt 23 - ref: createdAt
22 required: true 24 required: true
23 - ref: updatedAt 25 - ref: updatedAt
  1 +version: v1
  2 +kind: Schema
  3 +metadata:
  4 + name: productAttendanceRecord
  5 + description: 生产考勤记录
  6 + attributes:
  7 + - ref: productAttendanceId
  8 + required: true
  9 + - ref: orgId
  10 + required: true
  11 + - ref: productId
  12 + required: true
  13 + - ref: attendanceType
  14 + required: true
  15 + - ref: productWorker
  16 + required: true
  17 + - ref: workStation
  18 + required: true
  19 + - ref: signIn
  20 + required: true
  21 + - ref: signOut
  22 + required: true
  23 + - ref: attendanceStatus
  24 + required: true
  25 + - ref: workTimeBefore
  26 + required: true
  27 + - ref: workTimeAfter
  28 + required: true
  29 + - ref: createdAt
  30 + required: true
  31 + - ref: updatedAt
  32 + required: true
  33 + - ref: deletedAt
  34 + required: true
  1 +version: v1
  2 +kind: Schema
  3 +metadata:
  4 + name: productPlan
  5 + description: 生产计划
  6 + attributes:
  7 + - ref: productPlanId
  8 + required: true
  9 + - ref: companyId
  10 + required: true
  11 + - ref: orgId
  12 + required: true
  13 + - ref: batchNumber
  14 + required: true
  15 + - ref: productDate
  16 + required: true
  17 + - name: workshop
  18 + description: 车间
  19 + type:
  20 + schema: workshop
  21 + - ref: workOn
  22 + required: true
  23 + - ref: machine
  24 + required: true
  25 + - ref: planProductName
  26 + required: true
  27 + - ref: planDevoted
  28 + required: true
  29 + - ref: planStatus
  30 + required: true
  31 + - ref: workStation
  32 + required: true
  33 + - ref: remark
  34 + required: true
  35 + - ref: createdAt
  36 + required: true
  37 + - ref: updatedAt
  38 + required: true
  39 + - ref: deletedAt
  40 + required: true
  1 +version: v1
  2 +kind: Schema
  3 +metadata:
  4 + name: productRecord
  5 + description: 生产记录
  6 + attributes:
  7 + - ref: productRecordId
  8 + required: true
  9 + - ref: companyId
  10 + required: true
  11 + - ref: orgId
  12 + required: true
  13 + - ref: productRecordType
  14 + required: true
  15 + - ref: productWorker
  16 + required: true
  17 + - ref: workStation
  18 + required: true
  19 + - ref: createdAt
  20 + required: true
  21 + - ref: updatedAt
  22 + required: true
  23 + - ref: deletedAt
  24 + required: true
  25 + - name: productRecordInfo
  26 + description: 生产记录信息
  27 + type:
  28 + schema: productRecordInfo
  1 +version: v1
  2 +kind: Schema
  3 +metadata:
  4 + name: productRecordInfo
  5 + description: 生产记录信息 (物料、批次、产能(产能、领料、退料、二级品))
  6 + attributes:
  7 + - ref: productWeigh
  8 + required: true
  9 + - name: material
  10 + description: 物料信息
  11 + type:
  12 + schema: unitConversion
  13 + - name: productPlan
  14 + description: 生产计划信息(批次)
  15 + type:
  16 + primitive: productPlan
@@ -8,3 +8,7 @@ metadata: @@ -8,3 +8,7 @@ metadata:
8 required: true 8 required: true
9 - ref: unit 9 - ref: unit
10 required: true 10 required: true
  11 + - ref: unitWeight
  12 + required: true
  13 + - ref: weight
  14 + required: true