UserID int `gorm:"index"` //外键(属于), tag `index`是为该列创建索引 Email string `gorm:"type:varchar(100);unique_index"` //`type`设置sql类型 ...
確定! 回上一頁