diff options
| author | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-05-13 03:07:39 +0000 |
|---|---|---|
| committer | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-05-13 03:07:39 +0000 |
| commit | e46b7ccad4db812dfc8455b20425469afad61788 (patch) | |
| tree | 6bac1b29c858e055a60fcf66fad5abfdc0b2f99c /db/migrations/0058_low_hitman.sql | |
| parent | 33743e6c3bf14bf8a0d7da24478e38a0a7e7ed93 (diff) | |
(대표님) drizzle-kit migrations and snapshots
Diffstat (limited to 'db/migrations/0058_low_hitman.sql')
| -rw-r--r-- | db/migrations/0058_low_hitman.sql | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/db/migrations/0058_low_hitman.sql b/db/migrations/0058_low_hitman.sql new file mode 100644 index 00000000..db2b860f --- /dev/null +++ b/db/migrations/0058_low_hitman.sql @@ -0,0 +1,10 @@ +CREATE TYPE "public"."work_type" AS ENUM('기장', '전장', '선실', '배관', '철의');--> statement-breakpoint +CREATE TABLE "item_shipbuilding" ( + "id" serial PRIMARY KEY NOT NULL, + "item_id" integer NOT NULL, + "work_type" "work_type" NOT NULL, + "ship_types" text DEFAULT 'A-MAX' NOT NULL +); +--> statement-breakpoint +ALTER TABLE "users" ADD COLUMN "language" varchar(10) DEFAULT 'en';--> statement-breakpoint +ALTER TABLE "item_shipbuilding" ADD CONSTRAINT "item_shipbuilding_item_id_items_id_fk" FOREIGN KEY ("item_id") REFERENCES "public"."items"("id") ON DELETE cascade ON UPDATE no action;
\ No newline at end of file |
