feat(api): support schedule quota tracking

This commit is contained in:
avicenan
2026-03-25 11:17:52 +07:00
parent 88e715c592
commit c3f77f4c69
3 changed files with 51 additions and 0 deletions

View File

@ -366,6 +366,7 @@ const doc = {
$doctorId: "uuid-string",
$title: "Practice Schedule",
$timezone: "Asia/Jakarta",
$quota: 20,
$startDate: "2026-03-20",
$untilDate: "2026-06-30",
$startTimeLocal: "09:00:00",
@ -377,6 +378,7 @@ const doc = {
$doctorId: "uuid-string",
$title: "Practice Schedule Updated",
$timezone: "Asia/Jakarta",
$quota: 25,
$startDate: "2026-03-20",
$untilDate: "2026-07-31",
$startTimeLocal: "10:00:00",
@ -406,6 +408,9 @@ const doc = {
$title: "Practice",
$startAt: "2026-03-20T09:00:00+07:00",
$endAt: "2026-03-20T12:00:00+07:00",
$quota: 20,
$usedQuota: 7,
$leftQuota: 13,
$isRecurring: true,
$isException: false,
$status: "confirmed"