frontend
This commit is contained in:
@@ -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:"-"`
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user