type User struct {
ID uint `gorm:"primaryKey"`
CreatedAt time.Time `gorm:"autoCreateTime"`
UpdatedAt time.Time `gorm:"autoUpdateTime"`
Name string Email string `gorm:"unique"`
Password string `json:"password,omitempty"`
RoleID int Role Role `gorm:"constraint:OnUpdate:CASCADE,OnDelete:SET NULL;"`
}