refactor: selected columns in queries (#17589)

This commit is contained in:
Daniel Dietzler
2025-04-14 20:34:06 +02:00
committed by GitHub
parent 5a51ad3622
commit 0b69d1c147
9 changed files with 50 additions and 144 deletions
+22 -112
View File
@@ -10,19 +10,9 @@ select
(
select
"id",
"email",
"createdAt",
"profileImagePath",
"isAdmin",
"shouldChangePassword",
"deletedAt",
"oauthId",
"updatedAt",
"storageLabel",
"name",
"quotaSizeInBytes",
"quotaUsageInBytes",
"status",
"email",
"profileImagePath",
"profileChangedAt"
from
"users"
@@ -36,7 +26,7 @@ select
from
(
select
"album_users".*,
"album_users"."role",
(
select
to_json(obj)
@@ -44,19 +34,9 @@ select
(
select
"id",
"email",
"createdAt",
"profileImagePath",
"isAdmin",
"shouldChangePassword",
"deletedAt",
"oauthId",
"updatedAt",
"storageLabel",
"name",
"quotaSizeInBytes",
"quotaUsageInBytes",
"status",
"email",
"profileImagePath",
"profileChangedAt"
from
"users"
@@ -118,19 +98,9 @@ select
(
select
"id",
"email",
"createdAt",
"profileImagePath",
"isAdmin",
"shouldChangePassword",
"deletedAt",
"oauthId",
"updatedAt",
"storageLabel",
"name",
"quotaSizeInBytes",
"quotaUsageInBytes",
"status",
"email",
"profileImagePath",
"profileChangedAt"
from
"users"
@@ -144,7 +114,7 @@ select
from
(
select
"album_users".*,
"album_users"."role",
(
select
to_json(obj)
@@ -152,19 +122,9 @@ select
(
select
"id",
"email",
"createdAt",
"profileImagePath",
"isAdmin",
"shouldChangePassword",
"deletedAt",
"oauthId",
"updatedAt",
"storageLabel",
"name",
"quotaSizeInBytes",
"quotaUsageInBytes",
"status",
"email",
"profileImagePath",
"profileChangedAt"
from
"users"
@@ -229,19 +189,9 @@ select
(
select
"id",
"email",
"createdAt",
"profileImagePath",
"isAdmin",
"shouldChangePassword",
"deletedAt",
"oauthId",
"updatedAt",
"storageLabel",
"name",
"quotaSizeInBytes",
"quotaUsageInBytes",
"status",
"email",
"profileImagePath",
"profileChangedAt"
from
"users"
@@ -255,7 +205,7 @@ select
from
(
select
"album_users".*,
"album_users"."role",
(
select
to_json(obj)
@@ -263,19 +213,9 @@ select
(
select
"id",
"email",
"createdAt",
"profileImagePath",
"isAdmin",
"shouldChangePassword",
"deletedAt",
"oauthId",
"updatedAt",
"storageLabel",
"name",
"quotaSizeInBytes",
"quotaUsageInBytes",
"status",
"email",
"profileImagePath",
"profileChangedAt"
from
"users"
@@ -319,7 +259,7 @@ select
from
(
select
"album_users".*,
"album_users"."role",
(
select
to_json(obj)
@@ -327,19 +267,9 @@ select
(
select
"id",
"email",
"createdAt",
"profileImagePath",
"isAdmin",
"shouldChangePassword",
"deletedAt",
"oauthId",
"updatedAt",
"storageLabel",
"name",
"quotaSizeInBytes",
"quotaUsageInBytes",
"status",
"email",
"profileImagePath",
"profileChangedAt"
from
"users"
@@ -360,19 +290,9 @@ select
(
select
"id",
"email",
"createdAt",
"profileImagePath",
"isAdmin",
"shouldChangePassword",
"deletedAt",
"oauthId",
"updatedAt",
"storageLabel",
"name",
"quotaSizeInBytes",
"quotaUsageInBytes",
"status",
"email",
"profileImagePath",
"profileChangedAt"
from
"users"
@@ -431,19 +351,9 @@ select
(
select
"id",
"email",
"createdAt",
"profileImagePath",
"isAdmin",
"shouldChangePassword",
"deletedAt",
"oauthId",
"updatedAt",
"storageLabel",
"name",
"quotaSizeInBytes",
"quotaUsageInBytes",
"status",
"email",
"profileImagePath",
"profileChangedAt"
from
"users"