Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| id | int4 | 10 | null |
|
|
||||||
| deleted | timestamptz | 35,6 | √ | null |
|
|
|||||
| code | varchar | 255 | null |
|
|
||||||
| created_at | timestamptz | 35,6 | null |
|
|
||||||
| updated_at | timestamptz | 35,6 | null |
|
|
||||||
| history_id | serial | 10 | √ | nextval('api_historicalcontract_history_id_seq'::regclass) |
|
|
|||||
| history_date | timestamptz | 35,6 | null |
|
|
||||||
| history_change_reason | varchar | 100 | √ | null |
|
|
|||||
| history_type | varchar | 1 | null |
|
|
||||||
| company_id | int4 | 10 | √ | null |
|
|
|||||
| history_user_id | int4 | 10 | √ | null |
|
|
|||||
| type_contract_id | int4 | 10 | √ | null |
|
|
|||||
| end_billing_date | timestamptz | 35,6 | √ | null |
|
|
|||||
| start_billing_date | timestamptz | 35,6 | √ | null |
|
|
|||||
| name_invoce_to | varchar | 255 | √ | null |
|
|
|||||
| abbreviation | varchar | 255 | √ | null |
|
|
|||||
| address | varchar | 255 | √ | null |
|
|
|||||
| alias | varchar | 255 | √ | null |
|
|
|||||
| varchar | 255 | √ | null |
|
|
||||||
| identification_number | varchar | 255 | √ | null |
|
|
|||||
| phone | varchar | 255 | √ | null |
|
|
|||||
| web | varchar | 255 | √ | null |
|
|
|||||
| is_active | bool | 1 | null |
|
|
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| api_historicalcontract_pkey | Primary key | Asc | history_id |
| api_historicalcontract_code_ef4f9426 | Performance | Asc | code |
| api_historicalcontract_code_ef4f9426_like | Performance | Asc | code |
| api_historicalcontract_company_id_74955678 | Performance | Asc | company_id |
| api_historicalcontract_history_user_id_65b1e417 | Performance | Asc | history_user_id |
| api_historicalcontract_id_0047b08c | Performance | Asc | id |
| api_historicalcontract_type_contract_id_a53ab52b | Performance | Asc | type_contract_id |