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/0003_unknown_speed_demon.sql | |
| parent | 230ce796836c25df26c130dbcd616ef97d12b2ec (diff) | |
로그인 및 미들웨어 처리. 구조 변경
Diffstat (limited to 'db/migrations/0003_unknown_speed_demon.sql')
| -rw-r--r-- | db/migrations/0003_unknown_speed_demon.sql | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/db/migrations/0003_unknown_speed_demon.sql b/db/migrations/0003_unknown_speed_demon.sql deleted file mode 100644 index 19fc36a8..00000000 --- a/db/migrations/0003_unknown_speed_demon.sql +++ /dev/null @@ -1,5 +0,0 @@ -DROP VIEW "public"."user_view";--> statement-breakpoint -ALTER TABLE "roles" ADD COLUMN "description" text DEFAULT '' NOT NULL;--> statement-breakpoint -CREATE VIEW "public"."user_view" AS (select "users"."id" as "user_id", "users"."name" as "user_name", "users"."email" as "user_email", "users"."domain" as "user_domain", "users"."image_url" as "user_image", "companies"."id" as "company_id", "companies"."name" as "company_name", - array_agg("roles"."name") - as "roles", "users"."created_at" as "created_at" from "users" left join "companies" on "users"."company_id" = "companies"."id" left join "user_roles" on "users"."id" = "user_roles"."user_id" left join "roles" on "user_roles"."role_id" = "roles"."id" group by "users"."id", "companies"."id");
\ No newline at end of file |
