📌  相关文章
📜  gorm 模型 - Go 编程语言 - Go 编程语言代码示例

📅  最后修改于: 2022-03-11 14:45:00.087000             🧑  作者: Mango

代码示例1
type EntityMahasiswa struct {
    ID        int32  `gorm:"primaryKey:autoIncrement;"`
    Name      string `gorm:"type:varchar;not null;"`
    Npm       int64  `gorm:"type:integer;not null;unique;"`
    Fak       string `gorm:"type:varchar;not null;"`
    Bid       string `gorm:"type:varchar;not null;"`
    CreatedAt time.Time
    UpdatedAt time.Time
}