| | |
| | | ID uint `gorm:"primaryKey;" json:"id"` |
| | | AddressList []*ProcessModelAddress `json:"addressList" gorm:"-"` |
| | | Address string `json:"-" gorm:"address"` |
| | | DeviceID string `json:"deviceId" gorm:"column:deviceId;index;type:varchar(255)"` |
| | | DeviceID string `json:"deviceId" gorm:"column:device_id;index;type:varchar(255)"` |
| | | } |
| | | |
| | | ProcessModelPlcAddressSearch struct { |
| | |
| | | ) |
| | | |
| | | func (slf *ProcessModelPlcAddress) TableName() string { |
| | | return "process_model" |
| | | return "process_model_plc_address" |
| | | } |
| | | |
| | | func (slf *ProcessModelPlcAddress) AfterFind(*gorm.DB) error { |