mirror of
https://github.com/paralus/paralus.git
synced 2026-05-06 00:17:19 +00:00
* restructure rcloud-base as a single base controller * updated master.rest * moved sentry from internal to pkg as it is used by relay * removing unused rpc and it's dependencies * Fix usermgmt tests * Don't redefine variables in rest file Co-authored-by: Abin Simon <abin.simon@rafay.co>
26 lines
842 B
Go
26 lines
842 B
Go
package models
|
|
|
|
import (
|
|
"encoding/json"
|
|
|
|
"github.com/google/uuid"
|
|
"github.com/uptrace/bun"
|
|
)
|
|
|
|
type GroupPermission struct {
|
|
bun.BaseModel `bun:"table:sentry_group_permission,alias:sgp"`
|
|
|
|
GroupId uuid.UUID `bun:"group_id,type:uuid"`
|
|
ProjecttId string `bun:"project_id"`
|
|
OrganizationId uuid.UUID `bun:"organization_id,type:uuid"`
|
|
PartnerId uuid.UUID `bun:"partner_id,type:uuid"`
|
|
GroupName string `bun:"group_name"`
|
|
RoleName string `bun:"role_name"`
|
|
IsGlobal bool `bun:"is_global"`
|
|
Scope string `bun:"scope"`
|
|
PermissionName string `bun:"permission_name"`
|
|
BaseUrl string `bun:"base_url"`
|
|
Urls json.RawMessage `bun:"urls,type:jsonb"`
|
|
ProjectName string `bun:"project_name"`
|
|
}
|