Skip to main content

User Contract

This model represents user invoice.

PropertyTypeDescriptionInformation
idintIdentifierUnique for single user invoice.
user_idintIdentifierForeign key to user table.
typeintType of user's contractValue is taken from ContractTypesEnum.
fromdateBeginning of the contractMust be set.
todateEnd of the contractNullable
is_activeboolContract statusDetermines wheather contract is active or not.
created_atDateTimeUser Contract creation date and timeRead-only.
updated_atDateTimeUser Contract update date and timeRead-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"
}