Role mapping: Add group_mapping_uid column to user_role table (#93810)

* add group_mapping_uid column to user_role table

* add group mapping UID to user role struct
This commit is contained in:
Ieva
2024-10-07 15:47:16 +01:00
committed by GitHub
parent 63bdbb67fc
commit d7aca7d0fe
2 changed files with 19 additions and 4 deletions
+5 -4
View File
@@ -173,10 +173,11 @@ type TeamRole struct {
}
type UserRole struct {
ID int64 `json:"id" xorm:"pk autoincr 'id'"`
OrgID int64 `json:"orgId" xorm:"org_id"`
RoleID int64 `json:"roleId" xorm:"role_id"`
UserID int64 `json:"userId" xorm:"user_id"`
ID int64 `json:"id" xorm:"pk autoincr 'id'"`
OrgID int64 `json:"orgId" xorm:"org_id"`
RoleID int64 `json:"roleId" xorm:"role_id"`
UserID int64 `json:"userId" xorm:"user_id"`
GroupMappingUID string `json:"groupMappingUID" xorm:"group_mapping_uid"`
Created time.Time
}