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)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key | |
| ModelId | uuid | not null, references PurchaseModels.Id | |
| Subject | varchar(50) | not null | |
| UserId | uuid | references AspNetUsers.Id | |
| CompanyId | uuid | references Companies.Id | |
| Score | double precision | not null | |
| Band | varchar(50) | not null | |
| Likely | varchar(50) | ||
| LastActiveAt | timestamptz | ||
| Purchases | integer | not null | |
| ComputedAt | timestamptz | not null | |
| Reasons | jsonb |
Indexes (2)
(ModelId)(IX_PurchaseScores_ModelId)(Subject, Score)(IX_PurchaseScores_Subject_Score)
Relationships
PurchaseScores.ModelIdreferencesPurchaseModels.IdPurchaseScores.UserIdreferencesAspNetUsers.IdPurchaseScores.CompanyIdreferencesCompanies.Id