user info

This commit is contained in:
2023-08-13 01:27:10 +08:00
parent 447b59a65a
commit 0575d14494
5 changed files with 50 additions and 1 deletions

View File

@@ -41,6 +41,7 @@ type Model struct {
DatasetID int `json:"dataset_id"` // 模型所使用的數據集ID
ServerID string `json:"server_id"` // 模型所在服務器(訓練機或推理機)
Stars StarList `json:"stars"` // 模型的收藏者
User User `json:"user" gorm:"-"` // 模型的所有者
CreatedAt time.Time `json:"created_at" gorm:"autoCreateTime"`
UpdatedAt time.Time `json:"updated_at" gorm:"autoUpdateTime"`
}