From 9ceed79cf32c896f8a998399bf1b296506b2cd4a Mon Sep 17 00:00:00 2001
From: dujinkim <dujin.kim@dtsolution.co.kr>
Date: Tue, 8 Apr 2025 03:08:19 +0000
Subject: 로그인 및 미들웨어 처리. 구조 변경
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 db/migrations_backup/0084_familiar_skrulls.sql | 2 ++
 1 file changed, 2 insertions(+)
 create mode 100644 db/migrations_backup/0084_familiar_skrulls.sql

(limited to 'db/migrations_backup/0084_familiar_skrulls.sql')

diff --git a/db/migrations_backup/0084_familiar_skrulls.sql b/db/migrations_backup/0084_familiar_skrulls.sql
new file mode 100644
index 00000000..95bed728
--- /dev/null
+++ b/db/migrations_backup/0084_familiar_skrulls.sql
@@ -0,0 +1,2 @@
+DROP VIEW "public"."role_view";--> statement-breakpoint
+CREATE VIEW "public"."role_view" AS (select "roles"."id" as "id", "roles"."name" as "name", "roles"."description" as "description", "roles"."domain" as "domain", "roles"."created_at" as "created_at", "vendors"."id" as "company_id", "vendors"."vendor_name" as "company_name", COUNT("users"."id") as "user_count" from "roles" left join "user_roles" on "user_roles"."role_id" = "roles"."id" left join "users" on "users"."id" = "user_roles"."user_id" left join "vendors" on "roles"."company_id" = "vendors"."id" group by "roles"."id", "vendors"."id");
\ No newline at end of file
-- 
cgit v1.2.3

