general category trip

This commit is contained in:
2026-05-07 18:47:45 +07:00
parent 12f13f2049
commit 49aa64c522
25 changed files with 904 additions and 386 deletions
@@ -0,0 +1,8 @@
-- CreateEnum
CREATE TYPE "ActivityCategory" AS ENUM ('HIKING', 'CAMPING', 'SNORKELING', 'DIVING', 'ISLAND_HOPPING', 'CITY_TRIP', 'CULINARY', 'CONCERT', 'WORKSHOP', 'RETREAT');
-- AlterTable
ALTER TABLE "Trip" ADD COLUMN "category" "ActivityCategory" NOT NULL DEFAULT 'HIKING';
-- CreateIndex
CREATE INDEX "Trip_category_status_date_idx" ON "Trip"("category", "status", "date");
@@ -0,0 +1,2 @@
-- AlterTable: rename column without data loss
ALTER TABLE "Trip" RENAME COLUMN "mountain" TO "destination";