// 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" ) const TableNameCamera = "cameras" // Camera mapped from table type Camera struct { ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` CameraID string `gorm:"column:camera_id;comment:摄像头的id" json:"camera_id"` // 摄像头的id DisplayName string `gorm:"column:display_name;comment:展示使用的名字" json:"display_name"` // 展示使用的名字 ParentCategoryID int32 `gorm:"column:parent_category_id;comment:上一级的类别" json:"parent_category_id"` // 上一级的类别 ViewPriority int32 `gorm:"column:view_priority" json:"view_priority"` Status string `gorm:"column:status;comment:摄像头目前状态" json:"status"` // 摄像头目前状态 Type string `gorm:"column:type;comment:类别" json:"type"` // 类别 IPAddress string `gorm:"column:ip_address;comment:ip地址" json:"ip_address"` // ip地址 Latitude string `gorm:"column:latitude;comment:纬度" json:"latitude"` // 纬度 Longitude string `gorm:"column:longitude;comment:经度" json:"longitude"` // 经度 IsDeleted bool `gorm:"column:is_deleted" json:"is_deleted"` CreateTime time.Time `gorm:"column:create_time" json:"create_time"` DeletedTime time.Time `gorm:"column:deleted_time" json:"deleted_time"` UpdateTime time.Time `gorm:"column:update_time" json:"update_time"` } // TableName Camera's table name func (*Camera) TableName() string { return TableNameCamera }