mirror of
https://git.rwth-aachen.de/acs/public/villas/web-backend-go/
synced 2025-03-30 00:00:12 +01:00
remove tage unique from Model.ID since it destroys many2many relationship
This commit is contained in:
parent
aa749c1c19
commit
678b39a3c2
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ import (
|
|||
// The type Model is exactly the same with gorm.Model (see jinzhu/gorm)
|
||||
// except the json tags that are needed for serializing the models
|
||||
type Model struct {
|
||||
ID uint `json:"id,omitempty" gorm:"unique;primary_key:true"`
|
||||
ID uint `json:"id,omitempty" gorm:"primary_key:true"`
|
||||
CreatedAt time.Time `json:"-"`
|
||||
UpdatedAt time.Time `json:"-"`
|
||||
DeletedAt *time.Time `json:"-" sql:"index"`
|
||||
|
|
Loading…
Add table
Reference in a new issue