8 lines
180 B
Go
8 lines
180 B
Go
|
package models
|
||
|
|
||
|
type User struct {
|
||
|
ID uint `gorm:"primary_key" json:"id"`
|
||
|
UserID int64 `json:"user_id"`
|
||
|
Groups []*Group `json:"groups" gorm:"many2many:GroupUser;"`
|
||
|
}
|