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

(limited to 'db/migrations/0030_warm_wildside.sql')

diff --git a/db/migrations/0030_warm_wildside.sql b/db/migrations/0030_warm_wildside.sql
new file mode 100644
index 00000000..ed37d142
--- /dev/null
+++ b/db/migrations/0030_warm_wildside.sql
@@ -0,0 +1,2 @@
+DROP VIEW "public"."basic_contract_view";--> statement-breakpoint
+CREATE VIEW "public"."basic_contract_view" AS (select "basic_contract"."id" as "id", "basic_contract"."template_id" as "template_id", "basic_contract"."vendor_id" as "vendor_id", "basic_contract"."requested_by" as "requested_by", "basic_contract"."status" as "basic_contract_status", "basic_contract"."created_at" as "created_at", "basic_contract"."updated_at" as "updated_at", "vendors"."vendor_code" as "vendor_code", "vendors"."email" as "vendor_email", "vendors"."vendor_name" as "vendor_name", "users"."name" as "user_name", "basic_contract_templates"."template_name" as "template_name", "basic_contract_templates"."file_path" as "file_path", "basic_contract_templates"."file_name" as "file_name" from "basic_contract" left join "vendors" on "basic_contract"."vendor_id" = "vendors"."id" left join "users" on "basic_contract"."requested_by" = "users"."id" left join "basic_contract_templates" on "basic_contract"."template_id" = "basic_contract_templates"."id");
\ No newline at end of file
-- 
cgit v1.2.3

