Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| dunning_step_id | int8 | 19 | null |
|
|
Primary key of this table. Uniquely identifies a single dunning step. |
|||||
| customer_id | int8 | 19 | √ | null |
|
|
The customer this dunning step applies to. |
||||
| dunning_level_id | int8 | 19 | √ | null |
|
|
The dunning level reached at this step. NULL for legacy records or steps without an explicit level. Join to dim_dunning_level for the level’s position and type. |
||||
| previous_dunning_step_id | int8 | 19 | √ | null |
|
|
FK to the preceding dunning step for this customer (self-reference). Forms a chain of dunning steps over time. NULL for the first step in a customer’s dunning history. |
||||
| dunning_date | date | 13 | √ | null |
|
|
The date the dunning step was executed. |
||||
| collection_stop | bool | 1 | √ | null |
|
|
Whether payment collection is halted for this customer as a result of this dunning step. Source NULL values are coalesced to false. A stop is active as of a reference date when: |
||||
| service_stop | bool | 1 | √ | null |
|
|
Whether the customer’s access to the studio was locked as a result of this dunning step. |
||||
| withdrawn_date | timestamptz | 35 | √ | null |
|
|
The timestamp at which this dunning step was withdrawn (resolved, reversed, or superseded). NULL means the step is still active. |
||||
| amount | numeric | 23,6 | √ | null |
|
|
The outstanding amount at the time this dunning step was recorded. |
||||
| origin | varchar | 50 | √ | null |
|
|
The source that triggered this dunning step. Values
|
||||
| transferred_to_debt_collection_service_provider | bool | 1 | √ | null |
|
|
Whether this dunning step resulted in the debt being transferred to an external debt collection service provider. |
||||
| extraordinary_contract_cancelation | bool | 1 | √ | null |
|
|
Whether this dunning step triggered an extraordinary (out-of-term) contract cancellation. |
||||
| contract_rest_maturity | bool | 1 | √ | null |
|
|
Whether this dunning step triggered early collection of the remaining contract value (Restfälligkeit). The full outstanding contract amount becomes immediately due. |
||||
| contract_cancellation_damage_compensation | bool | 1 | √ | null |
|
|
Whether damage compensation was charged as part of a contract cancellation triggered by this dunning step. |
||||
| communication_sent_immediately | bool | 1 | √ | null |
|
|
Whether the dunning communication (letter, email, or SMS) was dispatched immediately rather than queued for batched sending. NULL for legacy rows predating this flag. A non-NULL value indicates that a dunning communication was configured for this step. |
||||
| undo_contract_cancelation_when_debt_claims_paid | bool | 1 | √ | null |
|
|
Whether the extraordinary contract cancellation triggered by this dunning step should be automatically reversed once all outstanding debt claims are settled. |
||||
| last_updated | timestamptz | 35 | √ | null |
|
|
System column. UTC Timestamp at which entry was calculated (lags shortly behind source system). |



