PlanSaves table
The PlanSaves table in the FitStack - V2 schema has 10 columns, keyed by Id, with 2 foreign keys to Users.
Columns (10)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key, not null | |
| UserId | text | not null, references Users.Id | |
| SellerUserId | text | not null, references Users.Id | |
| PlanType | integer | not null | |
| PlanId | uuid | not null | |
| SavedAt | 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, PlanType, PlanId)unique (IX_PlanSaves_UserId_PlanType_PlanId)