1234567891011121314151617181920212223242526272829303132333435363738 |
- // Code generated by gorm.io/gen. DO NOT EDIT.
- // Code generated by gorm.io/gen. DO NOT EDIT.
- // Code generated by gorm.io/gen. DO NOT EDIT.
- package model
- import (
- "time"
- "gorm.io/gorm"
- )
- const TableNameMapUpdate = "map_update"
- // MapUpdate mapped from table <map_update>
- type MapUpdate struct {
- ID string `gorm:"column:id;type:varchar(100);primaryKey" json:"id"`
- MapID string `gorm:"column:map_id;type:varchar(100);not null" json:"map_id"`
- DeviceID string `gorm:"column:device_id;type:varchar(100);not null" json:"device_id"`
- DeviceName string `gorm:"column:device_name;type:varchar(100);not null" json:"device_name"`
- DeviceType string `gorm:"column:device_type;type:varchar(100);not null" json:"device_type"`
- OriginPgmPath string `gorm:"column:origin_pgm_path;type:varchar(255);not null" json:"origin_pgm_path"`
- PrePgmPath string `gorm:"column:pre_pgm_path;type:varchar(255);not null" json:"pre_pgm_path"`
- CurrentPgmPath string `gorm:"column:current_pgm_path;type:varchar(255);not null" json:"current_pgm_path"`
- CumulativeUpdateRate int32 `gorm:"column:cumulative_update_rate;type:int(11);not null" json:"cumulative_update_rate"`
- UpdateFlag int32 `gorm:"column:update_flag;type:int(11);not null" json:"update_flag"`
- UpdateSource *int32 `gorm:"column:update_source;type:int(11)" json:"update_source"`
- FromSceneList *string `gorm:"column:from_scene_list;type:varchar(255)" json:"from_scene_list"`
- ValidFlag int32 `gorm:"column:valid_flag;type:int(11);not null" json:"valid_flag"`
- CreatedAt time.Time `gorm:"column:created_at;type:datetime;not null" json:"created_at"`
- UpdatedAt *time.Time `gorm:"column:updated_at;type:datetime" json:"updated_at"`
- DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:datetime" json:"deleted_at"`
- }
- // TableName MapUpdate's table name
- func (*MapUpdate) TableName() string {
- return TableNameMapUpdate
- }
|