19 Commits

Author SHA1 Message Date
vchikalkin
50f23f67b3 feat: update customer and service schemas to enforce maxLength and required attributes
- Added maxLength constraints to 'name' and 'phone' attributes in customer and service schemas.
- Marked 'name' as required in both schemas.
- Updated TypeScript definitions to reflect these changes.
2025-08-02 11:15:21 +03:00
Vlad Chikalkin
d592c9cf31
feat: add 'active' boolean attribute to content type schema and TypeScript definitions (#5) 2025-08-01 19:53:47 +03:00
vchikalkin
7f57b03c88 order: remove field 'price' 2025-07-22 13:33:52 +03:00
vchikalkin
6dc36ebe89 refactor: remove service_description field from order schema and TypeScript definitions 2025-07-19 13:46:20 +03:00
Vlad Chikalkin
b0171aa079
Refactor/migrate to datetime (#2)
* feat: refactor order and slot lifecycles to use datetime fields for time validation

* refactor: remove time fields from order and slot schemas to streamline data structure

* fix: correct time validation logic in order and slot lifecycles to ensure proper datetime comparisons

* fix: update order lifecycle validation to exclude only 'cancelled' state

* fix: add validation to ensure order times fall within the specified slot boundaries

* feat: integrate dayjs for improved datetime handling in order lifecycles
Нельзя завершить запись до её наступления

* fix: enhance datetime validation in order and slot lifecycles to ensure accurate comparisons

* fix: standardize error messages in order and slot lifecycles for better clarity
2025-07-18 17:12:57 +03:00
vchikalkin
065da3e275 order: rename cancellation ->cancelling 2025-06-24 12:32:36 +03:00
vchikalkin
af4196c685 order: add state 'cancellation' 2025-06-24 11:35:34 +03:00
vchikalkin
e419cd811c packages: upgrade strapi version 2025-06-10 11:24:30 +03:00
vchikalkin
d62b9ad4b0 order: delete date field 2025-06-10 11:19:13 +03:00
vchikalkin
797da91b8e service: add field 'duration' 2025-05-08 17:40:15 +03:00
vchikalkin
3c2c7701b1 customer::service relations 2025-05-07 17:46:58 +03:00
vchikalkin
554fa6adc0 add type 'service' 2025-02-12 11:16:44 +03:00
vchikalkin
b30e9e46fb fix fields types & names 2025-02-11 11:40:37 +03:00
vchikalkin
efe34ba945 upgrade for slots & orders functional 2025-01-30 18:56:18 +03:00
vchikalkin
844365c40a upgrade entities 2025-01-27 19:33:49 +03:00
vchikalkin
4001b68491 customer.active=false by default 2025-01-10 19:17:56 +03:00
vchikalkin
2580fedfd6 customer: add field "photoUrl" 2025-01-01 16:05:09 +03:00
vchikalkin
d14a8279c0 правки anna k 2024-12-04 19:04:41 +03:00
vchikalkin
d24eea9e25 day 2 2024-11-28 23:29:05 +03:00