59 lines
1.5 KiB
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

- name: Device
comment: 设备管理
disable_pagination: false
fill_gorm_commit: true
fill_router_prefix: true
fields:
- name: DeviceNo
type: string
comment: 设备编号
gorm_tag: "size:32;uniqueIndex"
form:
binding_tag: "required,max=32"
- name: Name
type: string
comment: 设备名称
gorm_tag: "size:64"
form:
binding_tag: "required,max=64"
- name: Type
type: int
comment: 设备类型1增氧机、2投喂机、3水循环
form:
binding_tag: "required"
- name: Status
type: bool
comment: 设备状态true=在线false=离线)
form:
binding_tag: "required"
- name: Model
type: string
comment: 设备型号
gorm_tag: "size:64"
form:
binding_tag: "required,max=64"
- name: WorkshopID
type: int64
comment: 关联车间ID
gorm_tag: "index;foreignKey:ID;references:work_shop"
form:
binding_tag: "required"
- name: DeviceFishPond
comment: 设备-鱼池关联表
disable_pagination: false
fill_gorm_commit: true
fill_router_prefix: true
fields:
- name: DeviceID
type: int64
comment: 设备ID
gorm_tag: "index;foreignKey:ID;references:device"
form:
binding_tag: "required"
- name: FishPondID
type: int64
comment: 鱼池ID
gorm_tag: "index;foreignKey:ID;references:fish_pond"
form:
binding_tag: "required"