From fed3dc0349be8faa5a94048e2ce2d96e432bf734 Mon Sep 17 00:00:00 2001
From: joonhoekim <26rote@gmail.com>
Date: Fri, 10 Oct 2025 11:45:48 +0900
Subject: (김준회) chore: migrations_backup 경로 제거
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 db/migrations_backup/0078_empty_shooting_star.sql | 26 -----------------------
 1 file changed, 26 deletions(-)
 delete mode 100644 db/migrations_backup/0078_empty_shooting_star.sql

(limited to 'db/migrations_backup/0078_empty_shooting_star.sql')

diff --git a/db/migrations_backup/0078_empty_shooting_star.sql b/db/migrations_backup/0078_empty_shooting_star.sql
deleted file mode 100644
index 032f9ae0..00000000
--- a/db/migrations_backup/0078_empty_shooting_star.sql
+++ /dev/null
@@ -1,26 +0,0 @@
-DROP VIEW "public"."rfqs_view";--> statement-breakpoint
-CREATE VIEW "public"."rfqs_view" AS (select "rfqs"."id" as "rfq_id", "rfqs"."status" as "status", "rfqs"."created_at" as "created_at", "rfqs"."updated_at" as "updated_at", "rfqs"."created_by" as "created_by", "rfqs"."rfq_type" as "rfq_type", "rfqs"."rfq_code" as "rfq_code", "rfqs"."description" as "description", "rfqs"."due_date" as "due_date", "rfqs"."parent_rfq_id" as "parent_rfq_id", "projects"."id" as "project_id", "projects"."code" as "project_code", "projects"."name" as "project_name", "users"."email" as "user_email", "users"."name" as "user_name", (
-          SELECT COUNT(*) 
-          FROM "rfq_items" 
-          WHERE "rfq_items"."rfq_id" = "rfqs"."id"
-        ) as "item_count", (
-          SELECT COUNT(*) 
-          FROM "rfq_attachments" 
-          WHERE "rfq_attachments"."rfq_id" = "rfqs"."id"
-        ) as "attachment_count", (
-          SELECT MAX("created_at") 
-          FROM "rfq_attachments" 
-          WHERE "rfq_attachments"."rfq_id" = "rfqs"."id"
-        ) as "latest_attachment_date", (
-          SELECT MIN("unit_price") 
-          FROM "rfq_items" 
-          WHERE "rfq_items"."rfq_id" = "rfqs"."id"
-        ) as "min_item_price", (
-          SELECT MAX("unit_price") 
-          FROM "rfq_items" 
-          WHERE "rfq_items"."rfq_id" = "rfqs"."id"
-        ) as "max_item_price", (
-          SELECT SUM("unit_price" * "quantity") 
-          FROM "rfq_items" 
-          WHERE "rfq_items"."rfq_id" = "rfqs"."id"
-        ) as "total_items_amount" from "rfqs" left join "projects" on "rfqs"."project_id" = "projects"."id" left join "users" on "rfqs"."created_by" = "users"."id");
\ No newline at end of file
-- 
cgit v1.2.3

