Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| id | uuid | 2147483647 | public.gen_random_uuid() |
|
|
Primary Key. |
|||||||||||||||||
| createdAt | timestamptz | 35,6 | null |
|
|
Entry creation date |
|||||||||||||||||
| updatedAt | timestamptz | 35,6 | null |
|
|
Datetime of last modification to any attribute |
|||||||||||||||||
| UserId | uuid | 2147483647 | null |
|
|
Foreign Key to User Table. |
|||||||||||||||||
| CompanyId | uuid | 2147483647 | null |
|
|
Foreign Key to Company Table. |
|||||||||||||||||
| role | enum_UserCompanies_role | 2147483647 | 'ADMIN'::"enum_UserCompanies_role" |
|
|
Role of user in company which determines their permissions (eg. ADMIN, RECRUITER). |
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| UserCompanies_pkey | Primary key | Asc | id |
| UserCompanies_UserId_CompanyId_key | Must be unique | Asc/Asc | UserId + CompanyId |

