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)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key | |
| ListingId | uuid | not null, references Listings.Id | |
| UserId | uuid | not null, references AspNetUsers.Id | |
| Source | varchar(50) | not null | |
| CreatedAt | timestamptz | not null |
Indexes (2)
(ListingId, UserId)unique (IX_ListingUpvotes_ListingId_UserId)(UserId)(IX_ListingUpvotes_UserId)
Relationships
ListingUpvotes.ListingIdreferencesListings.IdListingUpvotes.UserIdreferencesAspNetUsers.Id