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)

Columns of the Investments table
ColumnTypeConstraintsDescription
Iduuidprimary key
ListingIduuidnot null, references Listings.Id
InvestorUserIduuidnot null, references AspNetUsers.Id
Roundvarchar(50)not null
Yearinteger
Leadbooleannot null
Notevarchar(280)
Statusvarchar(50)not null
ShowOnProfilebooleannot null
ConfirmedByuuid
ConfirmedAttimestamptz
CreatedAttimestamptznot null
UpdatedAttimestamptznot null
AmountCentsbigint
Currencyvarchar(3)
ShowAmountbooleannot null
Termsvarchar(50)
FirmIduuidreferences Companies.Id

Indexes (3)

  • (FirmId) (IX_Investments_FirmId)
  • (InvestorUserId) (IX_Investments_InvestorUserId)
  • (ListingId, Status) (IX_Investments_ListingId_Status)

Relationships