ListingUpvotes table

The ListingUpvotes table in the Shipfolio schema has 5 columns, keyed by Id, with 2 foreign keys to Listings and AspNetUsers.

Columns (5)

Columns of the ListingUpvotes table
ColumnTypeConstraintsDescription
Iduuidprimary key
ListingIduuidnot null, references Listings.Id
UserIduuidnot null, references AspNetUsers.Id
Sourcevarchar(50)not null
CreatedAttimestamptznot null

Indexes (2)

  • (ListingId, UserId) unique (IX_ListingUpvotes_ListingId_UserId)
  • (UserId) (IX_ListingUpvotes_UserId)

Relationships