fix mistake
This commit is contained in:
@@ -6,8 +6,8 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type Organization struct {
|
type Organization struct {
|
||||||
ID uuid.UUID `gorm:"type:uuid;default:gen_random_uuid();primarykey"`
|
|
||||||
gorm.Model
|
gorm.Model
|
||||||
|
ID uuid.UUID `gorm:"type:uuid;default:gen_random_uuid();primarykey"`
|
||||||
Name string `json:"name" gorm:"unique;index"`
|
Name string `json:"name" gorm:"unique;index"`
|
||||||
ParentID uuid.UUID `json:"parent_id"`
|
ParentID uuid.UUID `json:"parent_id"`
|
||||||
Positions []Position `json:"positions,omitempty"`
|
Positions []Position `json:"positions,omitempty"`
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type Position struct {
|
type Position struct {
|
||||||
ID uuid.UUID `gorm:"type:uuid;default:gen_random_uuid();primarykey"`
|
|
||||||
gorm.Model
|
gorm.Model
|
||||||
|
ID uuid.UUID `gorm:"type:uuid;default:gen_random_uuid();primarykey"`
|
||||||
Name string `json:"name" gorm:"unique;index"`
|
Name string `json:"name" gorm:"unique;index"`
|
||||||
RightMask int `json:"right_mask"`
|
RightMask int `json:"right_mask"`
|
||||||
OrganizationID uuid.UUID `json:"organization_id" gorm:"index;not null"`
|
OrganizationID uuid.UUID `json:"organization_id" gorm:"index;not null"`
|
||||||
|
|||||||
@@ -7,8 +7,8 @@ import (
|
|||||||
|
|
||||||
type (
|
type (
|
||||||
User struct {
|
User struct {
|
||||||
ID uuid.UUID `gorm:"type:uuid;default:gen_random_uuid();primarykey"`
|
|
||||||
gorm.Model
|
gorm.Model
|
||||||
|
ID uuid.UUID `gorm:"type:uuid;default:gen_random_uuid();primarykey"`
|
||||||
APIUser
|
APIUser
|
||||||
Position Position `gorm:"-:migration"`
|
Position Position `gorm:"-:migration"`
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user