Contract model.
| Name | Type | Description |
|---|---|---|
| active | Boolean | Validity flag: true - valid, false - invalid. |
| amount | Decimal | Contract amount. |
| attached_user | User | Responsible user. |
| code | String | Contract code. |
| currency | Currency | Contract currency. |
| date | Int64 | Contract date as Unix time. |
| deleted_mark | Boolean | Deletion mark. |
| description | String | Additional description. |
| details | String | Contract details. |
| direction | String | Contract direction: Income or Outcome. Allowed values: All, Income, Outcome. |
| end_date | Int64 | Contract work end date as Unix time in seconds. |
| firm | Firm | Company. |
| id | Int64 | Contract ID. |
| last_update | Int64 | Last record update date as Unix time in seconds. |
| name | String | Contract name. |
| partner | Partner | Partner. |
| start_date | Int64 | Contract work start date as Unix time in seconds. |