Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| customer_group_id | int8 | 19 | null |
|
|
Unique identifier for the customer group. |
||||||||
| organization_unit_id | int8 | 19 | √ | null |
|
|
The organization unit that owns the customer group. |
|||||||
| contract_id | int8 | 19 | √ | null |
|
|
The contract shared by all members of this group. Only populated when |
|||||||
| name | varchar | 256 | √ | null |
|
|
Display name of the customer group. Auto-generated for |
|||||||
| code | varchar | 256 | √ | null |
|
|
Business code used to identify the customer group. Auto-generated for |
|||||||
| type | varchar | 256 | √ | null |
|
|
The type of customer group, determining its purpose and behaviour: * Customer: A generic grouping of customers (e.g. for shared discounts). * Premium: A premium-tier group with elevated benefits or pricing rules. * Shared Contract: A group whose members share a single contract (e.g. a family plan). |
|||||||
| is_discountable | bool | 1 | √ | null |
|
|
Whether this group is configured to apply a discount to eligible members’ contracts. Always |
|||||||
| discount_type | varchar | 256 | √ | null |
|
|
How the group’s discount values are expressed: |
|||||||
| apply_discount_during_paid_period | bool | 1 | √ | null |
|
|
Controls whether the group discount is charged during the billing period in which the member joins the group, or deferred to the start of the next billing cycle. The group discount’s effective date (visible as |
|||||||
| max_member_count | int4 | 10 | √ | null |
|
|
Maximum number of members allowed in the group. Always |
|||||||
| max_full_age_member_count | int4 | 10 | √ | null |
|
|
Maximum number of adult members allowed in the group. Only populated when |
|||||||
| max_under_age_member_count | int4 | 10 | √ | null |
|
|
Maximum number of underage members allowed in the group. Only populated when |
|||||||
| discount_value | numeric | 23,6 | √ | null |
|
|
Extra discount added on top of the group discount step matched from the group’s discount schedule (see |
|||||||
| is_archived | bool | 1 | √ | null |
|
|
Whether the customer group has been archived. |
|||||||
| last_updated | timestamptz | 35 | √ | null |
|
|
System column. UTC Timestamp at which entry was calculated (lags shortly behind source system). |



