Model Gorm
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
}
Restu Wahyu Saputra