UserEvents table
The UserEvents table in the FitStack - V2 schema has 12 columns, keyed by Id, with 1 foreign key to Users.
Behavioural signal feeding the recommender.
Columns (12)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key, not null | |
| UserId | text | not null, references Users.Id | |
| EventType | integer | not null | `UserEventType`. |
| EntityType | integer | not null | `RecEntityType`. |
| EntityId | uuid | not null | POLYMORPHIC — no FK. |
| Source | integer | not null | `UserEventSource`. |
| OccurredAt | timestamp with time zone | not null | |
| Metadata | text | ||
| CreatedAt | timestamp with time zone | not null | |
| ModifiedAt | timestamp with time zone | ||
| IsDeleted | boolean | not null | |
| DeletedAt | timestamp with time zone |
Relationships
UserEvents.UserIdreferencesUsers.Id