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/0023_clean_clea.sql | 2 ++
 1 file changed, 2 insertions(+)
 create mode 100644 db/migrations/0023_clean_clea.sql

(limited to 'db/migrations/0023_clean_clea.sql')

diff --git a/db/migrations/0023_clean_clea.sql b/db/migrations/0023_clean_clea.sql
new file mode 100644
index 00000000..f28a12fb
--- /dev/null
+++ b/db/migrations/0023_clean_clea.sql
@@ -0,0 +1,2 @@
+DROP VIEW "public"."project_approved_vendors";--> statement-breakpoint
+CREATE VIEW "public"."project_approved_vendors" AS (select "vendors"."id", "vendors"."vendor_name", "vendors"."vendor_code", "vendors"."tax_id", "vendors"."email", "vendors"."phone", "vendors"."status", "vendor_types"."name_ko", "vendor_types"."name_en", "projects"."code", "projects"."name", "projects"."type", "vendor_project_pqs"."submitted_at", "vendor_project_pqs"."approved_at" from "vendors" inner join "vendor_project_pqs" on "vendor_project_pqs"."vendor_id" = "vendors"."id" inner join "projects" on "vendor_project_pqs"."project_id" = "projects"."id" left join "vendor_types" on "vendors"."vendor_type_id" = "vendor_types"."id" where "vendor_project_pqs"."status" = 'APPROVED');
\ No newline at end of file
-- 
cgit v1.2.3

