StripeTerminalReaders table
The StripeTerminalReaders table in the FitStack - V2 schema has 9 columns, keyed by Id, with 1 foreign key to Gyms. 1 column in Orders references it.
Columns (9)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key, not null | |
| GymId | uuid | not null, references Gyms.Id | |
| StripeReaderId | text | not null | tmr_… on the Company's connected account. |
| Label | character varying(100) | not null | |
| Status | text | not null | `TerminalReaderStatus`. |
| CreatedAt | timestamp with time zone | not null | |
| ModifiedAt | timestamp with time zone | ||
| IsDeleted | boolean | not null | |
| DeletedAt | timestamp with time zone |
Indexes (2)
(StripeReaderId)unique (IX_StripeTerminalReaders_StripeReaderId)(GymId)(IX_StripeTerminalReaders_GymId)
Relationships
StripeTerminalReaders.GymIdreferencesGyms.IdOrders.StripeTerminalReaderIdreferencesStripeTerminalReaders