CreatorMilestoneTrackers table
The CreatorMilestoneTrackers table in the FitStack - V2 schema has 9 columns, keyed by Id, with 1 foreign key to Users.
Fires the Creator* notifications in NotificationSettings. Idempotency comes from the unique index.
Columns (9)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key, not null | |
| SellerUserId | text | not null, references Users.Id | |
| Category | integer | not null | `CreatorMilestoneCategory`. |
| ThresholdValue | bigint | not null | |
| ReachedAt | 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)
(SellerUserId, Category, ThresholdValue)unique (IX_CreatorMilestoneTrackers_Seller_Category_Threshold)
Relationships
CreatorMilestoneTrackers.SellerUserIdreferencesUsers.Id