GymClientInvoices table

The GymClientInvoices table in the FitStack - V2 schema has 8 columns, keyed by Id, with 3 foreign keys to GymClients, GymClientSubscriptions and Media.

Gym membership invoices. Distinct from `CoachClientInvoices` (64), which the Gym board accidentally wired to THIS table's parents.

Columns (8)

Columns of the GymClientInvoices table
ColumnTypeConstraintsDescription
Iduuidprimary key, not null
GymClientIduuidnot null, references GymClients.Id
SubscriptionIduuidnot null, references GymClientSubscriptions.Id
InvoiceNumbertextnot nullStripe invoice number.
Statusinteger`GymInvoiceStatus`. The Gym board declared the enum but never used it on a column.
Datedate
Amountnumeric(10,2)
MediaIduuidnot null, references Media.IdRendered PDF. Should be nullable — the invoice exists before the document is generated.

Relationships