up
This commit is contained in:
+1
-1
@@ -6,7 +6,7 @@ import (
|
|||||||
|
|
||||||
type User struct {
|
type User struct {
|
||||||
IsDelete bool `gorm:"default:false" json:"IsDelete"`
|
IsDelete bool `gorm:"default:false" json:"IsDelete"`
|
||||||
ID uint `gorm:"primarykey" json:"id,omitempty"`
|
ID uint `gorm:"primaryKey;autoIncrement" json:"id,omitempty"`
|
||||||
Name string `gorm:"unique;not null" json:"name,omitempty"`
|
Name string `gorm:"unique;not null" json:"name,omitempty"`
|
||||||
Token string `gorm:"unique;not null" json:"token,omitempty"`
|
Token string `gorm:"unique;not null" json:"token,omitempty"`
|
||||||
CreatedAt time.Time `json:"createdAt,omitempty"`
|
CreatedAt time.Time `json:"createdAt,omitempty"`
|
||||||
|
|||||||
Reference in New Issue
Block a user