You've already forked CasaOS
mirror of
https://github.com/IceWhaleTech/CasaOS.git
synced 2025-07-12 23:50:14 +02:00
暂存
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
package model
|
||||
|
||||
import (
|
||||
"oasis/model"
|
||||
"github.com/IceWhaleTech/CasaOS/model"
|
||||
)
|
||||
|
||||
const CONTAINERTABLENAME = "o_container"
|
||||
|
@ -3,19 +3,19 @@ package model
|
||||
import (
|
||||
"database/sql/driver"
|
||||
"encoding/json"
|
||||
"oasis/service/docker_base"
|
||||
"github.com/IceWhaleTech/CasaOS/service/docker_base"
|
||||
"time"
|
||||
)
|
||||
|
||||
type RelyDBModel struct {
|
||||
Id uint `gorm:"column:id;primary_key" json:"id"`
|
||||
CustomId string ` json:"custom_id"`
|
||||
ContainerCustomId string `json:"container_custom_id"`
|
||||
Config MysqlConfigs `json:"config"`
|
||||
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"`
|
||||
Id uint `gorm:"column:id;primary_key" json:"id"`
|
||||
CustomId string ` json:"custom_id"`
|
||||
ContainerCustomId string `json:"container_custom_id"`
|
||||
Config MysqlConfigs `json:"config"`
|
||||
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结构*******************/
|
||||
@ -32,7 +32,6 @@ func (c *MysqlConfigs) Scan(input interface{}) error {
|
||||
|
||||
/****************使gorm支持[]string结构*******************/
|
||||
|
||||
|
||||
func (p RelyDBModel) TableName() string {
|
||||
return "o_rely"
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user