AlternativeVotes table
The AlternativeVotes table in the Shipfolio schema has 13 columns, keyed by Id, with 3 foreign keys to Listings, Tools and AspNetUsers. 1 column in AlternativeVoteReports references it.
Columns (13)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key | |
| Kind | varchar(50) | not null | |
| SubjectKey | varchar(100) | not null | |
| ListingId | uuid | references Listings.Id | |
| ToolId | uuid | references Tools.Id | |
| UserId | uuid | not null, references AspNetUsers.Id | |
| Verdict | varchar(50) | not null | |
| Opinion | varchar(500) | ||
| Status | varchar(50) | not null | |
| ModerationNote | varchar(300) | ||
| ReportedAt | timestamptz | ||
| CreatedAt | timestamptz | not null | |
| EditedAt | timestamptz |
Indexes (4)
(Kind, SubjectKey, Status)(IX_AlternativeVotes_Kind_SubjectKey_Status)(ListingId)(IX_AlternativeVotes_ListingId)(ToolId)(IX_AlternativeVotes_ToolId)(UserId)(IX_AlternativeVotes_UserId)
Relationships
AlternativeVotes.ListingIdreferencesListings.IdAlternativeVotes.ToolIdreferencesTools.IdAlternativeVotes.UserIdreferencesAspNetUsers.IdAlternativeVoteReports.VoteIdreferencesAlternativeVotes