PendingUserCompanies


Description

Relation to record Users’ Requests to Join Company.

Columns

Column Type Size Nulls Auto Default Children Parents Comments
id uuid 2147483647 public.gen_random_uuid()

Primary Key.

status enum_PendingUserCompanies_status 2147483647 'PENDING'::"enum_PendingUserCompanies_status"

Status of the request (ie. PENDING, REJECTED). APPROVED request will translate to entry being moved to UserCompanies.

UserId uuid 2147483647 null
Users.id PendingUserCompanies_UserId_fkey C

Foreign Key to User Table.

CompanyId uuid 2147483647 null
Companies.id PendingUserCompanies_CompanyId_fkey R

Foreign Key to Company Table.

createdAt timestamptz 35,6 null

Entry creation date

updatedAt timestamptz 35,6 null

Datetime of last modification to any attribute

Indexes

Constraint Name Type Sort Column(s)
PendingUserCompanies_pkey Primary key Asc id

Relationships