ifms_go/goadmin/env_monitor/env_device.yaml

59 lines
1.6 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: EnvMonitorDevice
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: EnvMonitorDeviceFishPond
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"