StackItems table
The StackItems table in the Shipfolio schema has 11 columns, keyed by Id, with 3 foreign keys to Listings and Tools.
Columns (11)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key | |
| ListingId | uuid | not null, references Listings.Id | |
| ToolId | uuid | not null, references Tools.Id | |
| Category | varchar(50) | not null | |
| Note | varchar(280) | ||
| MonthlyCostCents | bigint | ||
| MonthlyCostCurrency | varchar(3) | ||
| Position | integer | not null | |
| CreatedAt | timestamptz | not null | |
| UpdatedAt | timestamptz | not null | |
| HostedOnToolId | uuid | references Tools.Id |
Indexes (3)
(HostedOnToolId)(IX_StackItems_HostedOnToolId)(ListingId, ToolId)unique (IX_StackItems_ListingId_ToolId)(ToolId)(IX_StackItems_ToolId)
Relationships
StackItems.ListingIdreferencesListings.IdStackItems.ToolIdreferencesTools.IdStackItems.HostedOnToolIdreferencesTools.Id