package entities import ( "time" "gorm.io/gorm" ) type User struct { Id uint `gorm:"primaryKey"` IdUser int64 `gorm:"uniqueIndex"` Email string `gorm:"uniqueIndex"` Name string `gorm:"not null"` CreatedAt time.Time `gorm:"autoCreateTime"` UpdatedAt time.Time `gorm:"autoUpdateTime"` DeletedAt gorm.DeletedAt `gorm:"index" json:"-"` }