作者 yangfu

模型初始化

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