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)

Columns of the Comps table
ColumnTypeConstraintsDescription
Iduuidprimary key
Kindvarchar(50)not null
UserIduuidreferences AspNetUsers.Id
CompanyIduuidreferences Companies.Id
ListingIduuidreferences Listings.Id
JobPostingIduuidreferences JobPostings.Id
Seatsinteger
Daysinteger
Reasonvarchar(200)not null
GrantedByIduuidnot null
GrantedAttimestamptznot null
StartsAttimestamptznot null
EndsAttimestamptz
AfterPaidbooleannot null
RevokedAttimestamptz
RevokedByIduuid
SubscriptionIduuidreferences Subscriptions.Id
ListingBoostIduuidreferences ListingBoosts.Id
JobBoostIduuidreferences 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