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

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:"-"`
}