PurchaseScores table

The PurchaseScores table in the Shipfolio schema has 12 columns, keyed by Id, with 3 foreign keys to PurchaseModels, AspNetUsers and Companies.

Columns (12)

Columns of the PurchaseScores table
ColumnTypeConstraintsDescription
Iduuidprimary key
ModelIduuidnot null, references PurchaseModels.Id
Subjectvarchar(50)not null
UserIduuidreferences AspNetUsers.Id
CompanyIduuidreferences Companies.Id
Scoredouble precisionnot null
Bandvarchar(50)not null
Likelyvarchar(50)
LastActiveAttimestamptz
Purchasesintegernot null
ComputedAttimestamptznot null
Reasonsjsonb

Indexes (2)

  • (ModelId) (IX_PurchaseScores_ModelId)
  • (Subject, Score) (IX_PurchaseScores_Subject_Score)

Relationships