1
0
mirror of https://github.com/IceWhaleTech/CasaOS.git synced 2025-07-03 23:30:39 +02:00
Files
CasaOS/service/model/o_rely.go
2022-11-29 12:17:14 -05:00

22 lines
636 B
Go

package model
import (
"time"
)
type RelyDBModel struct {
Id uint `gorm:"column:id;primary_key" json:"id"`
CustomId string ` json:"custom_id"`
ContainerCustomId string `json:"container_custom_id"`
ContainerId string `json:"container_id,omitempty"`
Type int `json:"type"` // 目前暂未使用
CreatedAt time.Time `gorm:"<-:create" json:"created_at"`
UpdatedAt time.Time `gorm:"<-:create;<-:update" json:"updated_at"`
}
/****************使gorm支持[]string结构*******************/
func (p RelyDBModel) TableName() string {
return "o_rely"
}