use default null instead of pointer to primary key
This commit is contained in:
@@ -10,5 +10,5 @@ type CrudBase struct {
|
||||
}
|
||||
|
||||
type IDBase struct {
|
||||
ID *int `gorm:"primary_key"`
|
||||
ID int `gorm:"primary_key"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user