Skip to content

Latest commit

 

History

History
26 lines (13 loc) · 2.72 KB

File metadata and controls

26 lines (13 loc) · 2.72 KB

Role

sunbird.role [PRIMARY KEY: id]

Table used to store Roles definition.

Column NameData TypeDescriptionSample Data
idtextRole IdentifierCONTENT_REVIEWER
nametextRole NameContent Reviewer
rolegroupidlist<text>Role Group used for API access management['CONTENT_CURATION']
statusintstatus of the role1 - Valid

sunbird.role_group [PRIMARY KEY: id]

Table used to store role group information

Column NameData TypeDescriptionSample Data
idtextRole Group identifierORG_MANAGEMENT
nametextRole Group NameOrg Management
url_action_idslist<text>URL action Identifiers (Refer to sunbird.url_action)['createOrg', 'updateOrg', 'removeOrg', 'createUser', 'updateUser']

sunbird.url_action [PRIMARY KEY: id]

Table used to define url action to API endpoint mapping

Column NameData TypeDescriptionSample Data
idtextURL action IdentifierupdateOrg
nametextURL action NameupdateOrg
urllist<text>API endpoint list['/v1/organisation/update']

sunbird.user_roles [PRIMARY KEY (userid, role)]

Tole used to store user to role mapping

Column NameData TypeDescriptionSample Data
useridtextUUID of the User5e48c2ba-cd3a-4d85-9d3b-28dc329d7dd9
roletextRole IdentifierBOOK_REVIEWER
createdbytextRole added By08631a74-4b94-4cf7-a818-831135248a4a
createddatetextRecord creation timestamp2021-08-11 08:53:49:662+0000
scopetextRole scope - organisation to which role is defined for the user[{"organisationId":"01334203864941363283"}]
updatedbytextRole Updated By
updateddatetextLast record Updated timestamp