Comps table
The Comps table in the Shipfolio schema has 19 columns, keyed by Id, with 7 foreign keys to AspNetUsers, Companies, Listings, JobPostings and 3 more.
Columns (19)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key | |
| Kind | varchar(50) | not null | |
| UserId | uuid | references AspNetUsers.Id | |
| CompanyId | uuid | references Companies.Id | |
| ListingId | uuid | references Listings.Id | |
| JobPostingId | uuid | references JobPostings.Id | |
| Seats | integer | ||
| Days | integer | ||
| Reason | varchar(200) | not null | |
| GrantedById | uuid | not null | |
| GrantedAt | timestamptz | not null | |
| StartsAt | timestamptz | not null | |
| EndsAt | timestamptz | ||
| AfterPaid | boolean | not null | |
| RevokedAt | timestamptz | ||
| RevokedById | uuid | ||
| SubscriptionId | uuid | references Subscriptions.Id | |
| ListingBoostId | uuid | references ListingBoosts.Id | |
| JobBoostId | uuid | references JobBoosts.Id |
Indexes (7)
(CompanyId)(IX_Comps_CompanyId)(GrantedAt)(IX_Comps_GrantedAt)(JobBoostId)(IX_Comps_JobBoostId)(JobPostingId)(IX_Comps_JobPostingId)(ListingBoostId)(IX_Comps_ListingBoostId)(ListingId)(IX_Comps_ListingId)(UserId)(IX_Comps_UserId)
Relationships
Comps.UserIdreferencesAspNetUsers.IdComps.CompanyIdreferencesCompanies.IdComps.ListingIdreferencesListings.IdComps.JobPostingIdreferencesJobPostings.IdComps.SubscriptionIdreferencesSubscriptions.IdComps.ListingBoostIdreferencesListingBoosts.IdComps.JobBoostIdreferencesJobBoosts.Id