CreateResourceEventDto
resourceIdnumberrequired
ID ресурсу
Example:
1typestringrequired
Тип події (vaccination | farrier | vet_checkup | deworming | dental | grooming | training | other)
Example:
vaccinationtitlestringrequired
Заголовок
Example:
Вакцинація проти грипуnotesstring
scheduledAtstringrequired
Дата і час
Example:
2026-06-01T10:00:00ZdurationMinutesnumber
Default value:
30performedByStaffIdnumber
ID співробітника, який виконує
externalProviderIdnumber
ID збереженого зовнішнього виконавця
externalProviderNamestring
Імʼя зовнішнього виконавця (якщо не зберігаємо у довіднику)
statusstring
Possible values: [planned, done, cancelled]
Default value:
plannedcoststring
Вартість
Example:
500.00nextDueDatestring
Дата наступної процедури (для нагадування)
Example:
2027-06-01attachmentsobject
Прикріплення (jsonb)
CreateResourceEventDto
{
"resourceId": 1,
"type": "vaccination",
"title": "Вакцинація проти грипу",
"notes": "string",
"scheduledAt": "2026-06-01T10:00:00Z",
"durationMinutes": 30,
"performedByStaffId": 0,
"externalProviderId": 0,
"externalProviderName": "string",
"status": "planned",
"cost": "500.00",
"nextDueDate": "2027-06-01",
"attachments": {}
}