RecScores table
The RecScores table in the FitStack - V2 schema has 11 columns, keyed by Id, with 1 foreign key to Users.
Columns (11)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key, not null | |
| UserId | text | not null, references Users.Id | |
| EntityType | integer | not null | |
| EntityId | uuid | not null | |
| Score | double precision | not null | |
| StrategyVersion | integer | not null | |
| ComputedAt | timestamp with time zone | not null | |
| CreatedAt | timestamp with time zone | not null | |
| ModifiedAt | timestamp with time zone | ||
| IsDeleted | boolean | not null | |
| DeletedAt | timestamp with time zone |
Indexes (1)
(UserId, EntityType, EntityId)unique (IX_RecScores_UserId_EntityType_EntityId)
Relationships
RecScores.UserIdreferencesUsers.Id