Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| id | uuid | 2147483647 | gen_random_uuid() |
|
|
||||||
| companyId | uuid | 2147483647 | √ | null |
|
|
The company id set to be deleted |
||||
| requesterId | uuid | 2147483647 | √ | null |
|
|
The user id that requests for company deletion |
||||
| status | enum_CompanyDeletionRequests_status | 2147483647 | null |
|
|
The status of the company deletion |
|||||
| errorMessage | text | 2147483647 | √ | null |
|
|
The error message if the company deletion fails |
||||
| deletionReason | text | 2147483647 | null |
|
|
The reason for company deletion |
|||||
| createdAt | timestamptz | 35,6 | now() |
|
|
||||||
| updatedAt | timestamptz | 35,6 | now() |
|
|
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| CompanyDeletionRequests_pkey | Primary key | Asc | id |
| CompanyDeletionRequests_companyId_idx | Must be unique | Asc | companyId |
Check Constraints
| Constraint Name | Constraint |
|---|---|
| CompanyDeletionRequests_status_errorMessage_check | ((((status = 'FAILURE'::"enum_CompanyDeletionRequests_status") AND ("errorMessage" IS NOT NULL)) OR ((status <> 'FAILURE'::"enum_CompanyDeletionRequests_status") AND ("errorMessage" IS NULL)))) |

