InstacartOrderRequests table
The InstacartOrderRequests table in the FitStack - V2 schema has 14 columns, keyed by Id, with 3 foreign keys to Users, MealLogs and MealPlans.
Columns (14)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key, not null | |
| UserId | text | not null, references Users.Id | |
| MealLogId | uuid | references MealLogs.Id | |
| MealPlanId | uuid | references MealPlans.Id | |
| SourceType | character varying(32) | not null | `InstacartOrderSource` as TEXT. |
| RangeStartDate | date | ||
| RangeEndDate | date | ||
| LineItemsHash | text | not null | |
| LineItemsSnapshotJson | text | not null | |
| ProductsLinkUrl | text | not null | |
| CreatedAt | timestamp with time zone | not null | |
| ModifiedAt | timestamp with time zone | ||
| IsDeleted | boolean | not null | |
| DeletedAt | timestamp with time zone |
Relationships
InstacartOrderRequests.UserIdreferencesUsers.IdInstacartOrderRequests.MealLogIdreferencesMealLogs.IdInstacartOrderRequests.MealPlanIdreferencesMealPlans.Id