Columns
| Column | Type | Children | Parents | Comments |
|---|---|---|---|---|
| id | int8 |
|
|
|
| company_id | int8 |
|
|
The foreign key to the company record. @example 1 |
| membership_id | int8 |
|
|
The foreign key to the membership record. @example 1 |
| start_date | date |
|
|
The start date of when this supplement is valid from. @example 01-07-2025 |
| end_date | date |
|
|
The last day of when this supplement is valid to. @example 10-11-2025 |
| amount_cents | int4 |
|
|
Amount of unspent funds in cents. @example 1000 |
| amount_currency | varchar |
|
|
Amount currency for the unspent funds. @example AUD |
| created_at | timestamp |
|
|
|
| updated_at | timestamp |
|
|
|
| created_at_in_company_tz | timestamp |
|
|
|
| updated_at_in_company_tz | timestamp |
|
|
|
| company_timezone | varchar |
|
|
The company timezone. E.g. |
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| 05ce1fc3d4231f52164ad2675cdc631d | Performance | Asc | company_id |
| d5588aa7d93897254512261c9018072d | Performance | Asc | membership_id |