PlanPurchases table

The PlanPurchases table in the FitStack - V2 schema has 15 columns, keyed by Id, with 2 foreign keys to Users.

Convention-mapped — there is no EF configuration file for this entity.

Columns (15)

Columns of the PlanPurchases table
ColumnTypeConstraintsDescription
Iduuidprimary key, not null
BuyerUserIdtextnot null, references Users.Id
SellerUserIdtextnot null, references Users.Id
PlanTypeintegernot null
PlanIduuidnot nullPOLYMORPHIC — no FK.
Statusintegernot null`PlanPurchaseStatus`.
AmountCentsintegernot null
Currencycharacter varying(3)not null
PlatformFeeCentsintegernot null
StripePaymentIntentIdtext
PurchasedAttimestamp with time zonenot null
CreatedAttimestamp with time zonenot null
ModifiedAttimestamp with time zone
IsDeletedbooleannot null
DeletedAttimestamp with time zone

Relationships

  • PlanPurchases.BuyerUserId references Users.Id
  • PlanPurchases.SellerUserId references Users.Id