1
0
mirror of https://github.com/IceWhaleTech/CasaOS.git synced 2025-07-12 23:50:14 +02:00
This commit is contained in:
a624669980
2021-09-27 14:17:36 +08:00
parent 7fb9bd1d06
commit 2c1ca2b095
115 changed files with 404 additions and 12738 deletions

View File

@ -1,7 +1,7 @@
package model
import (
"oasis/model"
"github.com/IceWhaleTech/CasaOS/model"
)
const CONTAINERTABLENAME = "o_container"

View File

@ -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"
}
}