PlanShares table

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

Columns (11)

Columns of the PlanShares table
ColumnTypeConstraintsDescription
Iduuidprimary key, not null
SharerUserIdtextnot null, references Users.Id
SellerUserIdtextnot null, references Users.Id
PlanTypeintegernot null
PlanIduuidnot null
Channelintegernot null`ShareChannel`.
SharedAttimestamp with time zonenot null
CreatedAttimestamp with time zonenot null
ModifiedAttimestamp with time zone
IsDeletedbooleannot null
DeletedAttimestamp with time zone

Relationships

  • PlanShares.SharerUserId references Users.Id
  • PlanShares.SellerUserId references Users.Id