diff options
| author | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-04-08 03:08:19 +0000 |
|---|---|---|
| committer | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-04-08 03:08:19 +0000 |
| commit | 9ceed79cf32c896f8a998399bf1b296506b2cd4a (patch) | |
| tree | f84750fa6cac954d5e31221fc47a54c655fc06a9 /db/migrations/0079_big_sue_storm.sql | |
| parent | 230ce796836c25df26c130dbcd616ef97d12b2ec (diff) | |
로그인 및 미들웨어 처리. 구조 변경
Diffstat (limited to 'db/migrations/0079_big_sue_storm.sql')
| -rw-r--r-- | db/migrations/0079_big_sue_storm.sql | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/db/migrations/0079_big_sue_storm.sql b/db/migrations/0079_big_sue_storm.sql deleted file mode 100644 index c9d01535..00000000 --- a/db/migrations/0079_big_sue_storm.sql +++ /dev/null @@ -1,10 +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" 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 |
