Skip to content

Latest commit

 

History

History
24 lines (12 loc) · 11 KB

File metadata and controls

24 lines (12 loc) · 11 KB

User

unbird.user (PRIMARY KEY: id)

Table used for storing user profile details

Column NameData TypeDescriptionSample Value
idtextUUID9b774c71-6034-4de7-aa38-5382fc673b14
alltncacceptedmap<text, text>Terms and Conditions that the user has accepted. 1) Org Admin TNC if the user has ORG_ADMIN role 2) Report Viewer role TNC if the user has REPORT_VIEWER role 3)Groups tnc - if the user has groups."allTncAccepted": { "reportViewerTnc": { "tncAcceptedOn": "2023-01-02 05:25:21:586+0000", "version": "4.0.0" }, "orgAdminTnc": { "tncAcceptedOn": "2020-11-26 08:17:59:547+0000", "version": "3.5.0" }, "groupsTnc": { "tncAcceptedOn": "2020-12-03 09:14:47:437+0000", "version": "3.5.0" } }
channeltextTenant Organisation channel valueTN, AP
countrycodetextCountry code of the user+91
createdbytextuuid of the created user, null in case user has signed up by himself8c774c71-6034-4de7-aa38-5382fc673b14
createddatetextDate on which the user was created2020-09-28 15:47:15:919+0000
dobtextDate of Birth of the user. Only year is provided by the user. Month and date(12-31) is appended to it by the system1987-12-31
emailtextEmail id of the user in encrypted format[email protected]
emailverifiedbooleanEmail is verified or not using OTP. This flag is not used anymoretrue or false
firstnametextFirst name of the user
flagsvalueintValue will by 4 , if the user is uploaded by the tenant or registered through tenant login page. ( Earlier there were different values updated as per the user email verified, phone verified and tenant verified. But currently only tenant verification is stored.)4
frameworkmap<text, frozen<list<text>>>User chosen framework{ "board": ["State (Tamil Nadu)"], "gradeLevel": ["Class 1"], "id": ["tn_k-12_5"], "medium": ["English"], "subject": ["Mathematics"] }
isdeletedbooleanUser is soft deleted or not. Scenarios: 1) Merge one user to another, then the first one gets deleted. 2) User Block will update the is_deleted flag to true and status to 0 (inactive)true or false
lastnametextLast Name of the user
locationidslist<text>Not Used
loginidtextNot Used
managedbytextLogged in user/Parent uuid of the managed user. If managedby column has value( parent uuid), that means this row of record is child user's and email and phone number will be blank for this user.7c784c71-9034-4de7-aa38-5382fc673b14
maskedemailtextMasked email id value te*****@yopmail.com
maskedphonetextMasked phone number value98******09
phonetextPhone number of the user in encrypted format
phoneverifiedbooleanEmail is verified or not using OTP. This flag is not used anymore
prevusedemailtextPreviously used email id in encrypted format
prevusedphonetextPreviously used phone number in encrypted format
profilelocationtextUsed to store location data of the user from release-3.9.0. This stores the location types and code from sunbird.location table. This is validated against the configuration of location types in properties file "sunbird_valid_location_types" and also to ED form api configuration "profileconfig_v2"

"profileLocation": [ { "code": "32", "type": "state" }, { "code": "3210", "type": "district" },

{"code": "321001", "type": "block"} ,{"code": "32100123", "type": "cluster"]

profileusertypetextNot Used from release-4.4.0.This field was in use from release-3.9.0 to 4.4.0.{ "type": "administrator", "subType":"hm" }
profileusertypestextUsed to store user type (role) and subusertype (subrole) from release-4.4.0. This is validated against the ED form api configuration "profileconfig_v2""profileUserTypes": [ { "type": "administrator", "subType":"hm" }, { "type": "administrator", "subType":"deo" }],
recoveryemailtextRecovery email of the user in encrypted form
recoveryphonetextRecovery phone number of the user in encrypted form
roleslist<text>Not used
rootorgidtextTenant Org id of the user0126796199493140480
statusintUser is active or not. '1' means active, '0' is inactive1
tncacceptedontimestampterms and conditions accepted time in long format1687933998587
tncacceptedversiontextVersion of the terms and conditions. If any change in terms and conditions it is added with a new version and link is updated in system configuration.v13
updatedbytextUUID of the user who updated the profile. 7c784c71-9034-4de7-aa38-5382fc673b14
updateddatetextDate in which this table record is updated last.2023-06-28 06:34:02:020+0000
useridtextUUID of the user, same as the id column value9b774c71-6034-4de7-aa38-5382fc673b14
usernametextUsername of the user, this can be given via create api or if not given its automatically created by appending firstname and random text.
usersubtypetextNot used
usertypetextNot used

sunbird.user_lookup [PRIMARY KEY (type, value)]

Table used for supporting user lookup based on email/phone/username.

Column NameData TypeDescriptionSample Data
typetextfield/column typeusername/email/phone
valuetextencrypted value corresponding to the field of the user in 'userid' column0D8+4tIadSIevBPI5TRVpz01bytYGtT59Fm6X1hbXTxLMh873Ibbq1Orv9HTxpM3orvEZRVVOy3E\n56xU3yrF/qtCQr8582HbLJKeRdHyl+sKLJ7enl6IgnHREqS+/HVeT6a+wzaAmCWueMEdPmZuRg==
useridtextUUID of the user51b39c1d-a021-4ce8-9487-4dcf843eb925

sunbird.usr_external_identity [PRIMARY KEY (provider, idtype, externalid)

Table used for storing user information from the third party system (SSO integrated systems)

Column NameData TypeDescriptionSample Data
providertextOrganisation of the user0132818330295992324
idtypetextType of the IDUDAI
externalidtextID of the user in the third party systemckc971
createdbytextUUID of the admin who onboarded the user1405f334-ee59-42fc-befb-51986221881e
createdontimestampTimestamp at which user record was created on2021-05-18 07:35:22.646000+0000
lastupdatedbytextNot Used
lastupdatedontimestampNot Used
originalexternalidtextNot Used
originalidtypetextNot Used
originalprovidertextNot Used
useridtextUUID of the user in sunbird systemee27b0bc-be5c-427f-9cc4-a87079ef3dd7

sunbird.user_organisation [PRIMARY KEY (userid, organisationid)]

Column NameData TypeDescriptionSample Data
useridtextUUID of the useradc314fa-cd62-4d8c-8b06-5c30091d0009
organisationidtextRootOrg Identifier to which user is associated with01276175508980531215
addedbytextNot Used
addedbynametextNot Used
approvaldatetextDate on which self declared user record was approved on2019-03-27 13:07:14:732+0000
approvedbytextNot Used
associationtypeintStores information about how user to organsiation association was established1/2/4
SSO -> 1
Self Declaation -> 2
System Upload -> 4
hashtagidtexthashtagid of the RootOrg to which user is associated with01276175508980531215
idtext
isapprovedbooleanUsed to indicate whether user record was approved for association with organisationTrue
isdeletedbooleanUsed to indicate whether user record is deletedFalse
isrejectedbooleanUsed to indicate whether user record was rejected for association with organisationFalse
orgjoindatetextTimestamp at which user was associated with organisation2019-03-27 13:07:14:732+0000
orgleftdatetextTimestamp at which user was disassociated with organisation2019-06-18 11:24:03:263+0000
positiontextNot used
roleslist<text>Roles associated with the user['CONTENT_CREATOR', 'COURSE_MENTOR']
updatedbytextOrg Admin user UUID who updated the user information59177b28-14a1-41e3-a5f9-87bff98443b3
updateddatetextTimestamp at which user record was updated on2019-04-10 10:32:09:999+0000