StackChanges table
The StackChanges table in the Shipfolio schema has 13 columns, keyed by Id, with 6 foreign keys to Listings, Tools, StackChanges and AspNetUsers.
Columns (13)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key | |
| ListingId | uuid | not null, references Listings.Id | |
| ToolId | uuid | not null, references Tools.Id | |
| Action | varchar(50) | not null | |
| ReplacedToolId | uuid | references Tools.Id | |
| ReplacementId | uuid | references StackChanges.Id | |
| Category | varchar(50) | not null | |
| HostedOnToolId | uuid | references Tools.Id | |
| At | timestamptz | not null | |
| ActorId | uuid | references AspNetUsers.Id | |
| Source | varchar(50) | not null | |
| Note | varchar(280) | ||
| Backfilled | boolean | not null |
Indexes (5)
(ActorId)(IX_StackChanges_ActorId)(HostedOnToolId)(IX_StackChanges_HostedOnToolId)(ListingId, At)(IX_StackChanges_ListingId_At)(ReplacementId)(IX_StackChanges_ReplacementId)(ToolId, At)(IX_StackChanges_ToolId_At)
Relationships
StackChanges.ListingIdreferencesListings.IdStackChanges.ToolIdreferencesTools.IdStackChanges.ReplacedToolIdreferencesTools.IdStackChanges.ReplacementIdreferencesStackChanges.IdStackChanges.HostedOnToolIdreferencesTools.IdStackChanges.ActorIdreferencesAspNetUsers.Id