use default null instead of pointer to primary key

This commit is contained in:
sentriz
2019-05-27 11:22:01 +01:00
parent 4b66a84985
commit 601cf560d0
9 changed files with 58 additions and 56 deletions

View File

@@ -10,5 +10,5 @@ type CrudBase struct {
}
type IDBase struct {
ID *int `gorm:"primary_key"`
ID int `gorm:"primary_key"`
}