Skip to content

Commit

Permalink
removed sql from Principal struct
Browse files Browse the repository at this point in the history
  • Loading branch information
filippetroviccc committed Dec 6, 2020
1 parent 734c70e commit 2257944
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions model/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ type Organization struct {
}

type Principal struct {
ID AccountID `json:"id" sql:"type:varchar(36),pk"`
ID AccountID `json:"id"`

Username string `json:"username" sql:"type:varchar(255)"`
Organization *Organization `json:"organization,omitempty" pg:"fk:id"`
User *User `json:"user,omitempty" pg:"fk:id"`
Username string `json:"username"`
Organization *Organization `json:"organization,omitempty" `
User *User `json:"user,omitempty"`

Type PrincipalType `json:"type" sql:",notnull"`
Type PrincipalType `json:"type"`
}

0 comments on commit 2257944

Please sign in to comment.