Investments table
The Investments table in the Shipfolio schema has 18 columns, keyed by Id, with 3 foreign keys to Listings, AspNetUsers and Companies.
Columns (18)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key | |
| ListingId | uuid | not null, references Listings.Id | |
| InvestorUserId | uuid | not null, references AspNetUsers.Id | |
| Round | varchar(50) | not null | |
| Year | integer | ||
| Lead | boolean | not null | |
| Note | varchar(280) | ||
| Status | varchar(50) | not null | |
| ShowOnProfile | boolean | not null | |
| ConfirmedBy | uuid | ||
| ConfirmedAt | timestamptz | ||
| CreatedAt | timestamptz | not null | |
| UpdatedAt | timestamptz | not null | |
| AmountCents | bigint | ||
| Currency | varchar(3) | ||
| ShowAmount | boolean | not null | |
| Terms | varchar(50) | ||
| FirmId | uuid | references Companies.Id |
Indexes (3)
(FirmId)(IX_Investments_FirmId)(InvestorUserId)(IX_Investments_InvestorUserId)(ListingId, Status)(IX_Investments_ListingId_Status)
Relationships
Investments.ListingIdreferencesListings.IdInvestments.InvestorUserIdreferencesAspNetUsers.IdInvestments.FirmIdreferencesCompanies.Id