User Contract
This model represents user invoice.
| Property | Type | Description | Information |
|---|---|---|---|
id | int | Identifier | Unique for single user invoice. |
user_id | int | Identifier | Foreign key to user table. |
type | int | Type of user's contract | Value is taken from ContractTypesEnum. |
from | date | Beginning of the contract | Must be set. |
to | date | End of the contract | Nullable |
is_active | bool | Contract status | Determines wheather contract is active or not. |
created_at | DateTime | User Contract creation date and time | Read-only. |
updated_at | DateTime | User Contract update date and time | Read-only. |
Example:
{
"id": 1,
"user_id": 1,
"type": 4,
"from": "2023-06-30T22:00:00.000000Z",
"to": null,
"is_active": true,
"created_at": "2023-07-01T13:45:56+0200",
"updated_at": "2023-07-01T13:45:56+0200"
}