refactor: 移除旧服务模型统一使用业务提供项

This commit is contained in:
que01 committed 2026-09-21 17:11:45 +08:00
1 parent ca85a583ce
commit 844a3bd715
13 files changed
+92 -146

No files matched your search

@@ -0,0 +1,9 @@
-- Service data was backfilled into Offering before this migration.
ALTER TABLE "BookingItem" DROP CONSTRAINT IF EXISTS "BookingItem_serviceId_fkey";
ALTER TABLE "Booking" DROP CONSTRAINT IF EXISTS "Booking_serviceId_fkey";
ALTER TABLE "Offering" DROP CONSTRAINT IF EXISTS "Service_offeringId_fkey";
ALTER TABLE "BookingItem" DROP COLUMN IF EXISTS "serviceId";
ALTER TABLE "Booking" DROP COLUMN IF EXISTS "serviceId";
DROP INDEX IF EXISTS "Service_brandId_isEnabled_sortOrder_idx";
DROP INDEX IF EXISTS "Service_brandId_name_key";
DROP TABLE IF EXISTS "Service";