This commit is contained in:
Sakurasan committed 2023-04-08 22:57:24 +08:00
1 parent 312a0b48dc
commit a431cc19c5
26 files changed
+2070 -517

No files matched your search

+7 -6
View File
@@ -5,12 +5,13 @@ import (
)
type User struct {
IsDelete bool `gorm:"default:false" json:"IsDelete"`
ID uint `gorm:"primarykey" json:"id,omitempty"`
Name string `gorm:"unique;not null" json:"name,omitempty"`
Token string `gorm:"unique;not null" json:"token,omitempty"`
CreatedAt time.Time `json:"createdAt,omitempty"`
UpdatedAt time.Time `json:"updatedAt,omitempty"`
IsDelete bool `gorm:"default:false" json:"IsDelete"`
ID uint `gorm:"primarykey" json:"id,omitempty"`
Name string `gorm:"unique;not null" json:"name,omitempty"`
Token string `gorm:"unique;not null" json:"token,omitempty"`
CreatedAt time.Time `json:"createdAt,omitempty"`
UpdatedAt time.Time `json:"updatedAt,omitempty"`
TotalTokens int `json:"total_tokens,omitempty"`
// DeletedAt gorm.DeletedAt `gorm:"index" json:"-"`
}