Credits table
The Credits table in the Shipfolio schema has 20 columns, keyed by Id, with 2 foreign keys to Listings and AspNetUsers.
Columns (20)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key | |
| ListingId | uuid | not null, references Listings.Id | |
| UserId | uuid | references AspNetUsers.Id | |
| Source | varchar(50) | not null | |
| Status | varchar(50) | not null | |
| Title | varchar(120) | not null | |
| RoleCategory | varchar(50) | not null | |
| Seniority | varchar(50) | ||
| Contribution | varchar(280) | ||
| StartedOn | date | ||
| EndedOn | date | ||
| ShowOnProfile | boolean | not null | |
| InviteEmail | varchar(256) | ||
| InviteTokenHash | varchar(64) | ||
| InviteExpiresAt | timestamptz | ||
| CreatedBy | uuid | not null | |
| ConfirmedBy | uuid | ||
| ConfirmedAt | timestamptz | ||
| CreatedAt | timestamptz | not null | |
| UpdatedAt | timestamptz | not null |
Indexes (2)
(ListingId, Status)(IX_Credits_ListingId_Status)(UserId)(IX_Credits_UserId)
Relationships
Credits.ListingIdreferencesListings.IdCredits.UserIdreferencesAspNetUsers.Id