File tree Expand file tree Collapse file tree 2 files changed +7
-9
lines changed Expand file tree Collapse file tree 2 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -16,10 +16,9 @@ import (
1616type TeamMembership struct {
1717 ID uuid.UUID `gorm:"primary_key;column:id;type:char;size:36;" json:"id"`
1818
19- TeamID uuid.UUID `gorm:"column:teamId;type:char;size:36;" json:"teamId"`
20- UserID uuid.UUID `gorm:"column:userId;type:char;size:36;" json:"userId"`
21- Role TeamMembershipRole `gorm:"column:role;type:varchar;size:255;" json:"role"`
22- SubscriptionID uuid.UUID `gorm:"column:subscriptionId;type:char;size:36;" json:"subscriptionId"`
19+ TeamID uuid.UUID `gorm:"column:teamId;type:char;size:36;" json:"teamId"`
20+ UserID uuid.UUID `gorm:"column:userId;type:char;size:36;" json:"userId"`
21+ Role TeamMembershipRole `gorm:"column:role;type:varchar;size:255;" json:"role"`
2322
2423 CreationTime VarcharTime `gorm:"column:creationTime;type:varchar;size:255;" json:"creationTime"`
2524 // Read-only (-> property).
Original file line number Diff line number Diff line change @@ -18,11 +18,10 @@ func TestTeamMembership_WriteRead(t *testing.T) {
1818 conn := dbtest .ConnectForTests (t )
1919
2020 membership := & db.TeamMembership {
21- ID : uuid .New (),
22- TeamID : uuid .New (),
23- UserID : uuid .New (),
24- Role : db .TeamMembershipRole_Member ,
25- SubscriptionID : uuid .New (),
21+ ID : uuid .New (),
22+ TeamID : uuid .New (),
23+ UserID : uuid .New (),
24+ Role : db .TeamMembershipRole_Member ,
2625 }
2726
2827 tx := conn .Create (membership )
You can’t perform that action at this time.
0 commit comments