From ef4c533ebacc2cdc97e518f30e9a9350004fcdfb Mon Sep 17 00:00:00 2001
From: dujinkim <dujin.kim@dtsolution.co.kr>
Date: Mon, 28 Apr 2025 02:13:30 +0000
Subject: ~20250428 작업사항
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 db/migrations/0009_wet_joseph.sql | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 db/migrations/0009_wet_joseph.sql

(limited to 'db/migrations/0009_wet_joseph.sql')

diff --git a/db/migrations/0009_wet_joseph.sql b/db/migrations/0009_wet_joseph.sql
new file mode 100644
index 00000000..41789b99
--- /dev/null
+++ b/db/migrations/0009_wet_joseph.sql
@@ -0,0 +1,12 @@
+CREATE TABLE "vendor_types" (
+	"id" serial PRIMARY KEY NOT NULL,
+	"code" varchar(50) NOT NULL,
+	"name_ko" varchar(255) NOT NULL,
+	"name_en" varchar(255) NOT NULL,
+	"created_at" timestamp DEFAULT now() NOT NULL,
+	"updated_at" timestamp DEFAULT now() NOT NULL,
+	CONSTRAINT "vendor_types_code_unique" UNIQUE("code")
+);
+--> statement-breakpoint
+ALTER TABLE "vendors" ADD COLUMN "vendor_type_id" integer;--> statement-breakpoint
+ALTER TABLE "vendors" ADD CONSTRAINT "vendors_vendor_type_id_vendor_types_id_fk" FOREIGN KEY ("vendor_type_id") REFERENCES "public"."vendor_types"("id") ON DELETE no action ON UPDATE no action;
\ No newline at end of file
-- 
cgit v1.2.3

