From 6b90ce22572af08235f0a71832bad24f2ab8f6c6 Mon Sep 17 00:00:00 2001 From: hobbescodes <87732294+hobbescodes@users.noreply.github.com> Date: Thu, 2 Jan 2025 19:35:42 -0600 Subject: [PATCH 1/5] refactor(schema): require that org and project slugs are not null --- src/generated/graphql/schema.executable.ts | 28 +- .../drizzle/migrations/0004_easy_lockheed.sql | 2 + .../migrations/meta/0004_snapshot.json | 643 ++++++++++++++++++ src/lib/drizzle/migrations/meta/_journal.json | 7 + src/lib/drizzle/schema/organization.table.ts | 2 +- src/lib/drizzle/schema/project.table.ts | 2 +- 6 files changed, 668 insertions(+), 16 deletions(-) create mode 100644 src/lib/drizzle/migrations/0004_easy_lockheed.sql create mode 100644 src/lib/drizzle/migrations/meta/0004_snapshot.json diff --git a/src/generated/graphql/schema.executable.ts b/src/generated/graphql/schema.executable.ts index f9a3768..0140a84 100644 --- a/src/generated/graphql/schema.executable.ts +++ b/src/generated/graphql/schema.executable.ts @@ -120,7 +120,7 @@ const spec_userOrganization = { }), description: undefined, extensions: { - oid: "77872", + oid: "80353", isTableLike: true, pg: { serviceName: "main", @@ -200,7 +200,7 @@ const spec_downvote = { }), description: undefined, extensions: { - oid: "78725", + oid: "80418", isTableLike: true, pg: { serviceName: "main", @@ -280,7 +280,7 @@ const spec_upvote = { }), description: undefined, extensions: { - oid: "77850", + oid: "80331", isTableLike: true, pg: { serviceName: "main", @@ -324,7 +324,7 @@ const spec_organization = { slug: { description: undefined, codec: TYPES.text, - notNull: false, + notNull: true, hasDefault: false, extensions: { tags: {}, @@ -360,7 +360,7 @@ const spec_organization = { }), description: undefined, extensions: { - oid: "77812", + oid: "80293", isTableLike: true, pg: { serviceName: "main", @@ -452,7 +452,7 @@ const spec_comment = { }), description: undefined, extensions: { - oid: "78467", + oid: "80398", isTableLike: true, pg: { serviceName: "main", @@ -556,7 +556,7 @@ const spec_post = { }), description: undefined, extensions: { - oid: "77826", + oid: "80307", isTableLike: true, pg: { serviceName: "main", @@ -612,7 +612,7 @@ const spec_project = { slug: { description: undefined, codec: TYPES.text, - notNull: false, + notNull: true, hasDefault: false, extensions: { tags: {}, @@ -672,7 +672,7 @@ const spec_project = { }), description: undefined, extensions: { - oid: "77836", + oid: "80317", isTableLike: true, pg: { serviceName: "main", @@ -776,7 +776,7 @@ const spec_user = { }), description: undefined, extensions: { - oid: "77860", + oid: "80341", isTableLike: true, pg: { serviceName: "main", @@ -4628,7 +4628,7 @@ type Organization implements Node { id: ID! rowId: UUID! name: String - slug: String + slug: String! createdAt: Datetime updatedAt: Datetime @@ -4742,7 +4742,7 @@ type Project implements Node { rowId: UUID! name: String image: String - slug: String + slug: String! description: String organizationId: UUID! createdAt: Datetime @@ -8336,7 +8336,7 @@ input CreateOrganizationInput { input OrganizationInput { rowId: UUID name: String - slug: String + slug: String! createdAt: Datetime updatedAt: Datetime } @@ -8518,7 +8518,7 @@ input ProjectInput { rowId: UUID name: String image: String - slug: String + slug: String! description: String organizationId: UUID! createdAt: Datetime diff --git a/src/lib/drizzle/migrations/0004_easy_lockheed.sql b/src/lib/drizzle/migrations/0004_easy_lockheed.sql new file mode 100644 index 0000000..16b869d --- /dev/null +++ b/src/lib/drizzle/migrations/0004_easy_lockheed.sql @@ -0,0 +1,2 @@ +ALTER TABLE "organization" ALTER COLUMN "slug" SET NOT NULL;--> statement-breakpoint +ALTER TABLE "project" ALTER COLUMN "slug" SET NOT NULL; \ No newline at end of file diff --git a/src/lib/drizzle/migrations/meta/0004_snapshot.json b/src/lib/drizzle/migrations/meta/0004_snapshot.json new file mode 100644 index 0000000..756073c --- /dev/null +++ b/src/lib/drizzle/migrations/meta/0004_snapshot.json @@ -0,0 +1,643 @@ +{ + "id": "c90da68b-8e52-4d89-b142-2daccf9d974f", + "prevId": "c3d6effb-2f62-41a2-b761-2021cf198532", + "version": "7", + "dialect": "postgresql", + "tables": { + "public.comment": { + "name": "comment", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "message": { + "name": "message", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "post_id": { + "name": "post_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "user_id": { + "name": "user_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp(6) with time zone", + "primaryKey": false, + "notNull": false, + "default": "now()" + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp(6) with time zone", + "primaryKey": false, + "notNull": false, + "default": "now()" + } + }, + "indexes": {}, + "foreignKeys": { + "comment_post_id_post_id_fk": { + "name": "comment_post_id_post_id_fk", + "tableFrom": "comment", + "tableTo": "post", + "columnsFrom": [ + "post_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "comment_user_id_user_id_fk": { + "name": "comment_user_id_user_id_fk", + "tableFrom": "comment", + "tableTo": "user", + "columnsFrom": [ + "user_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.downvote": { + "name": "downvote", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "post_id": { + "name": "post_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "user_id": { + "name": "user_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp(6) with time zone", + "primaryKey": false, + "notNull": false, + "default": "now()" + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp(6) with time zone", + "primaryKey": false, + "notNull": false, + "default": "now()" + } + }, + "indexes": {}, + "foreignKeys": { + "downvote_post_id_post_id_fk": { + "name": "downvote_post_id_post_id_fk", + "tableFrom": "downvote", + "tableTo": "post", + "columnsFrom": [ + "post_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "downvote_user_id_user_id_fk": { + "name": "downvote_user_id_user_id_fk", + "tableFrom": "downvote", + "tableTo": "user", + "columnsFrom": [ + "user_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": { + "downvote_postId_userId_unique": { + "name": "downvote_postId_userId_unique", + "nullsNotDistinct": false, + "columns": [ + "post_id", + "user_id" + ] + } + }, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.organization": { + "name": "organization", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "slug": { + "name": "slug", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp(6) with time zone", + "primaryKey": false, + "notNull": false, + "default": "now()" + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp(6) with time zone", + "primaryKey": false, + "notNull": false, + "default": "now()" + } + }, + "indexes": {}, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": { + "organization_name_unique": { + "name": "organization_name_unique", + "nullsNotDistinct": false, + "columns": [ + "name" + ] + }, + "organization_slug_unique": { + "name": "organization_slug_unique", + "nullsNotDistinct": false, + "columns": [ + "slug" + ] + } + }, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.post": { + "name": "post", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "title": { + "name": "title", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "description": { + "name": "description", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "project_id": { + "name": "project_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "user_id": { + "name": "user_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp(6) with time zone", + "primaryKey": false, + "notNull": false, + "default": "now()" + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp(6) with time zone", + "primaryKey": false, + "notNull": false, + "default": "now()" + } + }, + "indexes": {}, + "foreignKeys": { + "post_project_id_project_id_fk": { + "name": "post_project_id_project_id_fk", + "tableFrom": "post", + "tableTo": "project", + "columnsFrom": [ + "project_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "post_user_id_user_id_fk": { + "name": "post_user_id_user_id_fk", + "tableFrom": "post", + "tableTo": "user", + "columnsFrom": [ + "user_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.project": { + "name": "project", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "image": { + "name": "image", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "slug": { + "name": "slug", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "description": { + "name": "description", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "organization_id": { + "name": "organization_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp(6) with time zone", + "primaryKey": false, + "notNull": false, + "default": "now()" + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp(6) with time zone", + "primaryKey": false, + "notNull": false, + "default": "now()" + } + }, + "indexes": {}, + "foreignKeys": { + "project_organization_id_organization_id_fk": { + "name": "project_organization_id_organization_id_fk", + "tableFrom": "project", + "tableTo": "organization", + "columnsFrom": [ + "organization_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": { + "project_name_unique": { + "name": "project_name_unique", + "nullsNotDistinct": false, + "columns": [ + "name" + ] + }, + "project_slug_organizationId_unique": { + "name": "project_slug_organizationId_unique", + "nullsNotDistinct": false, + "columns": [ + "slug", + "organization_id" + ] + } + }, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.upvote": { + "name": "upvote", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "post_id": { + "name": "post_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "user_id": { + "name": "user_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp(6) with time zone", + "primaryKey": false, + "notNull": false, + "default": "now()" + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp(6) with time zone", + "primaryKey": false, + "notNull": false, + "default": "now()" + } + }, + "indexes": {}, + "foreignKeys": { + "upvote_post_id_post_id_fk": { + "name": "upvote_post_id_post_id_fk", + "tableFrom": "upvote", + "tableTo": "post", + "columnsFrom": [ + "post_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "upvote_user_id_user_id_fk": { + "name": "upvote_user_id_user_id_fk", + "tableFrom": "upvote", + "tableTo": "user", + "columnsFrom": [ + "user_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": { + "upvote_postId_userId_unique": { + "name": "upvote_postId_userId_unique", + "nullsNotDistinct": false, + "columns": [ + "post_id", + "user_id" + ] + } + }, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.user": { + "name": "user", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "hidra_id": { + "name": "hidra_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "username": { + "name": "username", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "first_name": { + "name": "first_name", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "last_name": { + "name": "last_name", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "created_at": { + "name": "created_at", + "type": "timestamp(6) with time zone", + "primaryKey": false, + "notNull": false, + "default": "now()" + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp(6) with time zone", + "primaryKey": false, + "notNull": false, + "default": "now()" + } + }, + "indexes": {}, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": { + "user_hidraId_unique": { + "name": "user_hidraId_unique", + "nullsNotDistinct": false, + "columns": [ + "hidra_id" + ] + }, + "user_username_unique": { + "name": "user_username_unique", + "nullsNotDistinct": false, + "columns": [ + "username" + ] + } + }, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.user_organization": { + "name": "user_organization", + "schema": "", + "columns": { + "user_id": { + "name": "user_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "organization_id": { + "name": "organization_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp(6) with time zone", + "primaryKey": false, + "notNull": false, + "default": "now()" + } + }, + "indexes": {}, + "foreignKeys": { + "user_organization_user_id_user_id_fk": { + "name": "user_organization_user_id_user_id_fk", + "tableFrom": "user_organization", + "tableTo": "user", + "columnsFrom": [ + "user_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "user_organization_organization_id_organization_id_fk": { + "name": "user_organization_organization_id_organization_id_fk", + "tableFrom": "user_organization", + "tableTo": "organization", + "columnsFrom": [ + "organization_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": { + "user_organization_userId_organizationId_unique": { + "name": "user_organization_userId_organizationId_unique", + "nullsNotDistinct": false, + "columns": [ + "user_id", + "organization_id" + ] + } + }, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + } + }, + "enums": {}, + "schemas": {}, + "sequences": {}, + "roles": {}, + "policies": {}, + "views": {}, + "_meta": { + "columns": {}, + "schemas": {}, + "tables": {} + } +} \ No newline at end of file diff --git a/src/lib/drizzle/migrations/meta/_journal.json b/src/lib/drizzle/migrations/meta/_journal.json index 9111197..d1329e6 100644 --- a/src/lib/drizzle/migrations/meta/_journal.json +++ b/src/lib/drizzle/migrations/meta/_journal.json @@ -29,6 +29,13 @@ "when": 1735658626719, "tag": "0003_medical_paper_doll", "breakpoints": true + }, + { + "idx": 4, + "version": "7", + "when": 1735865647094, + "tag": "0004_easy_lockheed", + "breakpoints": true } ] } \ No newline at end of file diff --git a/src/lib/drizzle/schema/organization.table.ts b/src/lib/drizzle/schema/organization.table.ts index cd3dae7..2ed33c5 100644 --- a/src/lib/drizzle/schema/organization.table.ts +++ b/src/lib/drizzle/schema/organization.table.ts @@ -13,7 +13,7 @@ import type { InferInsertModel, InferSelectModel } from "drizzle-orm"; export const organizations = pgTable("organization", { id: defaultId(), name: text().unique(), - slug: text().unique(), + slug: text().unique().notNull(), createdAt: defaultDate(), updatedAt: defaultDate(), }); diff --git a/src/lib/drizzle/schema/project.table.ts b/src/lib/drizzle/schema/project.table.ts index fee0047..1a4dbd2 100644 --- a/src/lib/drizzle/schema/project.table.ts +++ b/src/lib/drizzle/schema/project.table.ts @@ -16,7 +16,7 @@ export const projects = pgTable( id: defaultId(), name: text().unique(), image: text(), - slug: text(), + slug: text().notNull(), description: text(), organizationId: uuid() .notNull() From aeff338853e1e56108b5f3fb17449b2e84b39503 Mon Sep 17 00:00:00 2001 From: hobbescodes <87732294+hobbescodes@users.noreply.github.com> Date: Fri, 3 Jan 2025 10:55:38 -0600 Subject: [PATCH 2/5] refactor(schema): adjust tables to use hidra ID for foreign key relations --- src/generated/graphql/schema.executable.ts | 1560 ++++++++--------- .../drizzle/migrations/0005_nice_talkback.sql | 31 + .../migrations/0006_goofy_harry_osborn.sql | 26 + .../migrations/meta/0005_snapshot.json | 643 +++++++ .../migrations/meta/0006_snapshot.json | 643 +++++++ src/lib/drizzle/migrations/meta/_journal.json | 14 + src/lib/drizzle/schema/comment.table.ts | 2 +- src/lib/drizzle/schema/downvote.table.ts | 2 +- src/lib/drizzle/schema/post.table.ts | 2 +- src/lib/drizzle/schema/upvote.table.ts | 2 +- .../schema/userToOrganization.table.ts | 2 +- 11 files changed, 2142 insertions(+), 785 deletions(-) create mode 100644 src/lib/drizzle/migrations/0005_nice_talkback.sql create mode 100644 src/lib/drizzle/migrations/0006_goofy_harry_osborn.sql create mode 100644 src/lib/drizzle/migrations/meta/0005_snapshot.json create mode 100644 src/lib/drizzle/migrations/meta/0006_snapshot.json diff --git a/src/generated/graphql/schema.executable.ts b/src/generated/graphql/schema.executable.ts index 0140a84..a89aa09 100644 --- a/src/generated/graphql/schema.executable.ts +++ b/src/generated/graphql/schema.executable.ts @@ -81,7 +81,7 @@ const spec_userOrganization = { name: "userOrganization", identifier: userOrganizationIdentifier, attributes: Object.assign(Object.create(null), { - user_id: { + organization_id: { description: undefined, codec: TYPES.uuid, notNull: true, @@ -93,11 +93,11 @@ const spec_userOrganization = { canUpdate: true } }, - organization_id: { + created_at: { description: undefined, - codec: TYPES.uuid, - notNull: true, - hasDefault: false, + codec: TYPES.timestamptz, + notNull: false, + hasDefault: true, extensions: { tags: {}, canSelect: true, @@ -105,11 +105,11 @@ const spec_userOrganization = { canUpdate: true } }, - created_at: { + user_id: { description: undefined, - codec: TYPES.timestamptz, - notNull: false, - hasDefault: true, + codec: TYPES.uuid, + notNull: true, + hasDefault: false, extensions: { tags: {}, canSelect: true, @@ -120,7 +120,7 @@ const spec_userOrganization = { }), description: undefined, extensions: { - oid: "80353", + oid: "80705", isTableLike: true, pg: { serviceName: "main", @@ -161,11 +161,11 @@ const spec_downvote = { canUpdate: true } }, - user_id: { + created_at: { description: undefined, - codec: TYPES.uuid, - notNull: true, - hasDefault: false, + codec: TYPES.timestamptz, + notNull: false, + hasDefault: true, extensions: { tags: {}, canSelect: true, @@ -173,7 +173,7 @@ const spec_downvote = { canUpdate: true } }, - created_at: { + updated_at: { description: undefined, codec: TYPES.timestamptz, notNull: false, @@ -185,11 +185,11 @@ const spec_downvote = { canUpdate: true } }, - updated_at: { + user_id: { description: undefined, - codec: TYPES.timestamptz, - notNull: false, - hasDefault: true, + codec: TYPES.uuid, + notNull: true, + hasDefault: false, extensions: { tags: {}, canSelect: true, @@ -200,7 +200,7 @@ const spec_downvote = { }), description: undefined, extensions: { - oid: "80418", + oid: "80770", isTableLike: true, pg: { serviceName: "main", @@ -241,11 +241,11 @@ const spec_upvote = { canUpdate: true } }, - user_id: { + created_at: { description: undefined, - codec: TYPES.uuid, - notNull: true, - hasDefault: false, + codec: TYPES.timestamptz, + notNull: false, + hasDefault: true, extensions: { tags: {}, canSelect: true, @@ -253,7 +253,7 @@ const spec_upvote = { canUpdate: true } }, - created_at: { + updated_at: { description: undefined, codec: TYPES.timestamptz, notNull: false, @@ -265,11 +265,11 @@ const spec_upvote = { canUpdate: true } }, - updated_at: { + user_id: { description: undefined, - codec: TYPES.timestamptz, - notNull: false, - hasDefault: true, + codec: TYPES.uuid, + notNull: true, + hasDefault: false, extensions: { tags: {}, canSelect: true, @@ -280,7 +280,7 @@ const spec_upvote = { }), description: undefined, extensions: { - oid: "80331", + oid: "80683", isTableLike: true, pg: { serviceName: "main", @@ -360,7 +360,7 @@ const spec_organization = { }), description: undefined, extensions: { - oid: "80293", + oid: "80645", isTableLike: true, pg: { serviceName: "main", @@ -413,11 +413,11 @@ const spec_comment = { canUpdate: true } }, - user_id: { + created_at: { description: undefined, - codec: TYPES.uuid, - notNull: true, - hasDefault: false, + codec: TYPES.timestamptz, + notNull: false, + hasDefault: true, extensions: { tags: {}, canSelect: true, @@ -425,7 +425,7 @@ const spec_comment = { canUpdate: true } }, - created_at: { + updated_at: { description: undefined, codec: TYPES.timestamptz, notNull: false, @@ -437,11 +437,11 @@ const spec_comment = { canUpdate: true } }, - updated_at: { + user_id: { description: undefined, - codec: TYPES.timestamptz, - notNull: false, - hasDefault: true, + codec: TYPES.uuid, + notNull: true, + hasDefault: false, extensions: { tags: {}, canSelect: true, @@ -452,7 +452,7 @@ const spec_comment = { }), description: undefined, extensions: { - oid: "80398", + oid: "80750", isTableLike: true, pg: { serviceName: "main", @@ -517,11 +517,11 @@ const spec_post = { canUpdate: true } }, - user_id: { + created_at: { description: undefined, - codec: TYPES.uuid, - notNull: true, - hasDefault: false, + codec: TYPES.timestamptz, + notNull: false, + hasDefault: true, extensions: { tags: {}, canSelect: true, @@ -529,7 +529,7 @@ const spec_post = { canUpdate: true } }, - created_at: { + updated_at: { description: undefined, codec: TYPES.timestamptz, notNull: false, @@ -541,11 +541,11 @@ const spec_post = { canUpdate: true } }, - updated_at: { + user_id: { description: undefined, - codec: TYPES.timestamptz, - notNull: false, - hasDefault: true, + codec: TYPES.uuid, + notNull: true, + hasDefault: false, extensions: { tags: {}, canSelect: true, @@ -556,7 +556,7 @@ const spec_post = { }), description: undefined, extensions: { - oid: "80307", + oid: "80659", isTableLike: true, pg: { serviceName: "main", @@ -672,7 +672,7 @@ const spec_project = { }), description: undefined, extensions: { - oid: "80317", + oid: "80669", isTableLike: true, pg: { serviceName: "main", @@ -776,7 +776,7 @@ const spec_user = { }), description: undefined, extensions: { - oid: "80341", + oid: "80693", isTableLike: true, pg: { serviceName: "main", @@ -1164,7 +1164,7 @@ const registryConfig = { remoteResourceOptions: registryConfig_pgResources_user_user, localCodecPolymorphicTypes: undefined, localAttributes: ["user_id"], - remoteAttributes: ["id"], + remoteAttributes: ["hidra_id"], isUnique: true, isReferencee: false, description: undefined, @@ -1196,7 +1196,7 @@ const registryConfig = { remoteResourceOptions: registryConfig_pgResources_user_user, localCodecPolymorphicTypes: undefined, localAttributes: ["user_id"], - remoteAttributes: ["id"], + remoteAttributes: ["hidra_id"], isUnique: true, isReferencee: false, description: undefined, @@ -1260,7 +1260,7 @@ const registryConfig = { remoteResourceOptions: registryConfig_pgResources_user_user, localCodecPolymorphicTypes: undefined, localAttributes: ["user_id"], - remoteAttributes: ["id"], + remoteAttributes: ["hidra_id"], isUnique: true, isReferencee: false, description: undefined, @@ -1369,7 +1369,7 @@ const registryConfig = { remoteResourceOptions: registryConfig_pgResources_user_user, localCodecPolymorphicTypes: undefined, localAttributes: ["user_id"], - remoteAttributes: ["id"], + remoteAttributes: ["hidra_id"], isUnique: true, isReferencee: false, description: undefined, @@ -1385,7 +1385,7 @@ const registryConfig = { localCodec: userCodec, remoteResourceOptions: registryConfig_pgResources_post_post, localCodecPolymorphicTypes: undefined, - localAttributes: ["id"], + localAttributes: ["hidra_id"], remoteAttributes: ["user_id"], isUnique: false, isReferencee: true, @@ -1400,7 +1400,7 @@ const registryConfig = { localCodec: userCodec, remoteResourceOptions: registryConfig_pgResources_upvote_upvote, localCodecPolymorphicTypes: undefined, - localAttributes: ["id"], + localAttributes: ["hidra_id"], remoteAttributes: ["user_id"], isUnique: false, isReferencee: true, @@ -1415,7 +1415,7 @@ const registryConfig = { localCodec: userCodec, remoteResourceOptions: registryConfig_pgResources_user_organization_user_organization, localCodecPolymorphicTypes: undefined, - localAttributes: ["id"], + localAttributes: ["hidra_id"], remoteAttributes: ["user_id"], isUnique: false, isReferencee: true, @@ -1430,7 +1430,7 @@ const registryConfig = { localCodec: userCodec, remoteResourceOptions: registryConfig_pgResources_comment_comment, localCodecPolymorphicTypes: undefined, - localAttributes: ["id"], + localAttributes: ["hidra_id"], remoteAttributes: ["user_id"], isUnique: false, isReferencee: true, @@ -1445,7 +1445,7 @@ const registryConfig = { localCodec: userCodec, remoteResourceOptions: registryConfig_pgResources_downvote_downvote, localCodecPolymorphicTypes: undefined, - localAttributes: ["id"], + localAttributes: ["hidra_id"], remoteAttributes: ["user_id"], isUnique: false, isReferencee: true, @@ -1478,7 +1478,7 @@ const registryConfig = { remoteResourceOptions: registryConfig_pgResources_user_user, localCodecPolymorphicTypes: undefined, localAttributes: ["user_id"], - remoteAttributes: ["id"], + remoteAttributes: ["hidra_id"], isUnique: true, isReferencee: false, description: undefined, @@ -2029,37 +2029,37 @@ function PostGroupBy_extensions_grafast_applyPlan3($pgSelect) { } function PostGroupBy_extensions_grafast_applyPlan4($pgSelect) { $pgSelect.groupBy({ - fragment: sql.fragment`${$pgSelect.alias}.${sql.identifier("user_id")}` + fragment: sql.fragment`${$pgSelect.alias}.${sql.identifier("created_at")}` }); } function PostGroupBy_extensions_grafast_applyPlan5($pgSelect) { $pgSelect.groupBy({ - fragment: sql.fragment`${$pgSelect.alias}.${sql.identifier("created_at")}` + fragment: aggregateGroupBySpec.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("created_at")}`) }); } function PostGroupBy_extensions_grafast_applyPlan6($pgSelect) { $pgSelect.groupBy({ - fragment: aggregateGroupBySpec.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("created_at")}`) + fragment: aggregateGroupBySpec2.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("created_at")}`) }); } function PostGroupBy_extensions_grafast_applyPlan7($pgSelect) { $pgSelect.groupBy({ - fragment: aggregateGroupBySpec2.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("created_at")}`) + fragment: sql.fragment`${$pgSelect.alias}.${sql.identifier("updated_at")}` }); } function PostGroupBy_extensions_grafast_applyPlan8($pgSelect) { $pgSelect.groupBy({ - fragment: sql.fragment`${$pgSelect.alias}.${sql.identifier("updated_at")}` + fragment: aggregateGroupBySpec.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("updated_at")}`) }); } function PostGroupBy_extensions_grafast_applyPlan9($pgSelect) { $pgSelect.groupBy({ - fragment: aggregateGroupBySpec.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("updated_at")}`) + fragment: aggregateGroupBySpec2.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("updated_at")}`) }); } function PostGroupBy_extensions_grafast_applyPlan10($pgSelect) { $pgSelect.groupBy({ - fragment: aggregateGroupBySpec2.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("updated_at")}`) + fragment: sql.fragment`${$pgSelect.alias}.${sql.identifier("user_id")}` }); } export const PostGroupBy = new GraphQLEnumType({ @@ -2090,19 +2090,11 @@ export const PostGroupBy = new GraphQLEnumType({ } }) }, - USER_ID: { - value: "USER_ID", - extensions: Object.assign(Object.create(null), { - grafast: { - applyPlan: PostGroupBy_extensions_grafast_applyPlan4 - } - }) - }, CREATED_AT: { value: "CREATED_AT", extensions: Object.assign(Object.create(null), { grafast: { - applyPlan: PostGroupBy_extensions_grafast_applyPlan5 + applyPlan: PostGroupBy_extensions_grafast_applyPlan4 } }) }, @@ -2110,7 +2102,7 @@ export const PostGroupBy = new GraphQLEnumType({ value: "CREATED_AT_TRUNCATED_TO_HOUR", extensions: Object.assign(Object.create(null), { grafast: { - applyPlan: PostGroupBy_extensions_grafast_applyPlan6 + applyPlan: PostGroupBy_extensions_grafast_applyPlan5 } }) }, @@ -2118,7 +2110,7 @@ export const PostGroupBy = new GraphQLEnumType({ value: "CREATED_AT_TRUNCATED_TO_DAY", extensions: Object.assign(Object.create(null), { grafast: { - applyPlan: PostGroupBy_extensions_grafast_applyPlan7 + applyPlan: PostGroupBy_extensions_grafast_applyPlan6 } }) }, @@ -2126,7 +2118,7 @@ export const PostGroupBy = new GraphQLEnumType({ value: "UPDATED_AT", extensions: Object.assign(Object.create(null), { grafast: { - applyPlan: PostGroupBy_extensions_grafast_applyPlan8 + applyPlan: PostGroupBy_extensions_grafast_applyPlan7 } }) }, @@ -2134,12 +2126,20 @@ export const PostGroupBy = new GraphQLEnumType({ value: "UPDATED_AT_TRUNCATED_TO_HOUR", extensions: Object.assign(Object.create(null), { grafast: { - applyPlan: PostGroupBy_extensions_grafast_applyPlan9 + applyPlan: PostGroupBy_extensions_grafast_applyPlan8 } }) }, UPDATED_AT_TRUNCATED_TO_DAY: { value: "UPDATED_AT_TRUNCATED_TO_DAY", + extensions: Object.assign(Object.create(null), { + grafast: { + applyPlan: PostGroupBy_extensions_grafast_applyPlan9 + } + }) + }, + USER_ID: { + value: "USER_ID", extensions: Object.assign(Object.create(null), { grafast: { applyPlan: PostGroupBy_extensions_grafast_applyPlan10 @@ -2285,20 +2285,20 @@ const colSpec4 = { attribute: spec_post.attributes.project_id }; const colSpec5 = { - fieldName: "userId", - attributeName: "user_id", - attribute: spec_post.attributes.user_id -}; -const colSpec6 = { fieldName: "createdAt", attributeName: "created_at", attribute: spec_post.attributes.created_at }; -const colSpec7 = { +const colSpec6 = { fieldName: "updatedAt", attributeName: "updated_at", attribute: spec_post.attributes.updated_at }; +const colSpec7 = { + fieldName: "userId", + attributeName: "user_id", + attribute: spec_post.attributes.user_id +}; function assertAllowed20(fieldArgs, mode) { const $raw = fieldArgs.getRaw(); if (mode === "object" && !false && "evalIsEmpty" in $raw && $raw.evalIsEmpty()) throw Object.assign(new Error("Empty objects are forbidden in filter argument input."), {}); @@ -2843,20 +2843,20 @@ const colSpec9 = { attribute: spec_upvote.attributes.post_id }; const colSpec10 = { - fieldName: "userId", - attributeName: "user_id", - attribute: spec_upvote.attributes.user_id -}; -const colSpec11 = { fieldName: "createdAt", attributeName: "created_at", attribute: spec_upvote.attributes.created_at }; -const colSpec12 = { +const colSpec11 = { fieldName: "updatedAt", attributeName: "updated_at", attribute: spec_upvote.attributes.updated_at }; +const colSpec12 = { + fieldName: "userId", + attributeName: "user_id", + attribute: spec_upvote.attributes.user_id +}; function assertAllowed24(fieldArgs, mode) { const $raw = fieldArgs.getRaw(); if (mode === "object" && !false && "evalIsEmpty" in $raw && $raw.evalIsEmpty()) throw Object.assign(new Error("Empty objects are forbidden in filter argument input."), {}); @@ -3027,20 +3027,20 @@ function assertAllowed30(fieldArgs, mode) { if (!false && $raw.evalIs(null)) throw Object.assign(new Error("Null literals are forbidden in filter argument input."), {}); } const colSpec20 = { - fieldName: "userId", - attributeName: "user_id", - attribute: spec_userOrganization.attributes.user_id -}; -const colSpec21 = { fieldName: "organizationId", attributeName: "organization_id", attribute: spec_userOrganization.attributes.organization_id }; -const colSpec22 = { +const colSpec21 = { fieldName: "createdAt", attributeName: "created_at", attribute: spec_userOrganization.attributes.created_at }; +const colSpec22 = { + fieldName: "userId", + attributeName: "user_id", + attribute: spec_userOrganization.attributes.user_id +}; function assertAllowed31(fieldArgs, mode) { const $raw = fieldArgs.getRaw(); if (mode === "object" && !false && "evalIsEmpty" in $raw && $raw.evalIsEmpty()) throw Object.assign(new Error("Empty objects are forbidden in filter argument input."), {}); @@ -3254,20 +3254,20 @@ const colSpec38 = { attribute: spec_comment.attributes.post_id }; const colSpec39 = { - fieldName: "userId", - attributeName: "user_id", - attribute: spec_comment.attributes.user_id -}; -const colSpec40 = { fieldName: "createdAt", attributeName: "created_at", attribute: spec_comment.attributes.created_at }; -const colSpec41 = { +const colSpec40 = { fieldName: "updatedAt", attributeName: "updated_at", attribute: spec_comment.attributes.updated_at }; +const colSpec41 = { + fieldName: "userId", + attributeName: "user_id", + attribute: spec_comment.attributes.user_id +}; function assertAllowed42(fieldArgs, mode) { const $raw = fieldArgs.getRaw(); if (mode === "object" && !false && "evalIsEmpty" in $raw && $raw.evalIsEmpty()) throw Object.assign(new Error("Empty objects are forbidden in filter argument input."), {}); @@ -3315,20 +3315,20 @@ const colSpec43 = { attribute: spec_downvote.attributes.post_id }; const colSpec44 = { - fieldName: "userId", - attributeName: "user_id", - attribute: spec_downvote.attributes.user_id -}; -const colSpec45 = { fieldName: "createdAt", attributeName: "created_at", attribute: spec_downvote.attributes.created_at }; -const colSpec46 = { +const colSpec45 = { fieldName: "updatedAt", attributeName: "updated_at", attribute: spec_downvote.attributes.updated_at }; +const colSpec46 = { + fieldName: "userId", + attributeName: "user_id", + attribute: spec_downvote.attributes.user_id +}; function assertAllowed45(fieldArgs, mode) { const $raw = fieldArgs.getRaw(); if (mode === "object" && !false && "evalIsEmpty" in $raw && $raw.evalIsEmpty()) throw Object.assign(new Error("Empty objects are forbidden in filter argument input."), {}); @@ -3384,37 +3384,37 @@ function UpvoteGroupBy_extensions_grafast_applyPlan($pgSelect) { } function UpvoteGroupBy_extensions_grafast_applyPlan2($pgSelect) { $pgSelect.groupBy({ - fragment: sql.fragment`${$pgSelect.alias}.${sql.identifier("user_id")}` + fragment: sql.fragment`${$pgSelect.alias}.${sql.identifier("created_at")}` }); } function UpvoteGroupBy_extensions_grafast_applyPlan3($pgSelect) { $pgSelect.groupBy({ - fragment: sql.fragment`${$pgSelect.alias}.${sql.identifier("created_at")}` + fragment: aggregateGroupBySpec.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("created_at")}`) }); } function UpvoteGroupBy_extensions_grafast_applyPlan4($pgSelect) { $pgSelect.groupBy({ - fragment: aggregateGroupBySpec.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("created_at")}`) + fragment: aggregateGroupBySpec2.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("created_at")}`) }); } function UpvoteGroupBy_extensions_grafast_applyPlan5($pgSelect) { $pgSelect.groupBy({ - fragment: aggregateGroupBySpec2.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("created_at")}`) + fragment: sql.fragment`${$pgSelect.alias}.${sql.identifier("updated_at")}` }); } function UpvoteGroupBy_extensions_grafast_applyPlan6($pgSelect) { $pgSelect.groupBy({ - fragment: sql.fragment`${$pgSelect.alias}.${sql.identifier("updated_at")}` + fragment: aggregateGroupBySpec.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("updated_at")}`) }); } function UpvoteGroupBy_extensions_grafast_applyPlan7($pgSelect) { $pgSelect.groupBy({ - fragment: aggregateGroupBySpec.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("updated_at")}`) + fragment: aggregateGroupBySpec2.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("updated_at")}`) }); } function UpvoteGroupBy_extensions_grafast_applyPlan8($pgSelect) { $pgSelect.groupBy({ - fragment: aggregateGroupBySpec2.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("updated_at")}`) + fragment: sql.fragment`${$pgSelect.alias}.${sql.identifier("user_id")}` }); } export const UpvoteGroupBy = new GraphQLEnumType({ @@ -3429,19 +3429,11 @@ export const UpvoteGroupBy = new GraphQLEnumType({ } }) }, - USER_ID: { - value: "USER_ID", - extensions: Object.assign(Object.create(null), { - grafast: { - applyPlan: UpvoteGroupBy_extensions_grafast_applyPlan2 - } - }) - }, CREATED_AT: { value: "CREATED_AT", extensions: Object.assign(Object.create(null), { grafast: { - applyPlan: UpvoteGroupBy_extensions_grafast_applyPlan3 + applyPlan: UpvoteGroupBy_extensions_grafast_applyPlan2 } }) }, @@ -3449,7 +3441,7 @@ export const UpvoteGroupBy = new GraphQLEnumType({ value: "CREATED_AT_TRUNCATED_TO_HOUR", extensions: Object.assign(Object.create(null), { grafast: { - applyPlan: UpvoteGroupBy_extensions_grafast_applyPlan4 + applyPlan: UpvoteGroupBy_extensions_grafast_applyPlan3 } }) }, @@ -3457,7 +3449,7 @@ export const UpvoteGroupBy = new GraphQLEnumType({ value: "CREATED_AT_TRUNCATED_TO_DAY", extensions: Object.assign(Object.create(null), { grafast: { - applyPlan: UpvoteGroupBy_extensions_grafast_applyPlan5 + applyPlan: UpvoteGroupBy_extensions_grafast_applyPlan4 } }) }, @@ -3465,7 +3457,7 @@ export const UpvoteGroupBy = new GraphQLEnumType({ value: "UPDATED_AT", extensions: Object.assign(Object.create(null), { grafast: { - applyPlan: UpvoteGroupBy_extensions_grafast_applyPlan6 + applyPlan: UpvoteGroupBy_extensions_grafast_applyPlan5 } }) }, @@ -3473,12 +3465,20 @@ export const UpvoteGroupBy = new GraphQLEnumType({ value: "UPDATED_AT_TRUNCATED_TO_HOUR", extensions: Object.assign(Object.create(null), { grafast: { - applyPlan: UpvoteGroupBy_extensions_grafast_applyPlan7 + applyPlan: UpvoteGroupBy_extensions_grafast_applyPlan6 } }) }, UPDATED_AT_TRUNCATED_TO_DAY: { value: "UPDATED_AT_TRUNCATED_TO_DAY", + extensions: Object.assign(Object.create(null), { + grafast: { + applyPlan: UpvoteGroupBy_extensions_grafast_applyPlan7 + } + }) + }, + USER_ID: { + value: "USER_ID", extensions: Object.assign(Object.create(null), { grafast: { applyPlan: UpvoteGroupBy_extensions_grafast_applyPlan8 @@ -3641,67 +3641,67 @@ const aggregateSpec9 = { }; function UserOrganizationGroupBy_extensions_grafast_applyPlan($pgSelect) { $pgSelect.groupBy({ - fragment: sql.fragment`${$pgSelect.alias}.${sql.identifier("user_id")}` + fragment: sql.fragment`${$pgSelect.alias}.${sql.identifier("organization_id")}` }); } function UserOrganizationGroupBy_extensions_grafast_applyPlan2($pgSelect) { $pgSelect.groupBy({ - fragment: sql.fragment`${$pgSelect.alias}.${sql.identifier("organization_id")}` + fragment: sql.fragment`${$pgSelect.alias}.${sql.identifier("created_at")}` }); } function UserOrganizationGroupBy_extensions_grafast_applyPlan3($pgSelect) { $pgSelect.groupBy({ - fragment: sql.fragment`${$pgSelect.alias}.${sql.identifier("created_at")}` + fragment: aggregateGroupBySpec.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("created_at")}`) }); } function UserOrganizationGroupBy_extensions_grafast_applyPlan4($pgSelect) { $pgSelect.groupBy({ - fragment: aggregateGroupBySpec.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("created_at")}`) + fragment: aggregateGroupBySpec2.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("created_at")}`) }); } function UserOrganizationGroupBy_extensions_grafast_applyPlan5($pgSelect) { $pgSelect.groupBy({ - fragment: aggregateGroupBySpec2.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("created_at")}`) + fragment: sql.fragment`${$pgSelect.alias}.${sql.identifier("user_id")}` }); } export const UserOrganizationGroupBy = new GraphQLEnumType({ name: "UserOrganizationGroupBy", description: "Grouping methods for `UserOrganization` for usage during aggregation.", values: Object.assign(Object.create(null), { - USER_ID: { - value: "USER_ID", + ORGANIZATION_ID: { + value: "ORGANIZATION_ID", extensions: Object.assign(Object.create(null), { grafast: { applyPlan: UserOrganizationGroupBy_extensions_grafast_applyPlan } }) }, - ORGANIZATION_ID: { - value: "ORGANIZATION_ID", + CREATED_AT: { + value: "CREATED_AT", extensions: Object.assign(Object.create(null), { grafast: { applyPlan: UserOrganizationGroupBy_extensions_grafast_applyPlan2 } }) }, - CREATED_AT: { - value: "CREATED_AT", + CREATED_AT_TRUNCATED_TO_HOUR: { + value: "CREATED_AT_TRUNCATED_TO_HOUR", extensions: Object.assign(Object.create(null), { grafast: { applyPlan: UserOrganizationGroupBy_extensions_grafast_applyPlan3 } }) }, - CREATED_AT_TRUNCATED_TO_HOUR: { - value: "CREATED_AT_TRUNCATED_TO_HOUR", + CREATED_AT_TRUNCATED_TO_DAY: { + value: "CREATED_AT_TRUNCATED_TO_DAY", extensions: Object.assign(Object.create(null), { grafast: { applyPlan: UserOrganizationGroupBy_extensions_grafast_applyPlan4 } }) }, - CREATED_AT_TRUNCATED_TO_DAY: { - value: "CREATED_AT_TRUNCATED_TO_DAY", + USER_ID: { + value: "USER_ID", extensions: Object.assign(Object.create(null), { grafast: { applyPlan: UserOrganizationGroupBy_extensions_grafast_applyPlan5 @@ -3722,37 +3722,37 @@ function CommentGroupBy_extensions_grafast_applyPlan2($pgSelect) { } function CommentGroupBy_extensions_grafast_applyPlan3($pgSelect) { $pgSelect.groupBy({ - fragment: sql.fragment`${$pgSelect.alias}.${sql.identifier("user_id")}` + fragment: sql.fragment`${$pgSelect.alias}.${sql.identifier("created_at")}` }); } function CommentGroupBy_extensions_grafast_applyPlan4($pgSelect) { $pgSelect.groupBy({ - fragment: sql.fragment`${$pgSelect.alias}.${sql.identifier("created_at")}` + fragment: aggregateGroupBySpec.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("created_at")}`) }); } function CommentGroupBy_extensions_grafast_applyPlan5($pgSelect) { $pgSelect.groupBy({ - fragment: aggregateGroupBySpec.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("created_at")}`) + fragment: aggregateGroupBySpec2.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("created_at")}`) }); } function CommentGroupBy_extensions_grafast_applyPlan6($pgSelect) { $pgSelect.groupBy({ - fragment: aggregateGroupBySpec2.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("created_at")}`) + fragment: sql.fragment`${$pgSelect.alias}.${sql.identifier("updated_at")}` }); } function CommentGroupBy_extensions_grafast_applyPlan7($pgSelect) { $pgSelect.groupBy({ - fragment: sql.fragment`${$pgSelect.alias}.${sql.identifier("updated_at")}` + fragment: aggregateGroupBySpec.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("updated_at")}`) }); } function CommentGroupBy_extensions_grafast_applyPlan8($pgSelect) { $pgSelect.groupBy({ - fragment: aggregateGroupBySpec.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("updated_at")}`) + fragment: aggregateGroupBySpec2.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("updated_at")}`) }); } function CommentGroupBy_extensions_grafast_applyPlan9($pgSelect) { $pgSelect.groupBy({ - fragment: aggregateGroupBySpec2.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("updated_at")}`) + fragment: sql.fragment`${$pgSelect.alias}.${sql.identifier("user_id")}` }); } export const CommentGroupBy = new GraphQLEnumType({ @@ -3775,19 +3775,11 @@ export const CommentGroupBy = new GraphQLEnumType({ } }) }, - USER_ID: { - value: "USER_ID", - extensions: Object.assign(Object.create(null), { - grafast: { - applyPlan: CommentGroupBy_extensions_grafast_applyPlan3 - } - }) - }, CREATED_AT: { value: "CREATED_AT", extensions: Object.assign(Object.create(null), { grafast: { - applyPlan: CommentGroupBy_extensions_grafast_applyPlan4 + applyPlan: CommentGroupBy_extensions_grafast_applyPlan3 } }) }, @@ -3795,7 +3787,7 @@ export const CommentGroupBy = new GraphQLEnumType({ value: "CREATED_AT_TRUNCATED_TO_HOUR", extensions: Object.assign(Object.create(null), { grafast: { - applyPlan: CommentGroupBy_extensions_grafast_applyPlan5 + applyPlan: CommentGroupBy_extensions_grafast_applyPlan4 } }) }, @@ -3803,7 +3795,7 @@ export const CommentGroupBy = new GraphQLEnumType({ value: "CREATED_AT_TRUNCATED_TO_DAY", extensions: Object.assign(Object.create(null), { grafast: { - applyPlan: CommentGroupBy_extensions_grafast_applyPlan6 + applyPlan: CommentGroupBy_extensions_grafast_applyPlan5 } }) }, @@ -3811,7 +3803,7 @@ export const CommentGroupBy = new GraphQLEnumType({ value: "UPDATED_AT", extensions: Object.assign(Object.create(null), { grafast: { - applyPlan: CommentGroupBy_extensions_grafast_applyPlan7 + applyPlan: CommentGroupBy_extensions_grafast_applyPlan6 } }) }, @@ -3819,12 +3811,20 @@ export const CommentGroupBy = new GraphQLEnumType({ value: "UPDATED_AT_TRUNCATED_TO_HOUR", extensions: Object.assign(Object.create(null), { grafast: { - applyPlan: CommentGroupBy_extensions_grafast_applyPlan8 + applyPlan: CommentGroupBy_extensions_grafast_applyPlan7 } }) }, UPDATED_AT_TRUNCATED_TO_DAY: { value: "UPDATED_AT_TRUNCATED_TO_DAY", + extensions: Object.assign(Object.create(null), { + grafast: { + applyPlan: CommentGroupBy_extensions_grafast_applyPlan8 + } + }) + }, + USER_ID: { + value: "USER_ID", extensions: Object.assign(Object.create(null), { grafast: { applyPlan: CommentGroupBy_extensions_grafast_applyPlan9 @@ -3840,37 +3840,37 @@ function DownvoteGroupBy_extensions_grafast_applyPlan($pgSelect) { } function DownvoteGroupBy_extensions_grafast_applyPlan2($pgSelect) { $pgSelect.groupBy({ - fragment: sql.fragment`${$pgSelect.alias}.${sql.identifier("user_id")}` + fragment: sql.fragment`${$pgSelect.alias}.${sql.identifier("created_at")}` }); } function DownvoteGroupBy_extensions_grafast_applyPlan3($pgSelect) { $pgSelect.groupBy({ - fragment: sql.fragment`${$pgSelect.alias}.${sql.identifier("created_at")}` + fragment: aggregateGroupBySpec.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("created_at")}`) }); } function DownvoteGroupBy_extensions_grafast_applyPlan4($pgSelect) { $pgSelect.groupBy({ - fragment: aggregateGroupBySpec.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("created_at")}`) + fragment: aggregateGroupBySpec2.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("created_at")}`) }); } function DownvoteGroupBy_extensions_grafast_applyPlan5($pgSelect) { $pgSelect.groupBy({ - fragment: aggregateGroupBySpec2.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("created_at")}`) + fragment: sql.fragment`${$pgSelect.alias}.${sql.identifier("updated_at")}` }); } function DownvoteGroupBy_extensions_grafast_applyPlan6($pgSelect) { $pgSelect.groupBy({ - fragment: sql.fragment`${$pgSelect.alias}.${sql.identifier("updated_at")}` + fragment: aggregateGroupBySpec.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("updated_at")}`) }); } function DownvoteGroupBy_extensions_grafast_applyPlan7($pgSelect) { $pgSelect.groupBy({ - fragment: aggregateGroupBySpec.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("updated_at")}`) + fragment: aggregateGroupBySpec2.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("updated_at")}`) }); } function DownvoteGroupBy_extensions_grafast_applyPlan8($pgSelect) { $pgSelect.groupBy({ - fragment: aggregateGroupBySpec2.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("updated_at")}`) + fragment: sql.fragment`${$pgSelect.alias}.${sql.identifier("user_id")}` }); } export const DownvoteGroupBy = new GraphQLEnumType({ @@ -3885,19 +3885,11 @@ export const DownvoteGroupBy = new GraphQLEnumType({ } }) }, - USER_ID: { - value: "USER_ID", - extensions: Object.assign(Object.create(null), { - grafast: { - applyPlan: DownvoteGroupBy_extensions_grafast_applyPlan2 - } - }) - }, CREATED_AT: { value: "CREATED_AT", extensions: Object.assign(Object.create(null), { grafast: { - applyPlan: DownvoteGroupBy_extensions_grafast_applyPlan3 + applyPlan: DownvoteGroupBy_extensions_grafast_applyPlan2 } }) }, @@ -3905,7 +3897,7 @@ export const DownvoteGroupBy = new GraphQLEnumType({ value: "CREATED_AT_TRUNCATED_TO_HOUR", extensions: Object.assign(Object.create(null), { grafast: { - applyPlan: DownvoteGroupBy_extensions_grafast_applyPlan4 + applyPlan: DownvoteGroupBy_extensions_grafast_applyPlan3 } }) }, @@ -3913,7 +3905,7 @@ export const DownvoteGroupBy = new GraphQLEnumType({ value: "CREATED_AT_TRUNCATED_TO_DAY", extensions: Object.assign(Object.create(null), { grafast: { - applyPlan: DownvoteGroupBy_extensions_grafast_applyPlan5 + applyPlan: DownvoteGroupBy_extensions_grafast_applyPlan4 } }) }, @@ -3921,7 +3913,7 @@ export const DownvoteGroupBy = new GraphQLEnumType({ value: "UPDATED_AT", extensions: Object.assign(Object.create(null), { grafast: { - applyPlan: DownvoteGroupBy_extensions_grafast_applyPlan6 + applyPlan: DownvoteGroupBy_extensions_grafast_applyPlan5 } }) }, @@ -3929,12 +3921,20 @@ export const DownvoteGroupBy = new GraphQLEnumType({ value: "UPDATED_AT_TRUNCATED_TO_HOUR", extensions: Object.assign(Object.create(null), { grafast: { - applyPlan: DownvoteGroupBy_extensions_grafast_applyPlan7 + applyPlan: DownvoteGroupBy_extensions_grafast_applyPlan6 } }) }, UPDATED_AT_TRUNCATED_TO_DAY: { value: "UPDATED_AT_TRUNCATED_TO_DAY", + extensions: Object.assign(Object.create(null), { + grafast: { + applyPlan: DownvoteGroupBy_extensions_grafast_applyPlan7 + } + }) + }, + USER_ID: { + value: "USER_ID", extensions: Object.assign(Object.create(null), { grafast: { applyPlan: DownvoteGroupBy_extensions_grafast_applyPlan8 @@ -4594,9 +4594,9 @@ interface Node { } type UserOrganization { - userId: UUID! organizationId: UUID! createdAt: Datetime + userId: UUID! """ Reads a single \`Organization\` that is related to this \`UserOrganization\`. @@ -4828,9 +4828,9 @@ type Post implements Node { title: String description: String projectId: UUID! - userId: UUID! createdAt: Datetime updatedAt: Datetime + userId: UUID! """Reads a single \`Project\` that is related to this \`Post\`.""" project: Project @@ -5141,24 +5141,24 @@ enum PostOrderBy { DESCRIPTION_DESC PROJECT_ID_ASC PROJECT_ID_DESC - USER_ID_ASC - USER_ID_DESC CREATED_AT_ASC CREATED_AT_DESC UPDATED_AT_ASC UPDATED_AT_DESC + USER_ID_ASC + USER_ID_DESC UPVOTES_COUNT_ASC UPVOTES_COUNT_DESC UPVOTES_DISTINCT_COUNT_ROW_ID_ASC UPVOTES_DISTINCT_COUNT_ROW_ID_DESC UPVOTES_DISTINCT_COUNT_POST_ID_ASC UPVOTES_DISTINCT_COUNT_POST_ID_DESC - UPVOTES_DISTINCT_COUNT_USER_ID_ASC - UPVOTES_DISTINCT_COUNT_USER_ID_DESC UPVOTES_DISTINCT_COUNT_CREATED_AT_ASC UPVOTES_DISTINCT_COUNT_CREATED_AT_DESC UPVOTES_DISTINCT_COUNT_UPDATED_AT_ASC UPVOTES_DISTINCT_COUNT_UPDATED_AT_DESC + UPVOTES_DISTINCT_COUNT_USER_ID_ASC + UPVOTES_DISTINCT_COUNT_USER_ID_DESC COMMENTS_COUNT_ASC COMMENTS_COUNT_DESC COMMENTS_DISTINCT_COUNT_ROW_ID_ASC @@ -5167,24 +5167,24 @@ enum PostOrderBy { COMMENTS_DISTINCT_COUNT_MESSAGE_DESC COMMENTS_DISTINCT_COUNT_POST_ID_ASC COMMENTS_DISTINCT_COUNT_POST_ID_DESC - COMMENTS_DISTINCT_COUNT_USER_ID_ASC - COMMENTS_DISTINCT_COUNT_USER_ID_DESC COMMENTS_DISTINCT_COUNT_CREATED_AT_ASC COMMENTS_DISTINCT_COUNT_CREATED_AT_DESC COMMENTS_DISTINCT_COUNT_UPDATED_AT_ASC COMMENTS_DISTINCT_COUNT_UPDATED_AT_DESC + COMMENTS_DISTINCT_COUNT_USER_ID_ASC + COMMENTS_DISTINCT_COUNT_USER_ID_DESC DOWNVOTES_COUNT_ASC DOWNVOTES_COUNT_DESC DOWNVOTES_DISTINCT_COUNT_ROW_ID_ASC DOWNVOTES_DISTINCT_COUNT_ROW_ID_DESC DOWNVOTES_DISTINCT_COUNT_POST_ID_ASC DOWNVOTES_DISTINCT_COUNT_POST_ID_DESC - DOWNVOTES_DISTINCT_COUNT_USER_ID_ASC - DOWNVOTES_DISTINCT_COUNT_USER_ID_DESC DOWNVOTES_DISTINCT_COUNT_CREATED_AT_ASC DOWNVOTES_DISTINCT_COUNT_CREATED_AT_DESC DOWNVOTES_DISTINCT_COUNT_UPDATED_AT_ASC DOWNVOTES_DISTINCT_COUNT_UPDATED_AT_DESC + DOWNVOTES_DISTINCT_COUNT_USER_ID_ASC + DOWNVOTES_DISTINCT_COUNT_USER_ID_DESC } """ @@ -5203,14 +5203,14 @@ input PostCondition { """Checks for equality with the object’s \`projectId\` field.""" projectId: UUID - """Checks for equality with the object’s \`userId\` field.""" - userId: UUID - """Checks for equality with the object’s \`createdAt\` field.""" createdAt: Datetime """Checks for equality with the object’s \`updatedAt\` field.""" updatedAt: Datetime + + """Checks for equality with the object’s \`userId\` field.""" + userId: UUID } """ @@ -5229,15 +5229,15 @@ input PostFilter { """Filter by the object’s \`projectId\` field.""" projectId: UUIDFilter - """Filter by the object’s \`userId\` field.""" - userId: UUIDFilter - """Filter by the object’s \`createdAt\` field.""" createdAt: DatetimeFilter """Filter by the object’s \`updatedAt\` field.""" updatedAt: DatetimeFilter + """Filter by the object’s \`userId\` field.""" + userId: UUIDFilter + """Filter by the object’s \`upvotes\` relation.""" upvotes: PostToManyUpvoteFilter @@ -5521,15 +5521,15 @@ input UpvoteFilter { """Filter by the object’s \`postId\` field.""" postId: UUIDFilter - """Filter by the object’s \`userId\` field.""" - userId: UUIDFilter - """Filter by the object’s \`createdAt\` field.""" createdAt: DatetimeFilter """Filter by the object’s \`updatedAt\` field.""" updatedAt: DatetimeFilter + """Filter by the object’s \`userId\` field.""" + userId: UUIDFilter + """Filter by the object’s \`post\` relation.""" post: PostFilter @@ -5650,9 +5650,9 @@ input PostDistinctCountAggregateFilter { title: BigIntFilter description: BigIntFilter projectId: BigIntFilter - userId: BigIntFilter createdAt: BigIntFilter updatedAt: BigIntFilter + userId: BigIntFilter } """ @@ -5741,9 +5741,9 @@ input UpvoteAggregatesFilter { input UpvoteDistinctCountAggregateFilter { rowId: BigIntFilter postId: BigIntFilter - userId: BigIntFilter createdAt: BigIntFilter updatedAt: BigIntFilter + userId: BigIntFilter } """ @@ -5775,15 +5775,15 @@ input UserToManyUserOrganizationFilter { A filter to be used against \`UserOrganization\` object types. All fields are combined with a logical ‘and.’ """ input UserOrganizationFilter { - """Filter by the object’s \`userId\` field.""" - userId: UUIDFilter - """Filter by the object’s \`organizationId\` field.""" organizationId: UUIDFilter """Filter by the object’s \`createdAt\` field.""" createdAt: DatetimeFilter + """Filter by the object’s \`userId\` field.""" + userId: UUIDFilter + """Filter by the object’s \`organization\` relation.""" organization: OrganizationFilter @@ -5995,9 +5995,9 @@ input UserOrganizationAggregatesFilter { } input UserOrganizationDistinctCountAggregateFilter { - userId: BigIntFilter organizationId: BigIntFilter createdAt: BigIntFilter + userId: BigIntFilter } """ @@ -6036,15 +6036,15 @@ input CommentFilter { """Filter by the object’s \`postId\` field.""" postId: UUIDFilter - """Filter by the object’s \`userId\` field.""" - userId: UUIDFilter - """Filter by the object’s \`createdAt\` field.""" createdAt: DatetimeFilter """Filter by the object’s \`updatedAt\` field.""" updatedAt: DatetimeFilter + """Filter by the object’s \`userId\` field.""" + userId: UUIDFilter + """Filter by the object’s \`post\` relation.""" post: PostFilter @@ -6076,9 +6076,9 @@ input CommentDistinctCountAggregateFilter { rowId: BigIntFilter message: BigIntFilter postId: BigIntFilter - userId: BigIntFilter createdAt: BigIntFilter updatedAt: BigIntFilter + userId: BigIntFilter } """ @@ -6114,15 +6114,15 @@ input DownvoteFilter { """Filter by the object’s \`postId\` field.""" postId: UUIDFilter - """Filter by the object’s \`userId\` field.""" - userId: UUIDFilter - """Filter by the object’s \`createdAt\` field.""" createdAt: DatetimeFilter """Filter by the object’s \`updatedAt\` field.""" updatedAt: DatetimeFilter + """Filter by the object’s \`userId\` field.""" + userId: UUIDFilter + """Filter by the object’s \`post\` relation.""" post: PostFilter @@ -6153,9 +6153,9 @@ input DownvoteAggregatesFilter { input DownvoteDistinctCountAggregateFilter { rowId: BigIntFilter postId: BigIntFilter - userId: BigIntFilter createdAt: BigIntFilter updatedAt: BigIntFilter + userId: BigIntFilter } """ @@ -6244,9 +6244,9 @@ type Upvote implements Node { id: ID! rowId: UUID! postId: UUID! - userId: UUID! createdAt: Datetime updatedAt: Datetime + userId: UUID! """Reads a single \`Post\` that is related to this \`Upvote\`.""" post: Post @@ -6295,26 +6295,26 @@ type UpvoteDistinctCountAggregates { """Distinct count of postId across the matching connection""" postId: BigInt - """Distinct count of userId across the matching connection""" - userId: BigInt - """Distinct count of createdAt across the matching connection""" createdAt: BigInt """Distinct count of updatedAt across the matching connection""" updatedAt: BigInt + + """Distinct count of userId across the matching connection""" + userId: BigInt } """Grouping methods for \`Upvote\` for usage during aggregation.""" enum UpvoteGroupBy { POST_ID - USER_ID CREATED_AT CREATED_AT_TRUNCATED_TO_HOUR CREATED_AT_TRUNCATED_TO_DAY UPDATED_AT UPDATED_AT_TRUNCATED_TO_HOUR UPDATED_AT_TRUNCATED_TO_DAY + USER_ID } """Conditions for \`Upvote\` aggregates.""" @@ -6395,12 +6395,12 @@ enum UpvoteOrderBy { ROW_ID_DESC POST_ID_ASC POST_ID_DESC - USER_ID_ASC - USER_ID_DESC CREATED_AT_ASC CREATED_AT_DESC UPDATED_AT_ASC UPDATED_AT_DESC + USER_ID_ASC + USER_ID_DESC } """ @@ -6413,14 +6413,14 @@ input UpvoteCondition { """Checks for equality with the object’s \`postId\` field.""" postId: UUID - """Checks for equality with the object’s \`userId\` field.""" - userId: UUID - """Checks for equality with the object’s \`createdAt\` field.""" createdAt: Datetime """Checks for equality with the object’s \`updatedAt\` field.""" updatedAt: Datetime + + """Checks for equality with the object’s \`userId\` field.""" + userId: UUID } """A connection to a list of \`UserOrganization\` values.""" @@ -6479,23 +6479,23 @@ type UserOrganizationAggregates { } type UserOrganizationDistinctCountAggregates { - """Distinct count of userId across the matching connection""" - userId: BigInt - """Distinct count of organizationId across the matching connection""" organizationId: BigInt """Distinct count of createdAt across the matching connection""" createdAt: BigInt + + """Distinct count of userId across the matching connection""" + userId: BigInt } """Grouping methods for \`UserOrganization\` for usage during aggregation.""" enum UserOrganizationGroupBy { - USER_ID ORGANIZATION_ID CREATED_AT CREATED_AT_TRUNCATED_TO_HOUR CREATED_AT_TRUNCATED_TO_DAY + USER_ID } """Conditions for \`UserOrganization\` aggregates.""" @@ -6552,12 +6552,12 @@ input UserOrganizationHavingVariancePopulationInput { """Methods to use when ordering \`UserOrganization\`.""" enum UserOrganizationOrderBy { NATURAL - USER_ID_ASC - USER_ID_DESC ORGANIZATION_ID_ASC ORGANIZATION_ID_DESC CREATED_AT_ASC CREATED_AT_DESC + USER_ID_ASC + USER_ID_DESC } """ @@ -6565,14 +6565,14 @@ A condition to be used against \`UserOrganization\` object types. All fields are tested for equality and combined with a logical ‘and.’ """ input UserOrganizationCondition { - """Checks for equality with the object’s \`userId\` field.""" - userId: UUID - """Checks for equality with the object’s \`organizationId\` field.""" organizationId: UUID """Checks for equality with the object’s \`createdAt\` field.""" createdAt: Datetime + + """Checks for equality with the object’s \`userId\` field.""" + userId: UUID } """A connection to a list of \`Comment\` values.""" @@ -6616,9 +6616,9 @@ type Comment implements Node { rowId: UUID! message: String postId: UUID! - userId: UUID! createdAt: Datetime updatedAt: Datetime + userId: UUID! """Reads a single \`Post\` that is related to this \`Comment\`.""" post: Post @@ -6655,27 +6655,27 @@ type CommentDistinctCountAggregates { """Distinct count of postId across the matching connection""" postId: BigInt - """Distinct count of userId across the matching connection""" - userId: BigInt - """Distinct count of createdAt across the matching connection""" createdAt: BigInt """Distinct count of updatedAt across the matching connection""" updatedAt: BigInt + + """Distinct count of userId across the matching connection""" + userId: BigInt } """Grouping methods for \`Comment\` for usage during aggregation.""" enum CommentGroupBy { MESSAGE POST_ID - USER_ID CREATED_AT CREATED_AT_TRUNCATED_TO_HOUR CREATED_AT_TRUNCATED_TO_DAY UPDATED_AT UPDATED_AT_TRUNCATED_TO_HOUR UPDATED_AT_TRUNCATED_TO_DAY + USER_ID } """Conditions for \`Comment\` aggregates.""" @@ -6749,12 +6749,12 @@ enum CommentOrderBy { MESSAGE_DESC POST_ID_ASC POST_ID_DESC - USER_ID_ASC - USER_ID_DESC CREATED_AT_ASC CREATED_AT_DESC UPDATED_AT_ASC UPDATED_AT_DESC + USER_ID_ASC + USER_ID_DESC } """ @@ -6770,14 +6770,14 @@ input CommentCondition { """Checks for equality with the object’s \`postId\` field.""" postId: UUID - """Checks for equality with the object’s \`userId\` field.""" - userId: UUID - """Checks for equality with the object’s \`createdAt\` field.""" createdAt: Datetime """Checks for equality with the object’s \`updatedAt\` field.""" updatedAt: Datetime + + """Checks for equality with the object’s \`userId\` field.""" + userId: UUID } """A connection to a list of \`Downvote\` values.""" @@ -6820,9 +6820,9 @@ type Downvote implements Node { id: ID! rowId: UUID! postId: UUID! - userId: UUID! createdAt: Datetime updatedAt: Datetime + userId: UUID! """Reads a single \`Post\` that is related to this \`Downvote\`.""" post: Post @@ -6856,26 +6856,26 @@ type DownvoteDistinctCountAggregates { """Distinct count of postId across the matching connection""" postId: BigInt - """Distinct count of userId across the matching connection""" - userId: BigInt - """Distinct count of createdAt across the matching connection""" createdAt: BigInt """Distinct count of updatedAt across the matching connection""" updatedAt: BigInt + + """Distinct count of userId across the matching connection""" + userId: BigInt } """Grouping methods for \`Downvote\` for usage during aggregation.""" enum DownvoteGroupBy { POST_ID - USER_ID CREATED_AT CREATED_AT_TRUNCATED_TO_HOUR CREATED_AT_TRUNCATED_TO_DAY UPDATED_AT UPDATED_AT_TRUNCATED_TO_HOUR UPDATED_AT_TRUNCATED_TO_DAY + USER_ID } """Conditions for \`Downvote\` aggregates.""" @@ -6947,12 +6947,12 @@ enum DownvoteOrderBy { ROW_ID_DESC POST_ID_ASC POST_ID_DESC - USER_ID_ASC - USER_ID_DESC CREATED_AT_ASC CREATED_AT_DESC UPDATED_AT_ASC UPDATED_AT_DESC + USER_ID_ASC + USER_ID_DESC } """ @@ -6966,14 +6966,14 @@ input DownvoteCondition { """Checks for equality with the object’s \`postId\` field.""" postId: UUID - """Checks for equality with the object’s \`userId\` field.""" - userId: UUID - """Checks for equality with the object’s \`createdAt\` field.""" createdAt: Datetime """Checks for equality with the object’s \`updatedAt\` field.""" updatedAt: Datetime + + """Checks for equality with the object’s \`userId\` field.""" + userId: UUID } """A \`Post\` edge in the connection.""" @@ -7007,14 +7007,14 @@ type PostDistinctCountAggregates { """Distinct count of projectId across the matching connection""" projectId: BigInt - """Distinct count of userId across the matching connection""" - userId: BigInt - """Distinct count of createdAt across the matching connection""" createdAt: BigInt """Distinct count of updatedAt across the matching connection""" updatedAt: BigInt + + """Distinct count of userId across the matching connection""" + userId: BigInt } """Grouping methods for \`Post\` for usage during aggregation.""" @@ -7022,13 +7022,13 @@ enum PostGroupBy { TITLE DESCRIPTION PROJECT_ID - USER_ID CREATED_AT CREATED_AT_TRUNCATED_TO_HOUR CREATED_AT_TRUNCATED_TO_DAY UPDATED_AT UPDATED_AT_TRUNCATED_TO_HOUR UPDATED_AT_TRUNCATED_TO_DAY + USER_ID } """Conditions for \`Post\` aggregates.""" @@ -7240,12 +7240,12 @@ enum ProjectOrderBy { POSTS_DISTINCT_COUNT_DESCRIPTION_DESC POSTS_DISTINCT_COUNT_PROJECT_ID_ASC POSTS_DISTINCT_COUNT_PROJECT_ID_DESC - POSTS_DISTINCT_COUNT_USER_ID_ASC - POSTS_DISTINCT_COUNT_USER_ID_DESC POSTS_DISTINCT_COUNT_CREATED_AT_ASC POSTS_DISTINCT_COUNT_CREATED_AT_DESC POSTS_DISTINCT_COUNT_UPDATED_AT_ASC POSTS_DISTINCT_COUNT_UPDATED_AT_DESC + POSTS_DISTINCT_COUNT_USER_ID_ASC + POSTS_DISTINCT_COUNT_USER_ID_DESC } """ @@ -7450,12 +7450,12 @@ enum OrganizationOrderBy { PROJECTS_DISTINCT_COUNT_UPDATED_AT_DESC USER_ORGANIZATIONS_COUNT_ASC USER_ORGANIZATIONS_COUNT_DESC - USER_ORGANIZATIONS_DISTINCT_COUNT_USER_ID_ASC - USER_ORGANIZATIONS_DISTINCT_COUNT_USER_ID_DESC USER_ORGANIZATIONS_DISTINCT_COUNT_ORGANIZATION_ID_ASC USER_ORGANIZATIONS_DISTINCT_COUNT_ORGANIZATION_ID_DESC USER_ORGANIZATIONS_DISTINCT_COUNT_CREATED_AT_ASC USER_ORGANIZATIONS_DISTINCT_COUNT_CREATED_AT_DESC + USER_ORGANIZATIONS_DISTINCT_COUNT_USER_ID_ASC + USER_ORGANIZATIONS_DISTINCT_COUNT_USER_ID_DESC } """ @@ -7654,32 +7654,32 @@ enum UserOrderBy { POSTS_DISTINCT_COUNT_DESCRIPTION_DESC POSTS_DISTINCT_COUNT_PROJECT_ID_ASC POSTS_DISTINCT_COUNT_PROJECT_ID_DESC - POSTS_DISTINCT_COUNT_USER_ID_ASC - POSTS_DISTINCT_COUNT_USER_ID_DESC POSTS_DISTINCT_COUNT_CREATED_AT_ASC POSTS_DISTINCT_COUNT_CREATED_AT_DESC POSTS_DISTINCT_COUNT_UPDATED_AT_ASC POSTS_DISTINCT_COUNT_UPDATED_AT_DESC + POSTS_DISTINCT_COUNT_USER_ID_ASC + POSTS_DISTINCT_COUNT_USER_ID_DESC UPVOTES_COUNT_ASC UPVOTES_COUNT_DESC UPVOTES_DISTINCT_COUNT_ROW_ID_ASC UPVOTES_DISTINCT_COUNT_ROW_ID_DESC UPVOTES_DISTINCT_COUNT_POST_ID_ASC UPVOTES_DISTINCT_COUNT_POST_ID_DESC - UPVOTES_DISTINCT_COUNT_USER_ID_ASC - UPVOTES_DISTINCT_COUNT_USER_ID_DESC UPVOTES_DISTINCT_COUNT_CREATED_AT_ASC UPVOTES_DISTINCT_COUNT_CREATED_AT_DESC UPVOTES_DISTINCT_COUNT_UPDATED_AT_ASC UPVOTES_DISTINCT_COUNT_UPDATED_AT_DESC + UPVOTES_DISTINCT_COUNT_USER_ID_ASC + UPVOTES_DISTINCT_COUNT_USER_ID_DESC USER_ORGANIZATIONS_COUNT_ASC USER_ORGANIZATIONS_COUNT_DESC - USER_ORGANIZATIONS_DISTINCT_COUNT_USER_ID_ASC - USER_ORGANIZATIONS_DISTINCT_COUNT_USER_ID_DESC USER_ORGANIZATIONS_DISTINCT_COUNT_ORGANIZATION_ID_ASC USER_ORGANIZATIONS_DISTINCT_COUNT_ORGANIZATION_ID_DESC USER_ORGANIZATIONS_DISTINCT_COUNT_CREATED_AT_ASC USER_ORGANIZATIONS_DISTINCT_COUNT_CREATED_AT_DESC + USER_ORGANIZATIONS_DISTINCT_COUNT_USER_ID_ASC + USER_ORGANIZATIONS_DISTINCT_COUNT_USER_ID_DESC COMMENTS_COUNT_ASC COMMENTS_COUNT_DESC COMMENTS_DISTINCT_COUNT_ROW_ID_ASC @@ -7688,24 +7688,24 @@ enum UserOrderBy { COMMENTS_DISTINCT_COUNT_MESSAGE_DESC COMMENTS_DISTINCT_COUNT_POST_ID_ASC COMMENTS_DISTINCT_COUNT_POST_ID_DESC - COMMENTS_DISTINCT_COUNT_USER_ID_ASC - COMMENTS_DISTINCT_COUNT_USER_ID_DESC COMMENTS_DISTINCT_COUNT_CREATED_AT_ASC COMMENTS_DISTINCT_COUNT_CREATED_AT_DESC COMMENTS_DISTINCT_COUNT_UPDATED_AT_ASC COMMENTS_DISTINCT_COUNT_UPDATED_AT_DESC + COMMENTS_DISTINCT_COUNT_USER_ID_ASC + COMMENTS_DISTINCT_COUNT_USER_ID_DESC DOWNVOTES_COUNT_ASC DOWNVOTES_COUNT_DESC DOWNVOTES_DISTINCT_COUNT_ROW_ID_ASC DOWNVOTES_DISTINCT_COUNT_ROW_ID_DESC DOWNVOTES_DISTINCT_COUNT_POST_ID_ASC DOWNVOTES_DISTINCT_COUNT_POST_ID_DESC - DOWNVOTES_DISTINCT_COUNT_USER_ID_ASC - DOWNVOTES_DISTINCT_COUNT_USER_ID_DESC DOWNVOTES_DISTINCT_COUNT_CREATED_AT_ASC DOWNVOTES_DISTINCT_COUNT_CREATED_AT_DESC DOWNVOTES_DISTINCT_COUNT_UPDATED_AT_ASC DOWNVOTES_DISTINCT_COUNT_UPDATED_AT_DESC + DOWNVOTES_DISTINCT_COUNT_USER_ID_ASC + DOWNVOTES_DISTINCT_COUNT_USER_ID_DESC } """ @@ -8204,9 +8204,9 @@ input CreateUserOrganizationInput { """An input for mutations affecting \`UserOrganization\`""" input UserOrganizationInput { - userId: UUID! organizationId: UUID! createdAt: Datetime + userId: UUID! } """The output of our create \`Downvote\` mutation.""" @@ -8248,9 +8248,9 @@ input CreateDownvoteInput { input DownvoteInput { rowId: UUID postId: UUID! - userId: UUID! createdAt: Datetime updatedAt: Datetime + userId: UUID! } """The output of our create \`Upvote\` mutation.""" @@ -8292,9 +8292,9 @@ input CreateUpvoteInput { input UpvoteInput { rowId: UUID postId: UUID! - userId: UUID! createdAt: Datetime updatedAt: Datetime + userId: UUID! } """The output of our create \`Organization\` mutation.""" @@ -8381,9 +8381,9 @@ input CommentInput { rowId: UUID message: String postId: UUID! - userId: UUID! createdAt: Datetime updatedAt: Datetime + userId: UUID! } """The output of our create \`Post\` mutation.""" @@ -8427,9 +8427,9 @@ input PostInput { title: String description: String projectId: UUID! - userId: UUID! createdAt: Datetime updatedAt: Datetime + userId: UUID! } """The output of our create \`User\` mutation.""" @@ -8564,9 +8564,9 @@ input UpdateUserOrganizationByUserIdAndOrganizationIdInput { Represents an update to a \`UserOrganization\`. Fields that are set will be updated. """ input UserOrganizationPatch { - userId: UUID organizationId: UUID createdAt: Datetime + userId: UUID } """The output of our update \`Downvote\` mutation.""" @@ -8617,9 +8617,9 @@ Represents an update to a \`Downvote\`. Fields that are set will be updated. input DownvotePatch { rowId: UUID postId: UUID - userId: UUID createdAt: Datetime updatedAt: Datetime + userId: UUID } """All input for the \`updateDownvote\` mutation.""" @@ -8701,9 +8701,9 @@ Represents an update to a \`Upvote\`. Fields that are set will be updated. input UpvotePatch { rowId: UUID postId: UUID - userId: UUID createdAt: Datetime updatedAt: Datetime + userId: UUID } """All input for the \`updateUpvote\` mutation.""" @@ -8884,9 +8884,9 @@ input CommentPatch { rowId: UUID message: String postId: UUID - userId: UUID createdAt: Datetime updatedAt: Datetime + userId: UUID } """All input for the \`updateComment\` mutation.""" @@ -8952,9 +8952,9 @@ input PostPatch { title: String description: String projectId: UUID - userId: UUID createdAt: Datetime updatedAt: Datetime + userId: UUID } """All input for the \`updatePost\` mutation.""" @@ -10378,15 +10378,15 @@ export const plans = { }, UserOrganization: { __assertStep: assertPgClassSingleStep, - userId($record) { - return $record.get("user_id"); - }, organizationId($record) { return $record.get("organization_id"); }, createdAt($record) { return $record.get("created_at"); }, + userId($record) { + return $record.get("user_id"); + }, organization($record) { return pgResource_organizationPgResource.get({ id: $record.get("organization_id") @@ -10394,7 +10394,7 @@ export const plans = { }, user($record) { return pgResource_userPgResource.get({ - id: $record.get("user_id") + hidra_id: $record.get("user_id") }); } }, @@ -10780,15 +10780,15 @@ export const plans = { projectId($record) { return $record.get("project_id"); }, - userId($record) { - return $record.get("user_id"); - }, createdAt($record) { return $record.get("created_at"); }, updatedAt($record) { return $record.get("updated_at"); }, + userId($record) { + return $record.get("user_id"); + }, project($record) { return pgResource_projectPgResource.get({ id: $record.get("project_id") @@ -10796,7 +10796,7 @@ export const plans = { }, user($record) { return pgResource_userPgResource.get({ - id: $record.get("user_id") + hidra_id: $record.get("user_id") }); }, upvotes: { @@ -11028,7 +11028,7 @@ export const plans = { posts: { plan($record) { const $records = pgResource_postPgResource.find({ - user_id: $record.get("id") + user_id: $record.get("hidra_id") }); return connection($records); }, @@ -11094,7 +11094,7 @@ export const plans = { upvotes: { plan($record) { const $records = pgResource_upvotePgResource.find({ - user_id: $record.get("id") + user_id: $record.get("hidra_id") }); return connection($records); }, @@ -11160,7 +11160,7 @@ export const plans = { userOrganizations: { plan($record) { const $records = resource_user_organizationPgResource.find({ - user_id: $record.get("id") + user_id: $record.get("hidra_id") }); return connection($records); }, @@ -11226,7 +11226,7 @@ export const plans = { comments: { plan($record) { const $records = pgResource_commentPgResource.find({ - user_id: $record.get("id") + user_id: $record.get("hidra_id") }); return connection($records); }, @@ -11292,7 +11292,7 @@ export const plans = { downvotes: { plan($record) { const $records = pgResource_downvotePgResource.find({ - user_id: $record.get("id") + user_id: $record.get("hidra_id") }); return connection($records); }, @@ -11504,11 +11504,11 @@ export const plans = { if (false) plan.setOrderIsUnique(); } }, - USER_ID_ASC: { + CREATED_AT_ASC: { applyPlan(plan) { if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); plan.orderBy({ - attribute: "user_id", + attribute: "created_at", direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" @@ -11517,11 +11517,11 @@ export const plans = { if (false) plan.setOrderIsUnique(); } }, - USER_ID_DESC: { + CREATED_AT_DESC: { applyPlan(plan) { if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); plan.orderBy({ - attribute: "user_id", + attribute: "created_at", direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" @@ -11530,11 +11530,11 @@ export const plans = { if (false) plan.setOrderIsUnique(); } }, - CREATED_AT_ASC: { + UPDATED_AT_ASC: { applyPlan(plan) { if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); plan.orderBy({ - attribute: "created_at", + attribute: "updated_at", direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" @@ -11543,11 +11543,11 @@ export const plans = { if (false) plan.setOrderIsUnique(); } }, - CREATED_AT_DESC: { + UPDATED_AT_DESC: { applyPlan(plan) { if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); plan.orderBy({ - attribute: "created_at", + attribute: "updated_at", direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" @@ -11556,11 +11556,11 @@ export const plans = { if (false) plan.setOrderIsUnique(); } }, - UPDATED_AT_ASC: { + USER_ID_ASC: { applyPlan(plan) { if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); plan.orderBy({ - attribute: "updated_at", + attribute: "user_id", direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" @@ -11569,11 +11569,11 @@ export const plans = { if (false) plan.setOrderIsUnique(); } }, - UPDATED_AT_DESC: { + USER_ID_DESC: { applyPlan(plan) { if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); plan.orderBy({ - attribute: "updated_at", + attribute: "user_id", direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" @@ -11710,7 +11710,7 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); } }, - UPVOTES_DISTINCT_COUNT_USER_ID_ASC: { + UPVOTES_DISTINCT_COUNT_CREATED_AT_ASC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -11722,17 +11722,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_upvotePgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_upvote.attributes.user_id.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_upvote.attributes.created_at.codec)} from ${pgResource_upvotePgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_upvote.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_upvote.attributes.user_id.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_upvote.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_upvote.attributes.created_at.codec, direction: "ASC" }); } }, - UPVOTES_DISTINCT_COUNT_USER_ID_DESC: { + UPVOTES_DISTINCT_COUNT_CREATED_AT_DESC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -11744,17 +11744,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_upvotePgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_upvote.attributes.user_id.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_upvote.attributes.created_at.codec)} from ${pgResource_upvotePgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_upvote.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_upvote.attributes.user_id.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_upvote.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_upvote.attributes.created_at.codec, direction: "DESC" }); } }, - UPVOTES_DISTINCT_COUNT_CREATED_AT_ASC: { + UPVOTES_DISTINCT_COUNT_UPDATED_AT_ASC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -11766,17 +11766,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_upvotePgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_upvote.attributes.created_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("updated_at")}`, spec_upvote.attributes.updated_at.codec)} from ${pgResource_upvotePgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_upvote.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_upvote.attributes.created_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_upvote.attributes.updated_at.codec)) !== null && _b !== void 0 ? _b : spec_upvote.attributes.updated_at.codec, direction: "ASC" }); } }, - UPVOTES_DISTINCT_COUNT_CREATED_AT_DESC: { + UPVOTES_DISTINCT_COUNT_UPDATED_AT_DESC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -11788,17 +11788,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_upvotePgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_upvote.attributes.created_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("updated_at")}`, spec_upvote.attributes.updated_at.codec)} from ${pgResource_upvotePgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_upvote.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_upvote.attributes.created_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_upvote.attributes.updated_at.codec)) !== null && _b !== void 0 ? _b : spec_upvote.attributes.updated_at.codec, direction: "DESC" }); } }, - UPVOTES_DISTINCT_COUNT_UPDATED_AT_ASC: { + UPVOTES_DISTINCT_COUNT_USER_ID_ASC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -11810,17 +11810,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_upvotePgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("updated_at")}`, spec_upvote.attributes.updated_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_upvote.attributes.user_id.codec)} from ${pgResource_upvotePgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_upvote.attributes.updated_at.codec)) !== null && _b !== void 0 ? _b : spec_upvote.attributes.updated_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_upvote.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_upvote.attributes.user_id.codec, direction: "ASC" }); } }, - UPVOTES_DISTINCT_COUNT_UPDATED_AT_DESC: { + UPVOTES_DISTINCT_COUNT_USER_ID_DESC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -11832,12 +11832,12 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_upvotePgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("updated_at")}`, spec_upvote.attributes.updated_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_upvote.attributes.user_id.codec)} from ${pgResource_upvotePgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_upvote.attributes.updated_at.codec)) !== null && _b !== void 0 ? _b : spec_upvote.attributes.updated_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_upvote.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_upvote.attributes.user_id.codec, direction: "DESC" }); } @@ -12014,7 +12014,7 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); } }, - COMMENTS_DISTINCT_COUNT_USER_ID_ASC: { + COMMENTS_DISTINCT_COUNT_CREATED_AT_ASC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -12026,17 +12026,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_commentPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_comment.attributes.user_id.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_comment.attributes.created_at.codec)} from ${pgResource_commentPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_comment.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_comment.attributes.user_id.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_comment.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_comment.attributes.created_at.codec, direction: "ASC" }); } }, - COMMENTS_DISTINCT_COUNT_USER_ID_DESC: { + COMMENTS_DISTINCT_COUNT_CREATED_AT_DESC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -12048,17 +12048,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_commentPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_comment.attributes.user_id.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_comment.attributes.created_at.codec)} from ${pgResource_commentPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_comment.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_comment.attributes.user_id.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_comment.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_comment.attributes.created_at.codec, direction: "DESC" }); } }, - COMMENTS_DISTINCT_COUNT_CREATED_AT_ASC: { + COMMENTS_DISTINCT_COUNT_UPDATED_AT_ASC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -12070,17 +12070,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_commentPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_comment.attributes.created_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("updated_at")}`, spec_comment.attributes.updated_at.codec)} from ${pgResource_commentPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_comment.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_comment.attributes.created_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_comment.attributes.updated_at.codec)) !== null && _b !== void 0 ? _b : spec_comment.attributes.updated_at.codec, direction: "ASC" }); } }, - COMMENTS_DISTINCT_COUNT_CREATED_AT_DESC: { + COMMENTS_DISTINCT_COUNT_UPDATED_AT_DESC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -12092,17 +12092,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_commentPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_comment.attributes.created_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("updated_at")}`, spec_comment.attributes.updated_at.codec)} from ${pgResource_commentPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_comment.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_comment.attributes.created_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_comment.attributes.updated_at.codec)) !== null && _b !== void 0 ? _b : spec_comment.attributes.updated_at.codec, direction: "DESC" }); } }, - COMMENTS_DISTINCT_COUNT_UPDATED_AT_ASC: { + COMMENTS_DISTINCT_COUNT_USER_ID_ASC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -12114,17 +12114,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_commentPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("updated_at")}`, spec_comment.attributes.updated_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_comment.attributes.user_id.codec)} from ${pgResource_commentPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_comment.attributes.updated_at.codec)) !== null && _b !== void 0 ? _b : spec_comment.attributes.updated_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_comment.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_comment.attributes.user_id.codec, direction: "ASC" }); } }, - COMMENTS_DISTINCT_COUNT_UPDATED_AT_DESC: { + COMMENTS_DISTINCT_COUNT_USER_ID_DESC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -12136,12 +12136,12 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_commentPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("updated_at")}`, spec_comment.attributes.updated_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_comment.attributes.user_id.codec)} from ${pgResource_commentPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_comment.attributes.updated_at.codec)) !== null && _b !== void 0 ? _b : spec_comment.attributes.updated_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_comment.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_comment.attributes.user_id.codec, direction: "DESC" }); } @@ -12274,7 +12274,7 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); } }, - DOWNVOTES_DISTINCT_COUNT_USER_ID_ASC: { + DOWNVOTES_DISTINCT_COUNT_CREATED_AT_ASC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -12286,17 +12286,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_downvotePgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_downvote.attributes.user_id.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_downvote.attributes.created_at.codec)} from ${pgResource_downvotePgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_downvote.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_downvote.attributes.user_id.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_downvote.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_downvote.attributes.created_at.codec, direction: "ASC" }); } }, - DOWNVOTES_DISTINCT_COUNT_USER_ID_DESC: { + DOWNVOTES_DISTINCT_COUNT_CREATED_AT_DESC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -12308,17 +12308,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_downvotePgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_downvote.attributes.user_id.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_downvote.attributes.created_at.codec)} from ${pgResource_downvotePgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_downvote.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_downvote.attributes.user_id.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_downvote.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_downvote.attributes.created_at.codec, direction: "DESC" }); } }, - DOWNVOTES_DISTINCT_COUNT_CREATED_AT_ASC: { + DOWNVOTES_DISTINCT_COUNT_UPDATED_AT_ASC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -12330,17 +12330,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_downvotePgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_downvote.attributes.created_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("updated_at")}`, spec_downvote.attributes.updated_at.codec)} from ${pgResource_downvotePgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_downvote.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_downvote.attributes.created_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_downvote.attributes.updated_at.codec)) !== null && _b !== void 0 ? _b : spec_downvote.attributes.updated_at.codec, direction: "ASC" }); } }, - DOWNVOTES_DISTINCT_COUNT_CREATED_AT_DESC: { + DOWNVOTES_DISTINCT_COUNT_UPDATED_AT_DESC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -12352,17 +12352,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_downvotePgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_downvote.attributes.created_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("updated_at")}`, spec_downvote.attributes.updated_at.codec)} from ${pgResource_downvotePgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_downvote.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_downvote.attributes.created_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_downvote.attributes.updated_at.codec)) !== null && _b !== void 0 ? _b : spec_downvote.attributes.updated_at.codec, direction: "DESC" }); } }, - DOWNVOTES_DISTINCT_COUNT_UPDATED_AT_ASC: { + DOWNVOTES_DISTINCT_COUNT_USER_ID_ASC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -12374,17 +12374,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_downvotePgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("updated_at")}`, spec_downvote.attributes.updated_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_downvote.attributes.user_id.codec)} from ${pgResource_downvotePgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_downvote.attributes.updated_at.codec)) !== null && _b !== void 0 ? _b : spec_downvote.attributes.updated_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_downvote.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_downvote.attributes.user_id.codec, direction: "ASC" }); } }, - DOWNVOTES_DISTINCT_COUNT_UPDATED_AT_DESC: { + DOWNVOTES_DISTINCT_COUNT_USER_ID_DESC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -12396,12 +12396,12 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_downvotePgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("updated_at")}`, spec_downvote.attributes.updated_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_downvote.attributes.user_id.codec)} from ${pgResource_downvotePgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_downvote.attributes.updated_at.codec)) !== null && _b !== void 0 ? _b : spec_downvote.attributes.updated_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_downvote.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_downvote.attributes.user_id.codec, direction: "DESC" }); } @@ -12484,57 +12484,57 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - userId: { + createdAt: { applyPlan($condition, val) { if (val.getRaw().evalIs(null)) $condition.where({ type: "attribute", - attribute: "user_id", + attribute: "created_at", callback(expression) { return sql`${expression} is null`; } });else $condition.where({ type: "attribute", - attribute: "user_id", + attribute: "created_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.user_id.codec)}`; + return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.created_at.codec)}`; } }); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - createdAt: { + updatedAt: { applyPlan($condition, val) { if (val.getRaw().evalIs(null)) $condition.where({ type: "attribute", - attribute: "created_at", + attribute: "updated_at", callback(expression) { return sql`${expression} is null`; } });else $condition.where({ type: "attribute", - attribute: "created_at", + attribute: "updated_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.created_at.codec)}`; + return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.updated_at.codec)}`; } }); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - updatedAt: { + userId: { applyPlan($condition, val) { if (val.getRaw().evalIs(null)) $condition.where({ type: "attribute", - attribute: "updated_at", + attribute: "user_id", callback(expression) { return sql`${expression} is null`; } });else $condition.where({ type: "attribute", - attribute: "updated_at", + attribute: "user_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.updated_at.codec)}`; + return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.user_id.codec)}`; } }); }, @@ -12587,7 +12587,7 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; fieldArgs.apply($col); } }, - userId: { + createdAt: { applyPlan($where, fieldArgs) { const $raw = fieldArgs.getRaw(); if ($raw.evalIs(void 0)) return; @@ -12598,7 +12598,7 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; fieldArgs.apply($col); } }, - createdAt: { + updatedAt: { applyPlan($where, fieldArgs) { const $raw = fieldArgs.getRaw(); if ($raw.evalIs(void 0)) return; @@ -12609,7 +12609,7 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; fieldArgs.apply($col); } }, - updatedAt: { + userId: { applyPlan($where, fieldArgs) { const $raw = fieldArgs.getRaw(); if ($raw.evalIs(void 0)) return; @@ -14459,7 +14459,7 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; fieldArgs.apply($col); } }, - userId: { + createdAt: { applyPlan($where, fieldArgs) { const $raw = fieldArgs.getRaw(); if ($raw.evalIs(void 0)) return; @@ -14470,7 +14470,7 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; fieldArgs.apply($col); } }, - createdAt: { + updatedAt: { applyPlan($where, fieldArgs) { const $raw = fieldArgs.getRaw(); if ($raw.evalIs(void 0)) return; @@ -14481,7 +14481,7 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; fieldArgs.apply($col); } }, - updatedAt: { + userId: { applyPlan($where, fieldArgs) { const $raw = fieldArgs.getRaw(); if ($raw.evalIs(void 0)) return; @@ -14917,32 +14917,32 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; fieldArgs.apply($col); } }, - userId: { + createdAt: { applyPlan($parent, fieldArgs) { const $col = new PgConditionStep($parent); $col.extensions.pgFilterAttribute = { codec: TYPES.bigint, - expression: aggregateSpec.sqlAggregateWrap(sql`${$col.alias}.${sql.identifier("user_id")}`, spec_post.attributes.user_id.codec) + expression: aggregateSpec.sqlAggregateWrap(sql`${$col.alias}.${sql.identifier("created_at")}`, spec_post.attributes.created_at.codec) }; fieldArgs.apply($col); } }, - createdAt: { + updatedAt: { applyPlan($parent, fieldArgs) { const $col = new PgConditionStep($parent); $col.extensions.pgFilterAttribute = { codec: TYPES.bigint, - expression: aggregateSpec.sqlAggregateWrap(sql`${$col.alias}.${sql.identifier("created_at")}`, spec_post.attributes.created_at.codec) + expression: aggregateSpec.sqlAggregateWrap(sql`${$col.alias}.${sql.identifier("updated_at")}`, spec_post.attributes.updated_at.codec) }; fieldArgs.apply($col); } }, - updatedAt: { + userId: { applyPlan($parent, fieldArgs) { const $col = new PgConditionStep($parent); $col.extensions.pgFilterAttribute = { codec: TYPES.bigint, - expression: aggregateSpec.sqlAggregateWrap(sql`${$col.alias}.${sql.identifier("updated_at")}`, spec_post.attributes.updated_at.codec) + expression: aggregateSpec.sqlAggregateWrap(sql`${$col.alias}.${sql.identifier("user_id")}`, spec_post.attributes.user_id.codec) }; fieldArgs.apply($col); } @@ -15375,32 +15375,32 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; fieldArgs.apply($col); } }, - userId: { + createdAt: { applyPlan($parent, fieldArgs) { const $col = new PgConditionStep($parent); $col.extensions.pgFilterAttribute = { codec: TYPES.bigint, - expression: aggregateSpec.sqlAggregateWrap(sql`${$col.alias}.${sql.identifier("user_id")}`, spec_upvote.attributes.user_id.codec) + expression: aggregateSpec.sqlAggregateWrap(sql`${$col.alias}.${sql.identifier("created_at")}`, spec_upvote.attributes.created_at.codec) }; fieldArgs.apply($col); } }, - createdAt: { + updatedAt: { applyPlan($parent, fieldArgs) { const $col = new PgConditionStep($parent); $col.extensions.pgFilterAttribute = { codec: TYPES.bigint, - expression: aggregateSpec.sqlAggregateWrap(sql`${$col.alias}.${sql.identifier("created_at")}`, spec_upvote.attributes.created_at.codec) + expression: aggregateSpec.sqlAggregateWrap(sql`${$col.alias}.${sql.identifier("updated_at")}`, spec_upvote.attributes.updated_at.codec) }; fieldArgs.apply($col); } }, - updatedAt: { + userId: { applyPlan($parent, fieldArgs) { const $col = new PgConditionStep($parent); $col.extensions.pgFilterAttribute = { codec: TYPES.bigint, - expression: aggregateSpec.sqlAggregateWrap(sql`${$col.alias}.${sql.identifier("updated_at")}`, spec_upvote.attributes.updated_at.codec) + expression: aggregateSpec.sqlAggregateWrap(sql`${$col.alias}.${sql.identifier("user_id")}`, spec_upvote.attributes.user_id.codec) }; fieldArgs.apply($col); } @@ -15493,7 +15493,7 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; } }, UserOrganizationFilter: { - userId: { + organizationId: { applyPlan($where, fieldArgs) { const $raw = fieldArgs.getRaw(); if ($raw.evalIs(void 0)) return; @@ -15504,7 +15504,7 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; fieldArgs.apply($col); } }, - organizationId: { + createdAt: { applyPlan($where, fieldArgs) { const $raw = fieldArgs.getRaw(); if ($raw.evalIs(void 0)) return; @@ -15515,7 +15515,7 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; fieldArgs.apply($col); } }, - createdAt: { + userId: { applyPlan($where, fieldArgs) { const $raw = fieldArgs.getRaw(); if ($raw.evalIs(void 0)) return; @@ -16227,32 +16227,32 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; } }, UserOrganizationDistinctCountAggregateFilter: { - userId: { + organizationId: { applyPlan($parent, fieldArgs) { const $col = new PgConditionStep($parent); $col.extensions.pgFilterAttribute = { codec: TYPES.bigint, - expression: aggregateSpec.sqlAggregateWrap(sql`${$col.alias}.${sql.identifier("user_id")}`, spec_userOrganization.attributes.user_id.codec) + expression: aggregateSpec.sqlAggregateWrap(sql`${$col.alias}.${sql.identifier("organization_id")}`, spec_userOrganization.attributes.organization_id.codec) }; fieldArgs.apply($col); } }, - organizationId: { + createdAt: { applyPlan($parent, fieldArgs) { const $col = new PgConditionStep($parent); $col.extensions.pgFilterAttribute = { codec: TYPES.bigint, - expression: aggregateSpec.sqlAggregateWrap(sql`${$col.alias}.${sql.identifier("organization_id")}`, spec_userOrganization.attributes.organization_id.codec) + expression: aggregateSpec.sqlAggregateWrap(sql`${$col.alias}.${sql.identifier("created_at")}`, spec_userOrganization.attributes.created_at.codec) }; fieldArgs.apply($col); } }, - createdAt: { + userId: { applyPlan($parent, fieldArgs) { const $col = new PgConditionStep($parent); $col.extensions.pgFilterAttribute = { codec: TYPES.bigint, - expression: aggregateSpec.sqlAggregateWrap(sql`${$col.alias}.${sql.identifier("created_at")}`, spec_userOrganization.attributes.created_at.codec) + expression: aggregateSpec.sqlAggregateWrap(sql`${$col.alias}.${sql.identifier("user_id")}`, spec_userOrganization.attributes.user_id.codec) }; fieldArgs.apply($col); } @@ -16378,7 +16378,7 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; fieldArgs.apply($col); } }, - userId: { + createdAt: { applyPlan($where, fieldArgs) { const $raw = fieldArgs.getRaw(); if ($raw.evalIs(void 0)) return; @@ -16389,7 +16389,7 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; fieldArgs.apply($col); } }, - createdAt: { + updatedAt: { applyPlan($where, fieldArgs) { const $raw = fieldArgs.getRaw(); if ($raw.evalIs(void 0)) return; @@ -16400,7 +16400,7 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; fieldArgs.apply($col); } }, - updatedAt: { + userId: { applyPlan($where, fieldArgs) { const $raw = fieldArgs.getRaw(); if ($raw.evalIs(void 0)) return; @@ -16505,32 +16505,32 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; fieldArgs.apply($col); } }, - userId: { + createdAt: { applyPlan($parent, fieldArgs) { const $col = new PgConditionStep($parent); $col.extensions.pgFilterAttribute = { codec: TYPES.bigint, - expression: aggregateSpec.sqlAggregateWrap(sql`${$col.alias}.${sql.identifier("user_id")}`, spec_comment.attributes.user_id.codec) + expression: aggregateSpec.sqlAggregateWrap(sql`${$col.alias}.${sql.identifier("created_at")}`, spec_comment.attributes.created_at.codec) }; fieldArgs.apply($col); } }, - createdAt: { + updatedAt: { applyPlan($parent, fieldArgs) { const $col = new PgConditionStep($parent); $col.extensions.pgFilterAttribute = { codec: TYPES.bigint, - expression: aggregateSpec.sqlAggregateWrap(sql`${$col.alias}.${sql.identifier("created_at")}`, spec_comment.attributes.created_at.codec) + expression: aggregateSpec.sqlAggregateWrap(sql`${$col.alias}.${sql.identifier("updated_at")}`, spec_comment.attributes.updated_at.codec) }; fieldArgs.apply($col); } }, - updatedAt: { + userId: { applyPlan($parent, fieldArgs) { const $col = new PgConditionStep($parent); $col.extensions.pgFilterAttribute = { codec: TYPES.bigint, - expression: aggregateSpec.sqlAggregateWrap(sql`${$col.alias}.${sql.identifier("updated_at")}`, spec_comment.attributes.updated_at.codec) + expression: aggregateSpec.sqlAggregateWrap(sql`${$col.alias}.${sql.identifier("user_id")}`, spec_comment.attributes.user_id.codec) }; fieldArgs.apply($col); } @@ -16645,7 +16645,7 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; fieldArgs.apply($col); } }, - userId: { + createdAt: { applyPlan($where, fieldArgs) { const $raw = fieldArgs.getRaw(); if ($raw.evalIs(void 0)) return; @@ -16656,7 +16656,7 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; fieldArgs.apply($col); } }, - createdAt: { + updatedAt: { applyPlan($where, fieldArgs) { const $raw = fieldArgs.getRaw(); if ($raw.evalIs(void 0)) return; @@ -16667,7 +16667,7 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; fieldArgs.apply($col); } }, - updatedAt: { + userId: { applyPlan($where, fieldArgs) { const $raw = fieldArgs.getRaw(); if ($raw.evalIs(void 0)) return; @@ -16762,32 +16762,32 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; fieldArgs.apply($col); } }, - userId: { + createdAt: { applyPlan($parent, fieldArgs) { const $col = new PgConditionStep($parent); $col.extensions.pgFilterAttribute = { codec: TYPES.bigint, - expression: aggregateSpec.sqlAggregateWrap(sql`${$col.alias}.${sql.identifier("user_id")}`, spec_downvote.attributes.user_id.codec) + expression: aggregateSpec.sqlAggregateWrap(sql`${$col.alias}.${sql.identifier("created_at")}`, spec_downvote.attributes.created_at.codec) }; fieldArgs.apply($col); } }, - createdAt: { + updatedAt: { applyPlan($parent, fieldArgs) { const $col = new PgConditionStep($parent); $col.extensions.pgFilterAttribute = { codec: TYPES.bigint, - expression: aggregateSpec.sqlAggregateWrap(sql`${$col.alias}.${sql.identifier("created_at")}`, spec_downvote.attributes.created_at.codec) + expression: aggregateSpec.sqlAggregateWrap(sql`${$col.alias}.${sql.identifier("updated_at")}`, spec_downvote.attributes.updated_at.codec) }; fieldArgs.apply($col); } }, - updatedAt: { + userId: { applyPlan($parent, fieldArgs) { const $col = new PgConditionStep($parent); $col.extensions.pgFilterAttribute = { codec: TYPES.bigint, - expression: aggregateSpec.sqlAggregateWrap(sql`${$col.alias}.${sql.identifier("updated_at")}`, spec_downvote.attributes.updated_at.codec) + expression: aggregateSpec.sqlAggregateWrap(sql`${$col.alias}.${sql.identifier("user_id")}`, spec_downvote.attributes.user_id.codec) }; fieldArgs.apply($col); } @@ -17022,15 +17022,15 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; postId($record) { return $record.get("post_id"); }, - userId($record) { - return $record.get("user_id"); - }, createdAt($record) { return $record.get("created_at"); }, updatedAt($record) { return $record.get("updated_at"); }, + userId($record) { + return $record.get("user_id"); + }, post($record) { return pgResource_postPgResource.get({ id: $record.get("post_id") @@ -17038,7 +17038,7 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }, user($record) { return pgResource_userPgResource.get({ - id: $record.get("user_id") + hidra_id: $record.get("user_id") }); } }, @@ -17087,11 +17087,6 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; sqlAggregate = aggregateSpec.sqlAggregateWrap(sqlAttribute, TYPES.uuid); return $pgSelectSingle.select(sqlAggregate, TYPES.bigint); }, - userId($pgSelectSingle) { - const sqlAttribute = sql.fragment`${$pgSelectSingle.getClassStep().alias}.${sql.identifier("user_id")}`, - sqlAggregate = aggregateSpec.sqlAggregateWrap(sqlAttribute, TYPES.uuid); - return $pgSelectSingle.select(sqlAggregate, TYPES.bigint); - }, createdAt($pgSelectSingle) { const sqlAttribute = sql.fragment`${$pgSelectSingle.getClassStep().alias}.${sql.identifier("created_at")}`, sqlAggregate = aggregateSpec.sqlAggregateWrap(sqlAttribute, TYPES.timestamptz); @@ -17101,31 +17096,36 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; const sqlAttribute = sql.fragment`${$pgSelectSingle.getClassStep().alias}.${sql.identifier("updated_at")}`, sqlAggregate = aggregateSpec.sqlAggregateWrap(sqlAttribute, TYPES.timestamptz); return $pgSelectSingle.select(sqlAggregate, TYPES.bigint); + }, + userId($pgSelectSingle) { + const sqlAttribute = sql.fragment`${$pgSelectSingle.getClassStep().alias}.${sql.identifier("user_id")}`, + sqlAggregate = aggregateSpec.sqlAggregateWrap(sqlAttribute, TYPES.uuid); + return $pgSelectSingle.select(sqlAggregate, TYPES.bigint); } }, UpvoteGroupBy: { POST_ID: { applyPlan: UpvoteGroupBy_extensions_grafast_applyPlan }, - USER_ID: { + CREATED_AT: { applyPlan: UpvoteGroupBy_extensions_grafast_applyPlan2 }, - CREATED_AT: { + CREATED_AT_TRUNCATED_TO_HOUR: { applyPlan: UpvoteGroupBy_extensions_grafast_applyPlan3 }, - CREATED_AT_TRUNCATED_TO_HOUR: { + CREATED_AT_TRUNCATED_TO_DAY: { applyPlan: UpvoteGroupBy_extensions_grafast_applyPlan4 }, - CREATED_AT_TRUNCATED_TO_DAY: { + UPDATED_AT: { applyPlan: UpvoteGroupBy_extensions_grafast_applyPlan5 }, - UPDATED_AT: { + UPDATED_AT_TRUNCATED_TO_HOUR: { applyPlan: UpvoteGroupBy_extensions_grafast_applyPlan6 }, - UPDATED_AT_TRUNCATED_TO_HOUR: { + UPDATED_AT_TRUNCATED_TO_DAY: { applyPlan: UpvoteGroupBy_extensions_grafast_applyPlan7 }, - UPDATED_AT_TRUNCATED_TO_DAY: { + USER_ID: { applyPlan: UpvoteGroupBy_extensions_grafast_applyPlan8 } }, @@ -17459,11 +17459,11 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; if (true) plan.setOrderIsUnique(); } }, - USER_ID_ASC: { + CREATED_AT_ASC: { applyPlan(plan) { if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); plan.orderBy({ - attribute: "user_id", + attribute: "created_at", direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" @@ -17472,11 +17472,11 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; if (false) plan.setOrderIsUnique(); } }, - USER_ID_DESC: { + CREATED_AT_DESC: { applyPlan(plan) { if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); plan.orderBy({ - attribute: "user_id", + attribute: "created_at", direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" @@ -17485,11 +17485,11 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; if (false) plan.setOrderIsUnique(); } }, - CREATED_AT_ASC: { + UPDATED_AT_ASC: { applyPlan(plan) { if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); plan.orderBy({ - attribute: "created_at", + attribute: "updated_at", direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" @@ -17498,11 +17498,11 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; if (false) plan.setOrderIsUnique(); } }, - CREATED_AT_DESC: { + UPDATED_AT_DESC: { applyPlan(plan) { if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); plan.orderBy({ - attribute: "created_at", + attribute: "updated_at", direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" @@ -17511,11 +17511,11 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; if (false) plan.setOrderIsUnique(); } }, - UPDATED_AT_ASC: { + USER_ID_ASC: { applyPlan(plan) { if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); plan.orderBy({ - attribute: "updated_at", + attribute: "user_id", direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" @@ -17524,11 +17524,11 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; if (false) plan.setOrderIsUnique(); } }, - UPDATED_AT_DESC: { + USER_ID_DESC: { applyPlan(plan) { if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); plan.orderBy({ - attribute: "updated_at", + attribute: "user_id", direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" @@ -17577,57 +17577,57 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - userId: { + createdAt: { applyPlan($condition, val) { if (val.getRaw().evalIs(null)) $condition.where({ type: "attribute", - attribute: "user_id", + attribute: "created_at", callback(expression) { return sql`${expression} is null`; } });else $condition.where({ type: "attribute", - attribute: "user_id", + attribute: "created_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_upvote.attributes.user_id.codec)}`; + return sql`${expression} = ${$condition.placeholder(val.get(), spec_upvote.attributes.created_at.codec)}`; } }); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - createdAt: { + updatedAt: { applyPlan($condition, val) { if (val.getRaw().evalIs(null)) $condition.where({ type: "attribute", - attribute: "created_at", + attribute: "updated_at", callback(expression) { return sql`${expression} is null`; } });else $condition.where({ type: "attribute", - attribute: "created_at", + attribute: "updated_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_upvote.attributes.created_at.codec)}`; + return sql`${expression} = ${$condition.placeholder(val.get(), spec_upvote.attributes.updated_at.codec)}`; } }); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - updatedAt: { + userId: { applyPlan($condition, val) { if (val.getRaw().evalIs(null)) $condition.where({ type: "attribute", - attribute: "updated_at", + attribute: "user_id", callback(expression) { return sql`${expression} is null`; } });else $condition.where({ type: "attribute", - attribute: "updated_at", + attribute: "user_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_upvote.attributes.updated_at.codec)}`; + return sql`${expression} = ${$condition.placeholder(val.get(), spec_upvote.attributes.user_id.codec)}`; } }); }, @@ -17700,11 +17700,6 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; } }, UserOrganizationDistinctCountAggregates: { - userId($pgSelectSingle) { - const sqlAttribute = sql.fragment`${$pgSelectSingle.getClassStep().alias}.${sql.identifier("user_id")}`, - sqlAggregate = aggregateSpec.sqlAggregateWrap(sqlAttribute, TYPES.uuid); - return $pgSelectSingle.select(sqlAggregate, TYPES.bigint); - }, organizationId($pgSelectSingle) { const sqlAttribute = sql.fragment`${$pgSelectSingle.getClassStep().alias}.${sql.identifier("organization_id")}`, sqlAggregate = aggregateSpec.sqlAggregateWrap(sqlAttribute, TYPES.uuid); @@ -17714,22 +17709,27 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; const sqlAttribute = sql.fragment`${$pgSelectSingle.getClassStep().alias}.${sql.identifier("created_at")}`, sqlAggregate = aggregateSpec.sqlAggregateWrap(sqlAttribute, TYPES.timestamptz); return $pgSelectSingle.select(sqlAggregate, TYPES.bigint); + }, + userId($pgSelectSingle) { + const sqlAttribute = sql.fragment`${$pgSelectSingle.getClassStep().alias}.${sql.identifier("user_id")}`, + sqlAggregate = aggregateSpec.sqlAggregateWrap(sqlAttribute, TYPES.uuid); + return $pgSelectSingle.select(sqlAggregate, TYPES.bigint); } }, UserOrganizationGroupBy: { - USER_ID: { + ORGANIZATION_ID: { applyPlan: UserOrganizationGroupBy_extensions_grafast_applyPlan }, - ORGANIZATION_ID: { + CREATED_AT: { applyPlan: UserOrganizationGroupBy_extensions_grafast_applyPlan2 }, - CREATED_AT: { + CREATED_AT_TRUNCATED_TO_HOUR: { applyPlan: UserOrganizationGroupBy_extensions_grafast_applyPlan3 }, - CREATED_AT_TRUNCATED_TO_HOUR: { + CREATED_AT_TRUNCATED_TO_DAY: { applyPlan: UserOrganizationGroupBy_extensions_grafast_applyPlan4 }, - CREATED_AT_TRUNCATED_TO_DAY: { + USER_ID: { applyPlan: UserOrganizationGroupBy_extensions_grafast_applyPlan5 } }, @@ -17878,37 +17878,37 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; NATURAL: { applyPlan() {} }, - USER_ID_ASC: { + ORGANIZATION_ID_ASC: { applyPlan(plan) { if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); plan.orderBy({ - attribute: "user_id", + attribute: "organization_id", direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); - if (true) plan.setOrderIsUnique(); + if (false) plan.setOrderIsUnique(); } }, - USER_ID_DESC: { + ORGANIZATION_ID_DESC: { applyPlan(plan) { if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); plan.orderBy({ - attribute: "user_id", + attribute: "organization_id", direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); - if (true) plan.setOrderIsUnique(); + if (false) plan.setOrderIsUnique(); } }, - ORGANIZATION_ID_ASC: { + CREATED_AT_ASC: { applyPlan(plan) { if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); plan.orderBy({ - attribute: "organization_id", + attribute: "created_at", direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" @@ -17917,11 +17917,11 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; if (false) plan.setOrderIsUnique(); } }, - ORGANIZATION_ID_DESC: { + CREATED_AT_DESC: { applyPlan(plan) { if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); plan.orderBy({ - attribute: "organization_id", + attribute: "created_at", direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" @@ -17930,85 +17930,85 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; if (false) plan.setOrderIsUnique(); } }, - CREATED_AT_ASC: { + USER_ID_ASC: { applyPlan(plan) { if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); plan.orderBy({ - attribute: "created_at", + attribute: "user_id", direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); - if (false) plan.setOrderIsUnique(); + if (true) plan.setOrderIsUnique(); } }, - CREATED_AT_DESC: { + USER_ID_DESC: { applyPlan(plan) { if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); plan.orderBy({ - attribute: "created_at", + attribute: "user_id", direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); - if (false) plan.setOrderIsUnique(); + if (true) plan.setOrderIsUnique(); } } }, UserOrganizationCondition: { - userId: { + organizationId: { applyPlan($condition, val) { if (val.getRaw().evalIs(null)) $condition.where({ type: "attribute", - attribute: "user_id", + attribute: "organization_id", callback(expression) { return sql`${expression} is null`; } });else $condition.where({ type: "attribute", - attribute: "user_id", + attribute: "organization_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_userOrganization.attributes.user_id.codec)}`; + return sql`${expression} = ${$condition.placeholder(val.get(), spec_userOrganization.attributes.organization_id.codec)}`; } }); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - organizationId: { + createdAt: { applyPlan($condition, val) { if (val.getRaw().evalIs(null)) $condition.where({ type: "attribute", - attribute: "organization_id", + attribute: "created_at", callback(expression) { return sql`${expression} is null`; } });else $condition.where({ type: "attribute", - attribute: "organization_id", + attribute: "created_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_userOrganization.attributes.organization_id.codec)}`; + return sql`${expression} = ${$condition.placeholder(val.get(), spec_userOrganization.attributes.created_at.codec)}`; } }); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - createdAt: { + userId: { applyPlan($condition, val) { if (val.getRaw().evalIs(null)) $condition.where({ type: "attribute", - attribute: "created_at", + attribute: "user_id", callback(expression) { return sql`${expression} is null`; } });else $condition.where({ type: "attribute", - attribute: "created_at", + attribute: "user_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_userOrganization.attributes.created_at.codec)}`; + return sql`${expression} = ${$condition.placeholder(val.get(), spec_userOrganization.attributes.user_id.codec)}`; } }); }, @@ -18076,15 +18076,15 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; postId($record) { return $record.get("post_id"); }, - userId($record) { - return $record.get("user_id"); - }, createdAt($record) { return $record.get("created_at"); }, updatedAt($record) { return $record.get("updated_at"); }, + userId($record) { + return $record.get("user_id"); + }, post($record) { return pgResource_postPgResource.get({ id: $record.get("post_id") @@ -18092,7 +18092,7 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }, user($record) { return pgResource_userPgResource.get({ - id: $record.get("user_id") + hidra_id: $record.get("user_id") }); } }, @@ -18131,11 +18131,6 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; sqlAggregate = aggregateSpec.sqlAggregateWrap(sqlAttribute, TYPES.uuid); return $pgSelectSingle.select(sqlAggregate, TYPES.bigint); }, - userId($pgSelectSingle) { - const sqlAttribute = sql.fragment`${$pgSelectSingle.getClassStep().alias}.${sql.identifier("user_id")}`, - sqlAggregate = aggregateSpec.sqlAggregateWrap(sqlAttribute, TYPES.uuid); - return $pgSelectSingle.select(sqlAggregate, TYPES.bigint); - }, createdAt($pgSelectSingle) { const sqlAttribute = sql.fragment`${$pgSelectSingle.getClassStep().alias}.${sql.identifier("created_at")}`, sqlAggregate = aggregateSpec.sqlAggregateWrap(sqlAttribute, TYPES.timestamptz); @@ -18145,6 +18140,11 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; const sqlAttribute = sql.fragment`${$pgSelectSingle.getClassStep().alias}.${sql.identifier("updated_at")}`, sqlAggregate = aggregateSpec.sqlAggregateWrap(sqlAttribute, TYPES.timestamptz); return $pgSelectSingle.select(sqlAggregate, TYPES.bigint); + }, + userId($pgSelectSingle) { + const sqlAttribute = sql.fragment`${$pgSelectSingle.getClassStep().alias}.${sql.identifier("user_id")}`, + sqlAggregate = aggregateSpec.sqlAggregateWrap(sqlAttribute, TYPES.uuid); + return $pgSelectSingle.select(sqlAggregate, TYPES.bigint); } }, CommentGroupBy: { @@ -18154,25 +18154,25 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; POST_ID: { applyPlan: CommentGroupBy_extensions_grafast_applyPlan2 }, - USER_ID: { + CREATED_AT: { applyPlan: CommentGroupBy_extensions_grafast_applyPlan3 }, - CREATED_AT: { + CREATED_AT_TRUNCATED_TO_HOUR: { applyPlan: CommentGroupBy_extensions_grafast_applyPlan4 }, - CREATED_AT_TRUNCATED_TO_HOUR: { + CREATED_AT_TRUNCATED_TO_DAY: { applyPlan: CommentGroupBy_extensions_grafast_applyPlan5 }, - CREATED_AT_TRUNCATED_TO_DAY: { + UPDATED_AT: { applyPlan: CommentGroupBy_extensions_grafast_applyPlan6 }, - UPDATED_AT: { + UPDATED_AT_TRUNCATED_TO_HOUR: { applyPlan: CommentGroupBy_extensions_grafast_applyPlan7 }, - UPDATED_AT_TRUNCATED_TO_HOUR: { + UPDATED_AT_TRUNCATED_TO_DAY: { applyPlan: CommentGroupBy_extensions_grafast_applyPlan8 }, - UPDATED_AT_TRUNCATED_TO_DAY: { + USER_ID: { applyPlan: CommentGroupBy_extensions_grafast_applyPlan9 } }, @@ -18494,11 +18494,11 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; if (false) plan.setOrderIsUnique(); } }, - USER_ID_ASC: { + CREATED_AT_ASC: { applyPlan(plan) { if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); plan.orderBy({ - attribute: "user_id", + attribute: "created_at", direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" @@ -18507,11 +18507,11 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; if (false) plan.setOrderIsUnique(); } }, - USER_ID_DESC: { + CREATED_AT_DESC: { applyPlan(plan) { if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); plan.orderBy({ - attribute: "user_id", + attribute: "created_at", direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" @@ -18520,11 +18520,11 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; if (false) plan.setOrderIsUnique(); } }, - CREATED_AT_ASC: { + UPDATED_AT_ASC: { applyPlan(plan) { if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); plan.orderBy({ - attribute: "created_at", + attribute: "updated_at", direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" @@ -18533,11 +18533,11 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; if (false) plan.setOrderIsUnique(); } }, - CREATED_AT_DESC: { + UPDATED_AT_DESC: { applyPlan(plan) { if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); plan.orderBy({ - attribute: "created_at", + attribute: "updated_at", direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" @@ -18546,11 +18546,11 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; if (false) plan.setOrderIsUnique(); } }, - UPDATED_AT_ASC: { + USER_ID_ASC: { applyPlan(plan) { if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); plan.orderBy({ - attribute: "updated_at", + attribute: "user_id", direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" @@ -18559,11 +18559,11 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; if (false) plan.setOrderIsUnique(); } }, - UPDATED_AT_DESC: { + USER_ID_DESC: { applyPlan(plan) { if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); plan.orderBy({ - attribute: "updated_at", + attribute: "user_id", direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" @@ -18631,57 +18631,57 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - userId: { + createdAt: { applyPlan($condition, val) { if (val.getRaw().evalIs(null)) $condition.where({ type: "attribute", - attribute: "user_id", + attribute: "created_at", callback(expression) { return sql`${expression} is null`; } });else $condition.where({ type: "attribute", - attribute: "user_id", + attribute: "created_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_comment.attributes.user_id.codec)}`; + return sql`${expression} = ${$condition.placeholder(val.get(), spec_comment.attributes.created_at.codec)}`; } }); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - createdAt: { + updatedAt: { applyPlan($condition, val) { if (val.getRaw().evalIs(null)) $condition.where({ type: "attribute", - attribute: "created_at", + attribute: "updated_at", callback(expression) { return sql`${expression} is null`; } });else $condition.where({ type: "attribute", - attribute: "created_at", + attribute: "updated_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_comment.attributes.created_at.codec)}`; + return sql`${expression} = ${$condition.placeholder(val.get(), spec_comment.attributes.updated_at.codec)}`; } }); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - updatedAt: { + userId: { applyPlan($condition, val) { if (val.getRaw().evalIs(null)) $condition.where({ type: "attribute", - attribute: "updated_at", + attribute: "user_id", callback(expression) { return sql`${expression} is null`; } });else $condition.where({ type: "attribute", - attribute: "updated_at", + attribute: "user_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_comment.attributes.updated_at.codec)}`; + return sql`${expression} = ${$condition.placeholder(val.get(), spec_comment.attributes.user_id.codec)}`; } }); }, @@ -18746,15 +18746,15 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; postId($record) { return $record.get("post_id"); }, - userId($record) { - return $record.get("user_id"); - }, createdAt($record) { return $record.get("created_at"); }, updatedAt($record) { return $record.get("updated_at"); }, + userId($record) { + return $record.get("user_id"); + }, post($record) { return pgResource_postPgResource.get({ id: $record.get("post_id") @@ -18762,7 +18762,7 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }, user($record) { return pgResource_userPgResource.get({ - id: $record.get("user_id") + hidra_id: $record.get("user_id") }); } }, @@ -18796,11 +18796,6 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; sqlAggregate = aggregateSpec.sqlAggregateWrap(sqlAttribute, TYPES.uuid); return $pgSelectSingle.select(sqlAggregate, TYPES.bigint); }, - userId($pgSelectSingle) { - const sqlAttribute = sql.fragment`${$pgSelectSingle.getClassStep().alias}.${sql.identifier("user_id")}`, - sqlAggregate = aggregateSpec.sqlAggregateWrap(sqlAttribute, TYPES.uuid); - return $pgSelectSingle.select(sqlAggregate, TYPES.bigint); - }, createdAt($pgSelectSingle) { const sqlAttribute = sql.fragment`${$pgSelectSingle.getClassStep().alias}.${sql.identifier("created_at")}`, sqlAggregate = aggregateSpec.sqlAggregateWrap(sqlAttribute, TYPES.timestamptz); @@ -18810,31 +18805,36 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; const sqlAttribute = sql.fragment`${$pgSelectSingle.getClassStep().alias}.${sql.identifier("updated_at")}`, sqlAggregate = aggregateSpec.sqlAggregateWrap(sqlAttribute, TYPES.timestamptz); return $pgSelectSingle.select(sqlAggregate, TYPES.bigint); + }, + userId($pgSelectSingle) { + const sqlAttribute = sql.fragment`${$pgSelectSingle.getClassStep().alias}.${sql.identifier("user_id")}`, + sqlAggregate = aggregateSpec.sqlAggregateWrap(sqlAttribute, TYPES.uuid); + return $pgSelectSingle.select(sqlAggregate, TYPES.bigint); } }, DownvoteGroupBy: { POST_ID: { applyPlan: DownvoteGroupBy_extensions_grafast_applyPlan }, - USER_ID: { + CREATED_AT: { applyPlan: DownvoteGroupBy_extensions_grafast_applyPlan2 }, - CREATED_AT: { + CREATED_AT_TRUNCATED_TO_HOUR: { applyPlan: DownvoteGroupBy_extensions_grafast_applyPlan3 }, - CREATED_AT_TRUNCATED_TO_HOUR: { + CREATED_AT_TRUNCATED_TO_DAY: { applyPlan: DownvoteGroupBy_extensions_grafast_applyPlan4 }, - CREATED_AT_TRUNCATED_TO_DAY: { + UPDATED_AT: { applyPlan: DownvoteGroupBy_extensions_grafast_applyPlan5 }, - UPDATED_AT: { + UPDATED_AT_TRUNCATED_TO_HOUR: { applyPlan: DownvoteGroupBy_extensions_grafast_applyPlan6 }, - UPDATED_AT_TRUNCATED_TO_HOUR: { + UPDATED_AT_TRUNCATED_TO_DAY: { applyPlan: DownvoteGroupBy_extensions_grafast_applyPlan7 }, - UPDATED_AT_TRUNCATED_TO_DAY: { + USER_ID: { applyPlan: DownvoteGroupBy_extensions_grafast_applyPlan8 } }, @@ -19130,11 +19130,11 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; if (true) plan.setOrderIsUnique(); } }, - USER_ID_ASC: { + CREATED_AT_ASC: { applyPlan(plan) { if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); plan.orderBy({ - attribute: "user_id", + attribute: "created_at", direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" @@ -19143,11 +19143,11 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; if (false) plan.setOrderIsUnique(); } }, - USER_ID_DESC: { + CREATED_AT_DESC: { applyPlan(plan) { if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); plan.orderBy({ - attribute: "user_id", + attribute: "created_at", direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" @@ -19156,11 +19156,11 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; if (false) plan.setOrderIsUnique(); } }, - CREATED_AT_ASC: { + UPDATED_AT_ASC: { applyPlan(plan) { if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); plan.orderBy({ - attribute: "created_at", + attribute: "updated_at", direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" @@ -19169,11 +19169,11 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; if (false) plan.setOrderIsUnique(); } }, - CREATED_AT_DESC: { + UPDATED_AT_DESC: { applyPlan(plan) { if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); plan.orderBy({ - attribute: "created_at", + attribute: "updated_at", direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" @@ -19182,11 +19182,11 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; if (false) plan.setOrderIsUnique(); } }, - UPDATED_AT_ASC: { + USER_ID_ASC: { applyPlan(plan) { if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); plan.orderBy({ - attribute: "updated_at", + attribute: "user_id", direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" @@ -19195,11 +19195,11 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; if (false) plan.setOrderIsUnique(); } }, - UPDATED_AT_DESC: { + USER_ID_DESC: { applyPlan(plan) { if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); plan.orderBy({ - attribute: "updated_at", + attribute: "user_id", direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" @@ -19248,57 +19248,57 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - userId: { + createdAt: { applyPlan($condition, val) { if (val.getRaw().evalIs(null)) $condition.where({ type: "attribute", - attribute: "user_id", + attribute: "created_at", callback(expression) { return sql`${expression} is null`; } });else $condition.where({ type: "attribute", - attribute: "user_id", + attribute: "created_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_downvote.attributes.user_id.codec)}`; + return sql`${expression} = ${$condition.placeholder(val.get(), spec_downvote.attributes.created_at.codec)}`; } }); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - createdAt: { + updatedAt: { applyPlan($condition, val) { if (val.getRaw().evalIs(null)) $condition.where({ type: "attribute", - attribute: "created_at", + attribute: "updated_at", callback(expression) { return sql`${expression} is null`; } });else $condition.where({ type: "attribute", - attribute: "created_at", + attribute: "updated_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_downvote.attributes.created_at.codec)}`; + return sql`${expression} = ${$condition.placeholder(val.get(), spec_downvote.attributes.updated_at.codec)}`; } }); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - updatedAt: { + userId: { applyPlan($condition, val) { if (val.getRaw().evalIs(null)) $condition.where({ type: "attribute", - attribute: "updated_at", + attribute: "user_id", callback(expression) { return sql`${expression} is null`; } });else $condition.where({ type: "attribute", - attribute: "updated_at", + attribute: "user_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_downvote.attributes.updated_at.codec)}`; + return sql`${expression} = ${$condition.placeholder(val.get(), spec_downvote.attributes.user_id.codec)}`; } }); }, @@ -19346,11 +19346,6 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; sqlAggregate = aggregateSpec.sqlAggregateWrap(sqlAttribute, TYPES.uuid); return $pgSelectSingle.select(sqlAggregate, TYPES.bigint); }, - userId($pgSelectSingle) { - const sqlAttribute = sql.fragment`${$pgSelectSingle.getClassStep().alias}.${sql.identifier("user_id")}`, - sqlAggregate = aggregateSpec.sqlAggregateWrap(sqlAttribute, TYPES.uuid); - return $pgSelectSingle.select(sqlAggregate, TYPES.bigint); - }, createdAt($pgSelectSingle) { const sqlAttribute = sql.fragment`${$pgSelectSingle.getClassStep().alias}.${sql.identifier("created_at")}`, sqlAggregate = aggregateSpec.sqlAggregateWrap(sqlAttribute, TYPES.timestamptz); @@ -19360,6 +19355,11 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; const sqlAttribute = sql.fragment`${$pgSelectSingle.getClassStep().alias}.${sql.identifier("updated_at")}`, sqlAggregate = aggregateSpec.sqlAggregateWrap(sqlAttribute, TYPES.timestamptz); return $pgSelectSingle.select(sqlAggregate, TYPES.bigint); + }, + userId($pgSelectSingle) { + const sqlAttribute = sql.fragment`${$pgSelectSingle.getClassStep().alias}.${sql.identifier("user_id")}`, + sqlAggregate = aggregateSpec.sqlAggregateWrap(sqlAttribute, TYPES.uuid); + return $pgSelectSingle.select(sqlAggregate, TYPES.bigint); } }, PostGroupBy: { @@ -19372,25 +19372,25 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; PROJECT_ID: { applyPlan: PostGroupBy_extensions_grafast_applyPlan3 }, - USER_ID: { + CREATED_AT: { applyPlan: PostGroupBy_extensions_grafast_applyPlan4 }, - CREATED_AT: { + CREATED_AT_TRUNCATED_TO_HOUR: { applyPlan: PostGroupBy_extensions_grafast_applyPlan5 }, - CREATED_AT_TRUNCATED_TO_HOUR: { + CREATED_AT_TRUNCATED_TO_DAY: { applyPlan: PostGroupBy_extensions_grafast_applyPlan6 }, - CREATED_AT_TRUNCATED_TO_DAY: { + UPDATED_AT: { applyPlan: PostGroupBy_extensions_grafast_applyPlan7 }, - UPDATED_AT: { + UPDATED_AT_TRUNCATED_TO_HOUR: { applyPlan: PostGroupBy_extensions_grafast_applyPlan8 }, - UPDATED_AT_TRUNCATED_TO_HOUR: { + UPDATED_AT_TRUNCATED_TO_DAY: { applyPlan: PostGroupBy_extensions_grafast_applyPlan9 }, - UPDATED_AT_TRUNCATED_TO_DAY: { + USER_ID: { applyPlan: PostGroupBy_extensions_grafast_applyPlan10 } }, @@ -20355,7 +20355,7 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); } }, - POSTS_DISTINCT_COUNT_USER_ID_ASC: { + POSTS_DISTINCT_COUNT_CREATED_AT_ASC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -20367,17 +20367,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_postPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_post.attributes.user_id.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_post.attributes.created_at.codec)} from ${pgResource_postPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_post.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_post.attributes.user_id.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_post.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_post.attributes.created_at.codec, direction: "ASC" }); } }, - POSTS_DISTINCT_COUNT_USER_ID_DESC: { + POSTS_DISTINCT_COUNT_CREATED_AT_DESC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -20389,17 +20389,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_postPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_post.attributes.user_id.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_post.attributes.created_at.codec)} from ${pgResource_postPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_post.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_post.attributes.user_id.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_post.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_post.attributes.created_at.codec, direction: "DESC" }); } }, - POSTS_DISTINCT_COUNT_CREATED_AT_ASC: { + POSTS_DISTINCT_COUNT_UPDATED_AT_ASC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -20411,17 +20411,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_postPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_post.attributes.created_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("updated_at")}`, spec_post.attributes.updated_at.codec)} from ${pgResource_postPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_post.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_post.attributes.created_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_post.attributes.updated_at.codec)) !== null && _b !== void 0 ? _b : spec_post.attributes.updated_at.codec, direction: "ASC" }); } }, - POSTS_DISTINCT_COUNT_CREATED_AT_DESC: { + POSTS_DISTINCT_COUNT_UPDATED_AT_DESC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -20433,17 +20433,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_postPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_post.attributes.created_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("updated_at")}`, spec_post.attributes.updated_at.codec)} from ${pgResource_postPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_post.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_post.attributes.created_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_post.attributes.updated_at.codec)) !== null && _b !== void 0 ? _b : spec_post.attributes.updated_at.codec, direction: "DESC" }); } }, - POSTS_DISTINCT_COUNT_UPDATED_AT_ASC: { + POSTS_DISTINCT_COUNT_USER_ID_ASC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -20455,17 +20455,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_postPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("updated_at")}`, spec_post.attributes.updated_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_post.attributes.user_id.codec)} from ${pgResource_postPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_post.attributes.updated_at.codec)) !== null && _b !== void 0 ? _b : spec_post.attributes.updated_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_post.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_post.attributes.user_id.codec, direction: "ASC" }); } }, - POSTS_DISTINCT_COUNT_UPDATED_AT_DESC: { + POSTS_DISTINCT_COUNT_USER_ID_DESC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -20477,12 +20477,12 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_postPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("updated_at")}`, spec_post.attributes.updated_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_post.attributes.user_id.codec)} from ${pgResource_postPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_post.attributes.updated_at.codec)) !== null && _b !== void 0 ? _b : spec_post.attributes.updated_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_post.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_post.attributes.user_id.codec, direction: "DESC" }); } @@ -21555,7 +21555,7 @@ where ${sql.parens(sql.join(conditions.map(c => sql.parens(c)), " AND "))}`})`; }); } }, - USER_ORGANIZATIONS_DISTINCT_COUNT_USER_ID_ASC: { + USER_ORGANIZATIONS_DISTINCT_COUNT_ORGANIZATION_ID_ASC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -21567,17 +21567,17 @@ where ${sql.parens(sql.join(conditions.map(c => sql.parens(c)), " AND "))}`})`; }); if (typeof resource_user_organizationPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_userOrganization.attributes.user_id.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("organization_id")}`, spec_userOrganization.attributes.organization_id.codec)} from ${resource_user_organizationPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_userOrganization.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_userOrganization.attributes.user_id.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_userOrganization.attributes.organization_id.codec)) !== null && _b !== void 0 ? _b : spec_userOrganization.attributes.organization_id.codec, direction: "ASC" }); } }, - USER_ORGANIZATIONS_DISTINCT_COUNT_USER_ID_DESC: { + USER_ORGANIZATIONS_DISTINCT_COUNT_ORGANIZATION_ID_DESC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -21589,17 +21589,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof resource_user_organizationPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_userOrganization.attributes.user_id.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("organization_id")}`, spec_userOrganization.attributes.organization_id.codec)} from ${resource_user_organizationPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_userOrganization.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_userOrganization.attributes.user_id.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_userOrganization.attributes.organization_id.codec)) !== null && _b !== void 0 ? _b : spec_userOrganization.attributes.organization_id.codec, direction: "DESC" }); } }, - USER_ORGANIZATIONS_DISTINCT_COUNT_ORGANIZATION_ID_ASC: { + USER_ORGANIZATIONS_DISTINCT_COUNT_CREATED_AT_ASC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -21611,17 +21611,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof resource_user_organizationPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("organization_id")}`, spec_userOrganization.attributes.organization_id.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_userOrganization.attributes.created_at.codec)} from ${resource_user_organizationPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_userOrganization.attributes.organization_id.codec)) !== null && _b !== void 0 ? _b : spec_userOrganization.attributes.organization_id.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_userOrganization.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_userOrganization.attributes.created_at.codec, direction: "ASC" }); } }, - USER_ORGANIZATIONS_DISTINCT_COUNT_ORGANIZATION_ID_DESC: { + USER_ORGANIZATIONS_DISTINCT_COUNT_CREATED_AT_DESC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -21633,17 +21633,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof resource_user_organizationPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("organization_id")}`, spec_userOrganization.attributes.organization_id.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_userOrganization.attributes.created_at.codec)} from ${resource_user_organizationPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_userOrganization.attributes.organization_id.codec)) !== null && _b !== void 0 ? _b : spec_userOrganization.attributes.organization_id.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_userOrganization.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_userOrganization.attributes.created_at.codec, direction: "DESC" }); } }, - USER_ORGANIZATIONS_DISTINCT_COUNT_CREATED_AT_ASC: { + USER_ORGANIZATIONS_DISTINCT_COUNT_USER_ID_ASC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -21655,17 +21655,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof resource_user_organizationPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_userOrganization.attributes.created_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_userOrganization.attributes.user_id.codec)} from ${resource_user_organizationPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_userOrganization.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_userOrganization.attributes.created_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_userOrganization.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_userOrganization.attributes.user_id.codec, direction: "ASC" }); } }, - USER_ORGANIZATIONS_DISTINCT_COUNT_CREATED_AT_DESC: { + USER_ORGANIZATIONS_DISTINCT_COUNT_USER_ID_DESC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -21677,12 +21677,12 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof resource_user_organizationPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_userOrganization.attributes.created_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_userOrganization.attributes.user_id.codec)} from ${resource_user_organizationPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_userOrganization.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_userOrganization.attributes.created_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_userOrganization.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_userOrganization.attributes.user_id.codec, direction: "DESC" }); } @@ -22550,7 +22550,7 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); } }, - POSTS_DISTINCT_COUNT_USER_ID_ASC: { + POSTS_DISTINCT_COUNT_CREATED_AT_ASC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -22562,17 +22562,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_postPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_post.attributes.user_id.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_post.attributes.created_at.codec)} from ${pgResource_postPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_post.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_post.attributes.user_id.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_post.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_post.attributes.created_at.codec, direction: "ASC" }); } }, - POSTS_DISTINCT_COUNT_USER_ID_DESC: { + POSTS_DISTINCT_COUNT_CREATED_AT_DESC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -22584,17 +22584,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_postPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_post.attributes.user_id.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_post.attributes.created_at.codec)} from ${pgResource_postPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_post.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_post.attributes.user_id.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_post.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_post.attributes.created_at.codec, direction: "DESC" }); } }, - POSTS_DISTINCT_COUNT_CREATED_AT_ASC: { + POSTS_DISTINCT_COUNT_UPDATED_AT_ASC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -22606,17 +22606,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_postPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_post.attributes.created_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("updated_at")}`, spec_post.attributes.updated_at.codec)} from ${pgResource_postPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_post.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_post.attributes.created_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_post.attributes.updated_at.codec)) !== null && _b !== void 0 ? _b : spec_post.attributes.updated_at.codec, direction: "ASC" }); } }, - POSTS_DISTINCT_COUNT_CREATED_AT_DESC: { + POSTS_DISTINCT_COUNT_UPDATED_AT_DESC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -22628,17 +22628,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_postPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_post.attributes.created_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("updated_at")}`, spec_post.attributes.updated_at.codec)} from ${pgResource_postPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_post.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_post.attributes.created_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_post.attributes.updated_at.codec)) !== null && _b !== void 0 ? _b : spec_post.attributes.updated_at.codec, direction: "DESC" }); } }, - POSTS_DISTINCT_COUNT_UPDATED_AT_ASC: { + POSTS_DISTINCT_COUNT_USER_ID_ASC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -22650,17 +22650,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_postPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("updated_at")}`, spec_post.attributes.updated_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_post.attributes.user_id.codec)} from ${pgResource_postPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_post.attributes.updated_at.codec)) !== null && _b !== void 0 ? _b : spec_post.attributes.updated_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_post.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_post.attributes.user_id.codec, direction: "ASC" }); } }, - POSTS_DISTINCT_COUNT_UPDATED_AT_DESC: { + POSTS_DISTINCT_COUNT_USER_ID_DESC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -22672,12 +22672,12 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_postPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("updated_at")}`, spec_post.attributes.updated_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_post.attributes.user_id.codec)} from ${pgResource_postPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_post.attributes.updated_at.codec)) !== null && _b !== void 0 ? _b : spec_post.attributes.updated_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_post.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_post.attributes.user_id.codec, direction: "DESC" }); } @@ -22810,7 +22810,7 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); } }, - UPVOTES_DISTINCT_COUNT_USER_ID_ASC: { + UPVOTES_DISTINCT_COUNT_CREATED_AT_ASC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -22822,17 +22822,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_upvotePgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_upvote.attributes.user_id.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_upvote.attributes.created_at.codec)} from ${pgResource_upvotePgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_upvote.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_upvote.attributes.user_id.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_upvote.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_upvote.attributes.created_at.codec, direction: "ASC" }); } }, - UPVOTES_DISTINCT_COUNT_USER_ID_DESC: { + UPVOTES_DISTINCT_COUNT_CREATED_AT_DESC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -22844,17 +22844,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_upvotePgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_upvote.attributes.user_id.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_upvote.attributes.created_at.codec)} from ${pgResource_upvotePgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_upvote.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_upvote.attributes.user_id.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_upvote.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_upvote.attributes.created_at.codec, direction: "DESC" }); } }, - UPVOTES_DISTINCT_COUNT_CREATED_AT_ASC: { + UPVOTES_DISTINCT_COUNT_UPDATED_AT_ASC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -22866,17 +22866,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_upvotePgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_upvote.attributes.created_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("updated_at")}`, spec_upvote.attributes.updated_at.codec)} from ${pgResource_upvotePgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_upvote.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_upvote.attributes.created_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_upvote.attributes.updated_at.codec)) !== null && _b !== void 0 ? _b : spec_upvote.attributes.updated_at.codec, direction: "ASC" }); } }, - UPVOTES_DISTINCT_COUNT_CREATED_AT_DESC: { + UPVOTES_DISTINCT_COUNT_UPDATED_AT_DESC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -22888,17 +22888,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_upvotePgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_upvote.attributes.created_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("updated_at")}`, spec_upvote.attributes.updated_at.codec)} from ${pgResource_upvotePgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_upvote.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_upvote.attributes.created_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_upvote.attributes.updated_at.codec)) !== null && _b !== void 0 ? _b : spec_upvote.attributes.updated_at.codec, direction: "DESC" }); } }, - UPVOTES_DISTINCT_COUNT_UPDATED_AT_ASC: { + UPVOTES_DISTINCT_COUNT_USER_ID_ASC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -22910,17 +22910,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_upvotePgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("updated_at")}`, spec_upvote.attributes.updated_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_upvote.attributes.user_id.codec)} from ${pgResource_upvotePgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_upvote.attributes.updated_at.codec)) !== null && _b !== void 0 ? _b : spec_upvote.attributes.updated_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_upvote.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_upvote.attributes.user_id.codec, direction: "ASC" }); } }, - UPVOTES_DISTINCT_COUNT_UPDATED_AT_DESC: { + UPVOTES_DISTINCT_COUNT_USER_ID_DESC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -22932,12 +22932,12 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_upvotePgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("updated_at")}`, spec_upvote.attributes.updated_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_upvote.attributes.user_id.codec)} from ${pgResource_upvotePgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_upvote.attributes.updated_at.codec)) !== null && _b !== void 0 ? _b : spec_upvote.attributes.updated_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_upvote.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_upvote.attributes.user_id.codec, direction: "DESC" }); } @@ -22982,7 +22982,7 @@ where ${sql.parens(sql.join(conditions.map(c => sql.parens(c)), " AND "))}`})`; }); } }, - USER_ORGANIZATIONS_DISTINCT_COUNT_USER_ID_ASC: { + USER_ORGANIZATIONS_DISTINCT_COUNT_ORGANIZATION_ID_ASC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -22994,17 +22994,17 @@ where ${sql.parens(sql.join(conditions.map(c => sql.parens(c)), " AND "))}`})`; }); if (typeof resource_user_organizationPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_userOrganization.attributes.user_id.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("organization_id")}`, spec_userOrganization.attributes.organization_id.codec)} from ${resource_user_organizationPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_userOrganization.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_userOrganization.attributes.user_id.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_userOrganization.attributes.organization_id.codec)) !== null && _b !== void 0 ? _b : spec_userOrganization.attributes.organization_id.codec, direction: "ASC" }); } }, - USER_ORGANIZATIONS_DISTINCT_COUNT_USER_ID_DESC: { + USER_ORGANIZATIONS_DISTINCT_COUNT_ORGANIZATION_ID_DESC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -23016,17 +23016,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof resource_user_organizationPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_userOrganization.attributes.user_id.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("organization_id")}`, spec_userOrganization.attributes.organization_id.codec)} from ${resource_user_organizationPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_userOrganization.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_userOrganization.attributes.user_id.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_userOrganization.attributes.organization_id.codec)) !== null && _b !== void 0 ? _b : spec_userOrganization.attributes.organization_id.codec, direction: "DESC" }); } }, - USER_ORGANIZATIONS_DISTINCT_COUNT_ORGANIZATION_ID_ASC: { + USER_ORGANIZATIONS_DISTINCT_COUNT_CREATED_AT_ASC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -23038,17 +23038,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof resource_user_organizationPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("organization_id")}`, spec_userOrganization.attributes.organization_id.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_userOrganization.attributes.created_at.codec)} from ${resource_user_organizationPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_userOrganization.attributes.organization_id.codec)) !== null && _b !== void 0 ? _b : spec_userOrganization.attributes.organization_id.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_userOrganization.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_userOrganization.attributes.created_at.codec, direction: "ASC" }); } }, - USER_ORGANIZATIONS_DISTINCT_COUNT_ORGANIZATION_ID_DESC: { + USER_ORGANIZATIONS_DISTINCT_COUNT_CREATED_AT_DESC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -23060,17 +23060,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof resource_user_organizationPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("organization_id")}`, spec_userOrganization.attributes.organization_id.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_userOrganization.attributes.created_at.codec)} from ${resource_user_organizationPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_userOrganization.attributes.organization_id.codec)) !== null && _b !== void 0 ? _b : spec_userOrganization.attributes.organization_id.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_userOrganization.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_userOrganization.attributes.created_at.codec, direction: "DESC" }); } }, - USER_ORGANIZATIONS_DISTINCT_COUNT_CREATED_AT_ASC: { + USER_ORGANIZATIONS_DISTINCT_COUNT_USER_ID_ASC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -23082,17 +23082,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof resource_user_organizationPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_userOrganization.attributes.created_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_userOrganization.attributes.user_id.codec)} from ${resource_user_organizationPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_userOrganization.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_userOrganization.attributes.created_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_userOrganization.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_userOrganization.attributes.user_id.codec, direction: "ASC" }); } }, - USER_ORGANIZATIONS_DISTINCT_COUNT_CREATED_AT_DESC: { + USER_ORGANIZATIONS_DISTINCT_COUNT_USER_ID_DESC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -23104,12 +23104,12 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof resource_user_organizationPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_userOrganization.attributes.created_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_userOrganization.attributes.user_id.codec)} from ${resource_user_organizationPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_userOrganization.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_userOrganization.attributes.created_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_userOrganization.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_userOrganization.attributes.user_id.codec, direction: "DESC" }); } @@ -23286,7 +23286,7 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); } }, - COMMENTS_DISTINCT_COUNT_USER_ID_ASC: { + COMMENTS_DISTINCT_COUNT_CREATED_AT_ASC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -23298,17 +23298,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_commentPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_comment.attributes.user_id.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_comment.attributes.created_at.codec)} from ${pgResource_commentPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_comment.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_comment.attributes.user_id.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_comment.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_comment.attributes.created_at.codec, direction: "ASC" }); } }, - COMMENTS_DISTINCT_COUNT_USER_ID_DESC: { + COMMENTS_DISTINCT_COUNT_CREATED_AT_DESC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -23320,17 +23320,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_commentPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_comment.attributes.user_id.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_comment.attributes.created_at.codec)} from ${pgResource_commentPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_comment.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_comment.attributes.user_id.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_comment.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_comment.attributes.created_at.codec, direction: "DESC" }); } }, - COMMENTS_DISTINCT_COUNT_CREATED_AT_ASC: { + COMMENTS_DISTINCT_COUNT_UPDATED_AT_ASC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -23342,17 +23342,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_commentPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_comment.attributes.created_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("updated_at")}`, spec_comment.attributes.updated_at.codec)} from ${pgResource_commentPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_comment.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_comment.attributes.created_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_comment.attributes.updated_at.codec)) !== null && _b !== void 0 ? _b : spec_comment.attributes.updated_at.codec, direction: "ASC" }); } }, - COMMENTS_DISTINCT_COUNT_CREATED_AT_DESC: { + COMMENTS_DISTINCT_COUNT_UPDATED_AT_DESC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -23364,17 +23364,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_commentPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_comment.attributes.created_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("updated_at")}`, spec_comment.attributes.updated_at.codec)} from ${pgResource_commentPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_comment.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_comment.attributes.created_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_comment.attributes.updated_at.codec)) !== null && _b !== void 0 ? _b : spec_comment.attributes.updated_at.codec, direction: "DESC" }); } }, - COMMENTS_DISTINCT_COUNT_UPDATED_AT_ASC: { + COMMENTS_DISTINCT_COUNT_USER_ID_ASC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -23386,17 +23386,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_commentPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("updated_at")}`, spec_comment.attributes.updated_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_comment.attributes.user_id.codec)} from ${pgResource_commentPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_comment.attributes.updated_at.codec)) !== null && _b !== void 0 ? _b : spec_comment.attributes.updated_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_comment.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_comment.attributes.user_id.codec, direction: "ASC" }); } }, - COMMENTS_DISTINCT_COUNT_UPDATED_AT_DESC: { + COMMENTS_DISTINCT_COUNT_USER_ID_DESC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -23408,12 +23408,12 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_commentPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("updated_at")}`, spec_comment.attributes.updated_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_comment.attributes.user_id.codec)} from ${pgResource_commentPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_comment.attributes.updated_at.codec)) !== null && _b !== void 0 ? _b : spec_comment.attributes.updated_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_comment.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_comment.attributes.user_id.codec, direction: "DESC" }); } @@ -23546,7 +23546,7 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); } }, - DOWNVOTES_DISTINCT_COUNT_USER_ID_ASC: { + DOWNVOTES_DISTINCT_COUNT_CREATED_AT_ASC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -23558,17 +23558,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_downvotePgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_downvote.attributes.user_id.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_downvote.attributes.created_at.codec)} from ${pgResource_downvotePgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_downvote.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_downvote.attributes.user_id.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_downvote.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_downvote.attributes.created_at.codec, direction: "ASC" }); } }, - DOWNVOTES_DISTINCT_COUNT_USER_ID_DESC: { + DOWNVOTES_DISTINCT_COUNT_CREATED_AT_DESC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -23580,17 +23580,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_downvotePgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_downvote.attributes.user_id.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_downvote.attributes.created_at.codec)} from ${pgResource_downvotePgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_downvote.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_downvote.attributes.user_id.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_downvote.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_downvote.attributes.created_at.codec, direction: "DESC" }); } }, - DOWNVOTES_DISTINCT_COUNT_CREATED_AT_ASC: { + DOWNVOTES_DISTINCT_COUNT_UPDATED_AT_ASC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -23602,17 +23602,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_downvotePgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_downvote.attributes.created_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("updated_at")}`, spec_downvote.attributes.updated_at.codec)} from ${pgResource_downvotePgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_downvote.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_downvote.attributes.created_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_downvote.attributes.updated_at.codec)) !== null && _b !== void 0 ? _b : spec_downvote.attributes.updated_at.codec, direction: "ASC" }); } }, - DOWNVOTES_DISTINCT_COUNT_CREATED_AT_DESC: { + DOWNVOTES_DISTINCT_COUNT_UPDATED_AT_DESC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -23624,17 +23624,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_downvotePgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_downvote.attributes.created_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("updated_at")}`, spec_downvote.attributes.updated_at.codec)} from ${pgResource_downvotePgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_downvote.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_downvote.attributes.created_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_downvote.attributes.updated_at.codec)) !== null && _b !== void 0 ? _b : spec_downvote.attributes.updated_at.codec, direction: "DESC" }); } }, - DOWNVOTES_DISTINCT_COUNT_UPDATED_AT_ASC: { + DOWNVOTES_DISTINCT_COUNT_USER_ID_ASC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -23646,17 +23646,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_downvotePgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("updated_at")}`, spec_downvote.attributes.updated_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_downvote.attributes.user_id.codec)} from ${pgResource_downvotePgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_downvote.attributes.updated_at.codec)) !== null && _b !== void 0 ? _b : spec_downvote.attributes.updated_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_downvote.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_downvote.attributes.user_id.codec, direction: "ASC" }); } }, - DOWNVOTES_DISTINCT_COUNT_UPDATED_AT_DESC: { + DOWNVOTES_DISTINCT_COUNT_USER_ID_DESC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -23668,12 +23668,12 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_downvotePgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("updated_at")}`, spec_downvote.attributes.updated_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_downvote.attributes.user_id.codec)} from ${pgResource_downvotePgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_downvote.attributes.updated_at.codec)) !== null && _b !== void 0 ? _b : spec_downvote.attributes.updated_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_downvote.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_downvote.attributes.user_id.codec, direction: "DESC" }); } @@ -24791,23 +24791,23 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; "__inputPlan": function UserOrganizationInput_inputPlan() { return object(Object.create(null)); }, - userId: { + organizationId: { applyPlan($insert, val) { - $insert.set("user_id", val.get()); + $insert.set("organization_id", val.get()); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - organizationId: { + createdAt: { applyPlan($insert, val) { - $insert.set("organization_id", val.get()); + $insert.set("created_at", val.get()); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - createdAt: { + userId: { applyPlan($insert, val) { - $insert.set("created_at", val.get()); + $insert.set("user_id", val.get()); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true @@ -24880,23 +24880,23 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - userId: { + createdAt: { applyPlan($insert, val) { - $insert.set("user_id", val.get()); + $insert.set("created_at", val.get()); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - createdAt: { + updatedAt: { applyPlan($insert, val) { - $insert.set("created_at", val.get()); + $insert.set("updated_at", val.get()); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - updatedAt: { + userId: { applyPlan($insert, val) { - $insert.set("updated_at", val.get()); + $insert.set("user_id", val.get()); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true @@ -24969,23 +24969,23 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - userId: { + createdAt: { applyPlan($insert, val) { - $insert.set("user_id", val.get()); + $insert.set("created_at", val.get()); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - createdAt: { + updatedAt: { applyPlan($insert, val) { - $insert.set("created_at", val.get()); + $insert.set("updated_at", val.get()); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - updatedAt: { + userId: { applyPlan($insert, val) { - $insert.set("updated_at", val.get()); + $insert.set("user_id", val.get()); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true @@ -25154,23 +25154,23 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - userId: { + createdAt: { applyPlan($insert, val) { - $insert.set("user_id", val.get()); + $insert.set("created_at", val.get()); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - createdAt: { + updatedAt: { applyPlan($insert, val) { - $insert.set("created_at", val.get()); + $insert.set("updated_at", val.get()); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - updatedAt: { + userId: { applyPlan($insert, val) { - $insert.set("updated_at", val.get()); + $insert.set("user_id", val.get()); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true @@ -25257,23 +25257,23 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - userId: { + createdAt: { applyPlan($insert, val) { - $insert.set("user_id", val.get()); + $insert.set("created_at", val.get()); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - createdAt: { + updatedAt: { applyPlan($insert, val) { - $insert.set("created_at", val.get()); + $insert.set("updated_at", val.get()); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - updatedAt: { + userId: { applyPlan($insert, val) { - $insert.set("updated_at", val.get()); + $insert.set("user_id", val.get()); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true @@ -25522,23 +25522,23 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; "__inputPlan": function UserOrganizationPatch_inputPlan() { return object(Object.create(null)); }, - userId: { + organizationId: { applyPlan($insert, val) { - $insert.set("user_id", val.get()); + $insert.set("organization_id", val.get()); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - organizationId: { + createdAt: { applyPlan($insert, val) { - $insert.set("organization_id", val.get()); + $insert.set("created_at", val.get()); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - createdAt: { + userId: { applyPlan($insert, val) { - $insert.set("created_at", val.get()); + $insert.set("user_id", val.get()); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true @@ -25610,23 +25610,23 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - userId: { + createdAt: { applyPlan($insert, val) { - $insert.set("user_id", val.get()); + $insert.set("created_at", val.get()); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - createdAt: { + updatedAt: { applyPlan($insert, val) { - $insert.set("created_at", val.get()); + $insert.set("updated_at", val.get()); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - updatedAt: { + userId: { applyPlan($insert, val) { - $insert.set("updated_at", val.get()); + $insert.set("user_id", val.get()); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true @@ -25725,23 +25725,23 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - userId: { + createdAt: { applyPlan($insert, val) { - $insert.set("user_id", val.get()); + $insert.set("created_at", val.get()); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - createdAt: { + updatedAt: { applyPlan($insert, val) { - $insert.set("created_at", val.get()); + $insert.set("updated_at", val.get()); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - updatedAt: { + userId: { applyPlan($insert, val) { - $insert.set("updated_at", val.get()); + $insert.set("user_id", val.get()); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true @@ -25974,23 +25974,23 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - userId: { + createdAt: { applyPlan($insert, val) { - $insert.set("user_id", val.get()); + $insert.set("created_at", val.get()); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - createdAt: { + updatedAt: { applyPlan($insert, val) { - $insert.set("created_at", val.get()); + $insert.set("updated_at", val.get()); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - updatedAt: { + userId: { applyPlan($insert, val) { - $insert.set("updated_at", val.get()); + $insert.set("user_id", val.get()); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true @@ -26089,23 +26089,23 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - userId: { + createdAt: { applyPlan($insert, val) { - $insert.set("user_id", val.get()); + $insert.set("created_at", val.get()); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - createdAt: { + updatedAt: { applyPlan($insert, val) { - $insert.set("created_at", val.get()); + $insert.set("updated_at", val.get()); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - updatedAt: { + userId: { applyPlan($insert, val) { - $insert.set("updated_at", val.get()); + $insert.set("user_id", val.get()); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true diff --git a/src/lib/drizzle/migrations/0005_nice_talkback.sql b/src/lib/drizzle/migrations/0005_nice_talkback.sql new file mode 100644 index 0000000..d680a19 --- /dev/null +++ b/src/lib/drizzle/migrations/0005_nice_talkback.sql @@ -0,0 +1,31 @@ +ALTER TABLE "downvote" DROP CONSTRAINT "downvote_postId_userId_unique";--> statement-breakpoint +ALTER TABLE "upvote" DROP CONSTRAINT "upvote_postId_userId_unique";--> statement-breakpoint +ALTER TABLE "user_organization" DROP CONSTRAINT "user_organization_userId_organizationId_unique";--> statement-breakpoint +ALTER TABLE "comment" DROP CONSTRAINT "comment_user_id_user_id_fk"; +--> statement-breakpoint +ALTER TABLE "downvote" DROP CONSTRAINT "downvote_user_id_user_id_fk"; +--> statement-breakpoint +ALTER TABLE "post" DROP CONSTRAINT "post_user_id_user_id_fk"; +--> statement-breakpoint +ALTER TABLE "upvote" DROP CONSTRAINT "upvote_user_id_user_id_fk"; +--> statement-breakpoint +ALTER TABLE "user_organization" DROP CONSTRAINT "user_organization_user_id_user_id_fk"; +--> statement-breakpoint +ALTER TABLE "comment" ADD COLUMN "user_hidra_id" uuid NOT NULL;--> statement-breakpoint +ALTER TABLE "downvote" ADD COLUMN "user_hidra_id" uuid NOT NULL;--> statement-breakpoint +ALTER TABLE "post" ADD COLUMN "user_hidra_id" uuid NOT NULL;--> statement-breakpoint +ALTER TABLE "upvote" ADD COLUMN "user_hidra_id" uuid NOT NULL;--> statement-breakpoint +ALTER TABLE "user_organization" ADD COLUMN "user_hidra_id" uuid NOT NULL;--> statement-breakpoint +ALTER TABLE "comment" ADD CONSTRAINT "comment_user_hidra_id_user_hidra_id_fk" FOREIGN KEY ("user_hidra_id") REFERENCES "public"."user"("hidra_id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint +ALTER TABLE "downvote" ADD CONSTRAINT "downvote_user_hidra_id_user_hidra_id_fk" FOREIGN KEY ("user_hidra_id") REFERENCES "public"."user"("hidra_id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint +ALTER TABLE "post" ADD CONSTRAINT "post_user_hidra_id_user_hidra_id_fk" FOREIGN KEY ("user_hidra_id") REFERENCES "public"."user"("hidra_id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint +ALTER TABLE "upvote" ADD CONSTRAINT "upvote_user_hidra_id_user_hidra_id_fk" FOREIGN KEY ("user_hidra_id") REFERENCES "public"."user"("hidra_id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint +ALTER TABLE "user_organization" ADD CONSTRAINT "user_organization_user_hidra_id_user_hidra_id_fk" FOREIGN KEY ("user_hidra_id") REFERENCES "public"."user"("hidra_id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint +ALTER TABLE "comment" DROP COLUMN "user_id";--> statement-breakpoint +ALTER TABLE "downvote" DROP COLUMN "user_id";--> statement-breakpoint +ALTER TABLE "post" DROP COLUMN "user_id";--> statement-breakpoint +ALTER TABLE "upvote" DROP COLUMN "user_id";--> statement-breakpoint +ALTER TABLE "user_organization" DROP COLUMN "user_id";--> statement-breakpoint +ALTER TABLE "downvote" ADD CONSTRAINT "downvote_postId_userHidraId_unique" UNIQUE("post_id","user_hidra_id");--> statement-breakpoint +ALTER TABLE "upvote" ADD CONSTRAINT "upvote_postId_userHidraId_unique" UNIQUE("post_id","user_hidra_id");--> statement-breakpoint +ALTER TABLE "user_organization" ADD CONSTRAINT "user_organization_userHidraId_organizationId_unique" UNIQUE("user_hidra_id","organization_id"); \ No newline at end of file diff --git a/src/lib/drizzle/migrations/0006_goofy_harry_osborn.sql b/src/lib/drizzle/migrations/0006_goofy_harry_osborn.sql new file mode 100644 index 0000000..9a47b33 --- /dev/null +++ b/src/lib/drizzle/migrations/0006_goofy_harry_osborn.sql @@ -0,0 +1,26 @@ +ALTER TABLE "comment" RENAME COLUMN "user_hidra_id" TO "user_id";--> statement-breakpoint +ALTER TABLE "downvote" RENAME COLUMN "user_hidra_id" TO "user_id";--> statement-breakpoint +ALTER TABLE "post" RENAME COLUMN "user_hidra_id" TO "user_id";--> statement-breakpoint +ALTER TABLE "upvote" RENAME COLUMN "user_hidra_id" TO "user_id";--> statement-breakpoint +ALTER TABLE "user_organization" RENAME COLUMN "user_hidra_id" TO "user_id";--> statement-breakpoint +ALTER TABLE "downvote" DROP CONSTRAINT "downvote_postId_userHidraId_unique";--> statement-breakpoint +ALTER TABLE "upvote" DROP CONSTRAINT "upvote_postId_userHidraId_unique";--> statement-breakpoint +ALTER TABLE "user_organization" DROP CONSTRAINT "user_organization_userHidraId_organizationId_unique";--> statement-breakpoint +ALTER TABLE "comment" DROP CONSTRAINT "comment_user_hidra_id_user_hidra_id_fk"; +--> statement-breakpoint +ALTER TABLE "downvote" DROP CONSTRAINT "downvote_user_hidra_id_user_hidra_id_fk"; +--> statement-breakpoint +ALTER TABLE "post" DROP CONSTRAINT "post_user_hidra_id_user_hidra_id_fk"; +--> statement-breakpoint +ALTER TABLE "upvote" DROP CONSTRAINT "upvote_user_hidra_id_user_hidra_id_fk"; +--> statement-breakpoint +ALTER TABLE "user_organization" DROP CONSTRAINT "user_organization_user_hidra_id_user_hidra_id_fk"; +--> statement-breakpoint +ALTER TABLE "comment" ADD CONSTRAINT "comment_user_id_user_hidra_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."user"("hidra_id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint +ALTER TABLE "downvote" ADD CONSTRAINT "downvote_user_id_user_hidra_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."user"("hidra_id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint +ALTER TABLE "post" ADD CONSTRAINT "post_user_id_user_hidra_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."user"("hidra_id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint +ALTER TABLE "upvote" ADD CONSTRAINT "upvote_user_id_user_hidra_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."user"("hidra_id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint +ALTER TABLE "user_organization" ADD CONSTRAINT "user_organization_user_id_user_hidra_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."user"("hidra_id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint +ALTER TABLE "downvote" ADD CONSTRAINT "downvote_postId_userId_unique" UNIQUE("post_id","user_id");--> statement-breakpoint +ALTER TABLE "upvote" ADD CONSTRAINT "upvote_postId_userId_unique" UNIQUE("post_id","user_id");--> statement-breakpoint +ALTER TABLE "user_organization" ADD CONSTRAINT "user_organization_userId_organizationId_unique" UNIQUE("user_id","organization_id"); \ No newline at end of file diff --git a/src/lib/drizzle/migrations/meta/0005_snapshot.json b/src/lib/drizzle/migrations/meta/0005_snapshot.json new file mode 100644 index 0000000..dd08dd3 --- /dev/null +++ b/src/lib/drizzle/migrations/meta/0005_snapshot.json @@ -0,0 +1,643 @@ +{ + "id": "04cae376-8860-415a-997a-a5f1c04c4577", + "prevId": "c90da68b-8e52-4d89-b142-2daccf9d974f", + "version": "7", + "dialect": "postgresql", + "tables": { + "public.comment": { + "name": "comment", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "message": { + "name": "message", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "post_id": { + "name": "post_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "user_hidra_id": { + "name": "user_hidra_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp(6) with time zone", + "primaryKey": false, + "notNull": false, + "default": "now()" + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp(6) with time zone", + "primaryKey": false, + "notNull": false, + "default": "now()" + } + }, + "indexes": {}, + "foreignKeys": { + "comment_post_id_post_id_fk": { + "name": "comment_post_id_post_id_fk", + "tableFrom": "comment", + "tableTo": "post", + "columnsFrom": [ + "post_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "comment_user_hidra_id_user_hidra_id_fk": { + "name": "comment_user_hidra_id_user_hidra_id_fk", + "tableFrom": "comment", + "tableTo": "user", + "columnsFrom": [ + "user_hidra_id" + ], + "columnsTo": [ + "hidra_id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.downvote": { + "name": "downvote", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "post_id": { + "name": "post_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "user_hidra_id": { + "name": "user_hidra_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp(6) with time zone", + "primaryKey": false, + "notNull": false, + "default": "now()" + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp(6) with time zone", + "primaryKey": false, + "notNull": false, + "default": "now()" + } + }, + "indexes": {}, + "foreignKeys": { + "downvote_post_id_post_id_fk": { + "name": "downvote_post_id_post_id_fk", + "tableFrom": "downvote", + "tableTo": "post", + "columnsFrom": [ + "post_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "downvote_user_hidra_id_user_hidra_id_fk": { + "name": "downvote_user_hidra_id_user_hidra_id_fk", + "tableFrom": "downvote", + "tableTo": "user", + "columnsFrom": [ + "user_hidra_id" + ], + "columnsTo": [ + "hidra_id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": { + "downvote_postId_userHidraId_unique": { + "name": "downvote_postId_userHidraId_unique", + "nullsNotDistinct": false, + "columns": [ + "post_id", + "user_hidra_id" + ] + } + }, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.organization": { + "name": "organization", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "slug": { + "name": "slug", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp(6) with time zone", + "primaryKey": false, + "notNull": false, + "default": "now()" + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp(6) with time zone", + "primaryKey": false, + "notNull": false, + "default": "now()" + } + }, + "indexes": {}, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": { + "organization_name_unique": { + "name": "organization_name_unique", + "nullsNotDistinct": false, + "columns": [ + "name" + ] + }, + "organization_slug_unique": { + "name": "organization_slug_unique", + "nullsNotDistinct": false, + "columns": [ + "slug" + ] + } + }, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.post": { + "name": "post", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "title": { + "name": "title", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "description": { + "name": "description", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "project_id": { + "name": "project_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "user_hidra_id": { + "name": "user_hidra_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp(6) with time zone", + "primaryKey": false, + "notNull": false, + "default": "now()" + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp(6) with time zone", + "primaryKey": false, + "notNull": false, + "default": "now()" + } + }, + "indexes": {}, + "foreignKeys": { + "post_project_id_project_id_fk": { + "name": "post_project_id_project_id_fk", + "tableFrom": "post", + "tableTo": "project", + "columnsFrom": [ + "project_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "post_user_hidra_id_user_hidra_id_fk": { + "name": "post_user_hidra_id_user_hidra_id_fk", + "tableFrom": "post", + "tableTo": "user", + "columnsFrom": [ + "user_hidra_id" + ], + "columnsTo": [ + "hidra_id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.project": { + "name": "project", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "image": { + "name": "image", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "slug": { + "name": "slug", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "description": { + "name": "description", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "organization_id": { + "name": "organization_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp(6) with time zone", + "primaryKey": false, + "notNull": false, + "default": "now()" + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp(6) with time zone", + "primaryKey": false, + "notNull": false, + "default": "now()" + } + }, + "indexes": {}, + "foreignKeys": { + "project_organization_id_organization_id_fk": { + "name": "project_organization_id_organization_id_fk", + "tableFrom": "project", + "tableTo": "organization", + "columnsFrom": [ + "organization_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": { + "project_name_unique": { + "name": "project_name_unique", + "nullsNotDistinct": false, + "columns": [ + "name" + ] + }, + "project_slug_organizationId_unique": { + "name": "project_slug_organizationId_unique", + "nullsNotDistinct": false, + "columns": [ + "slug", + "organization_id" + ] + } + }, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.upvote": { + "name": "upvote", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "post_id": { + "name": "post_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "user_hidra_id": { + "name": "user_hidra_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp(6) with time zone", + "primaryKey": false, + "notNull": false, + "default": "now()" + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp(6) with time zone", + "primaryKey": false, + "notNull": false, + "default": "now()" + } + }, + "indexes": {}, + "foreignKeys": { + "upvote_post_id_post_id_fk": { + "name": "upvote_post_id_post_id_fk", + "tableFrom": "upvote", + "tableTo": "post", + "columnsFrom": [ + "post_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "upvote_user_hidra_id_user_hidra_id_fk": { + "name": "upvote_user_hidra_id_user_hidra_id_fk", + "tableFrom": "upvote", + "tableTo": "user", + "columnsFrom": [ + "user_hidra_id" + ], + "columnsTo": [ + "hidra_id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": { + "upvote_postId_userHidraId_unique": { + "name": "upvote_postId_userHidraId_unique", + "nullsNotDistinct": false, + "columns": [ + "post_id", + "user_hidra_id" + ] + } + }, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.user": { + "name": "user", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "hidra_id": { + "name": "hidra_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "username": { + "name": "username", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "first_name": { + "name": "first_name", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "last_name": { + "name": "last_name", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "created_at": { + "name": "created_at", + "type": "timestamp(6) with time zone", + "primaryKey": false, + "notNull": false, + "default": "now()" + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp(6) with time zone", + "primaryKey": false, + "notNull": false, + "default": "now()" + } + }, + "indexes": {}, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": { + "user_hidraId_unique": { + "name": "user_hidraId_unique", + "nullsNotDistinct": false, + "columns": [ + "hidra_id" + ] + }, + "user_username_unique": { + "name": "user_username_unique", + "nullsNotDistinct": false, + "columns": [ + "username" + ] + } + }, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.user_organization": { + "name": "user_organization", + "schema": "", + "columns": { + "user_hidra_id": { + "name": "user_hidra_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "organization_id": { + "name": "organization_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp(6) with time zone", + "primaryKey": false, + "notNull": false, + "default": "now()" + } + }, + "indexes": {}, + "foreignKeys": { + "user_organization_user_hidra_id_user_hidra_id_fk": { + "name": "user_organization_user_hidra_id_user_hidra_id_fk", + "tableFrom": "user_organization", + "tableTo": "user", + "columnsFrom": [ + "user_hidra_id" + ], + "columnsTo": [ + "hidra_id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "user_organization_organization_id_organization_id_fk": { + "name": "user_organization_organization_id_organization_id_fk", + "tableFrom": "user_organization", + "tableTo": "organization", + "columnsFrom": [ + "organization_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": { + "user_organization_userHidraId_organizationId_unique": { + "name": "user_organization_userHidraId_organizationId_unique", + "nullsNotDistinct": false, + "columns": [ + "user_hidra_id", + "organization_id" + ] + } + }, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + } + }, + "enums": {}, + "schemas": {}, + "sequences": {}, + "roles": {}, + "policies": {}, + "views": {}, + "_meta": { + "columns": {}, + "schemas": {}, + "tables": {} + } +} \ No newline at end of file diff --git a/src/lib/drizzle/migrations/meta/0006_snapshot.json b/src/lib/drizzle/migrations/meta/0006_snapshot.json new file mode 100644 index 0000000..592a6a6 --- /dev/null +++ b/src/lib/drizzle/migrations/meta/0006_snapshot.json @@ -0,0 +1,643 @@ +{ + "id": "d17c4c68-867b-4aa6-a4be-a4403a26028f", + "prevId": "04cae376-8860-415a-997a-a5f1c04c4577", + "version": "7", + "dialect": "postgresql", + "tables": { + "public.comment": { + "name": "comment", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "message": { + "name": "message", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "post_id": { + "name": "post_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "user_id": { + "name": "user_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp(6) with time zone", + "primaryKey": false, + "notNull": false, + "default": "now()" + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp(6) with time zone", + "primaryKey": false, + "notNull": false, + "default": "now()" + } + }, + "indexes": {}, + "foreignKeys": { + "comment_post_id_post_id_fk": { + "name": "comment_post_id_post_id_fk", + "tableFrom": "comment", + "tableTo": "post", + "columnsFrom": [ + "post_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "comment_user_id_user_hidra_id_fk": { + "name": "comment_user_id_user_hidra_id_fk", + "tableFrom": "comment", + "tableTo": "user", + "columnsFrom": [ + "user_id" + ], + "columnsTo": [ + "hidra_id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.downvote": { + "name": "downvote", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "post_id": { + "name": "post_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "user_id": { + "name": "user_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp(6) with time zone", + "primaryKey": false, + "notNull": false, + "default": "now()" + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp(6) with time zone", + "primaryKey": false, + "notNull": false, + "default": "now()" + } + }, + "indexes": {}, + "foreignKeys": { + "downvote_post_id_post_id_fk": { + "name": "downvote_post_id_post_id_fk", + "tableFrom": "downvote", + "tableTo": "post", + "columnsFrom": [ + "post_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "downvote_user_id_user_hidra_id_fk": { + "name": "downvote_user_id_user_hidra_id_fk", + "tableFrom": "downvote", + "tableTo": "user", + "columnsFrom": [ + "user_id" + ], + "columnsTo": [ + "hidra_id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": { + "downvote_postId_userId_unique": { + "name": "downvote_postId_userId_unique", + "nullsNotDistinct": false, + "columns": [ + "post_id", + "user_id" + ] + } + }, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.organization": { + "name": "organization", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "slug": { + "name": "slug", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp(6) with time zone", + "primaryKey": false, + "notNull": false, + "default": "now()" + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp(6) with time zone", + "primaryKey": false, + "notNull": false, + "default": "now()" + } + }, + "indexes": {}, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": { + "organization_name_unique": { + "name": "organization_name_unique", + "nullsNotDistinct": false, + "columns": [ + "name" + ] + }, + "organization_slug_unique": { + "name": "organization_slug_unique", + "nullsNotDistinct": false, + "columns": [ + "slug" + ] + } + }, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.post": { + "name": "post", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "title": { + "name": "title", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "description": { + "name": "description", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "project_id": { + "name": "project_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "user_id": { + "name": "user_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp(6) with time zone", + "primaryKey": false, + "notNull": false, + "default": "now()" + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp(6) with time zone", + "primaryKey": false, + "notNull": false, + "default": "now()" + } + }, + "indexes": {}, + "foreignKeys": { + "post_project_id_project_id_fk": { + "name": "post_project_id_project_id_fk", + "tableFrom": "post", + "tableTo": "project", + "columnsFrom": [ + "project_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "post_user_id_user_hidra_id_fk": { + "name": "post_user_id_user_hidra_id_fk", + "tableFrom": "post", + "tableTo": "user", + "columnsFrom": [ + "user_id" + ], + "columnsTo": [ + "hidra_id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.project": { + "name": "project", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "image": { + "name": "image", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "slug": { + "name": "slug", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "description": { + "name": "description", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "organization_id": { + "name": "organization_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp(6) with time zone", + "primaryKey": false, + "notNull": false, + "default": "now()" + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp(6) with time zone", + "primaryKey": false, + "notNull": false, + "default": "now()" + } + }, + "indexes": {}, + "foreignKeys": { + "project_organization_id_organization_id_fk": { + "name": "project_organization_id_organization_id_fk", + "tableFrom": "project", + "tableTo": "organization", + "columnsFrom": [ + "organization_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": { + "project_name_unique": { + "name": "project_name_unique", + "nullsNotDistinct": false, + "columns": [ + "name" + ] + }, + "project_slug_organizationId_unique": { + "name": "project_slug_organizationId_unique", + "nullsNotDistinct": false, + "columns": [ + "slug", + "organization_id" + ] + } + }, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.upvote": { + "name": "upvote", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "post_id": { + "name": "post_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "user_id": { + "name": "user_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp(6) with time zone", + "primaryKey": false, + "notNull": false, + "default": "now()" + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp(6) with time zone", + "primaryKey": false, + "notNull": false, + "default": "now()" + } + }, + "indexes": {}, + "foreignKeys": { + "upvote_post_id_post_id_fk": { + "name": "upvote_post_id_post_id_fk", + "tableFrom": "upvote", + "tableTo": "post", + "columnsFrom": [ + "post_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "upvote_user_id_user_hidra_id_fk": { + "name": "upvote_user_id_user_hidra_id_fk", + "tableFrom": "upvote", + "tableTo": "user", + "columnsFrom": [ + "user_id" + ], + "columnsTo": [ + "hidra_id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": { + "upvote_postId_userId_unique": { + "name": "upvote_postId_userId_unique", + "nullsNotDistinct": false, + "columns": [ + "post_id", + "user_id" + ] + } + }, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.user": { + "name": "user", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "hidra_id": { + "name": "hidra_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "username": { + "name": "username", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "first_name": { + "name": "first_name", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "last_name": { + "name": "last_name", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "created_at": { + "name": "created_at", + "type": "timestamp(6) with time zone", + "primaryKey": false, + "notNull": false, + "default": "now()" + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp(6) with time zone", + "primaryKey": false, + "notNull": false, + "default": "now()" + } + }, + "indexes": {}, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": { + "user_hidraId_unique": { + "name": "user_hidraId_unique", + "nullsNotDistinct": false, + "columns": [ + "hidra_id" + ] + }, + "user_username_unique": { + "name": "user_username_unique", + "nullsNotDistinct": false, + "columns": [ + "username" + ] + } + }, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.user_organization": { + "name": "user_organization", + "schema": "", + "columns": { + "user_id": { + "name": "user_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "organization_id": { + "name": "organization_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp(6) with time zone", + "primaryKey": false, + "notNull": false, + "default": "now()" + } + }, + "indexes": {}, + "foreignKeys": { + "user_organization_user_id_user_hidra_id_fk": { + "name": "user_organization_user_id_user_hidra_id_fk", + "tableFrom": "user_organization", + "tableTo": "user", + "columnsFrom": [ + "user_id" + ], + "columnsTo": [ + "hidra_id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "user_organization_organization_id_organization_id_fk": { + "name": "user_organization_organization_id_organization_id_fk", + "tableFrom": "user_organization", + "tableTo": "organization", + "columnsFrom": [ + "organization_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": { + "user_organization_userId_organizationId_unique": { + "name": "user_organization_userId_organizationId_unique", + "nullsNotDistinct": false, + "columns": [ + "user_id", + "organization_id" + ] + } + }, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + } + }, + "enums": {}, + "schemas": {}, + "sequences": {}, + "roles": {}, + "policies": {}, + "views": {}, + "_meta": { + "columns": {}, + "schemas": {}, + "tables": {} + } +} \ No newline at end of file diff --git a/src/lib/drizzle/migrations/meta/_journal.json b/src/lib/drizzle/migrations/meta/_journal.json index d1329e6..47870f4 100644 --- a/src/lib/drizzle/migrations/meta/_journal.json +++ b/src/lib/drizzle/migrations/meta/_journal.json @@ -36,6 +36,20 @@ "when": 1735865647094, "tag": "0004_easy_lockheed", "breakpoints": true + }, + { + "idx": 5, + "version": "7", + "when": 1735921429085, + "tag": "0005_nice_talkback", + "breakpoints": true + }, + { + "idx": 6, + "version": "7", + "when": 1735921719688, + "tag": "0006_goofy_harry_osborn", + "breakpoints": true } ] } \ No newline at end of file diff --git a/src/lib/drizzle/schema/comment.table.ts b/src/lib/drizzle/schema/comment.table.ts index ca9be3f..ec5453d 100644 --- a/src/lib/drizzle/schema/comment.table.ts +++ b/src/lib/drizzle/schema/comment.table.ts @@ -19,7 +19,7 @@ export const comments = pgTable("comment", { }), userId: uuid() .notNull() - .references(() => users.id, { + .references(() => users.hidraId, { onDelete: "cascade", }), createdAt: defaultDate(), diff --git a/src/lib/drizzle/schema/downvote.table.ts b/src/lib/drizzle/schema/downvote.table.ts index 264af47..a0cf132 100644 --- a/src/lib/drizzle/schema/downvote.table.ts +++ b/src/lib/drizzle/schema/downvote.table.ts @@ -20,7 +20,7 @@ export const downvotes = pgTable( }), userId: uuid() .notNull() - .references(() => users.id, { + .references(() => users.hidraId, { onDelete: "cascade", }), createdAt: defaultDate(), diff --git a/src/lib/drizzle/schema/post.table.ts b/src/lib/drizzle/schema/post.table.ts index 0e9be52..fe70ae6 100644 --- a/src/lib/drizzle/schema/post.table.ts +++ b/src/lib/drizzle/schema/post.table.ts @@ -20,7 +20,7 @@ export const posts = pgTable("post", { }), userId: uuid() .notNull() - .references(() => users.id, { + .references(() => users.hidraId, { onDelete: "cascade", }), createdAt: defaultDate(), diff --git a/src/lib/drizzle/schema/upvote.table.ts b/src/lib/drizzle/schema/upvote.table.ts index ada6cf9..27d7d3d 100644 --- a/src/lib/drizzle/schema/upvote.table.ts +++ b/src/lib/drizzle/schema/upvote.table.ts @@ -20,7 +20,7 @@ export const upvotes = pgTable( }), userId: uuid() .notNull() - .references(() => users.id, { + .references(() => users.hidraId, { onDelete: "cascade", }), createdAt: defaultDate(), diff --git a/src/lib/drizzle/schema/userToOrganization.table.ts b/src/lib/drizzle/schema/userToOrganization.table.ts index 556074b..1ad92ee 100644 --- a/src/lib/drizzle/schema/userToOrganization.table.ts +++ b/src/lib/drizzle/schema/userToOrganization.table.ts @@ -14,7 +14,7 @@ export const usersToOrganizations = pgTable( { userId: uuid() .notNull() - .references(() => users.id, { + .references(() => users.hidraId, { onDelete: "cascade", }), organizationId: uuid() From 0551f3220aedee4e544d9eaa747bf6c02a91b92d Mon Sep 17 00:00:00 2001 From: hobbescodes <87732294+hobbescodes@users.noreply.github.com> Date: Fri, 3 Jan 2025 19:04:50 -0600 Subject: [PATCH 3/5] build: update to use JSONC formatted lockfile --- bun.lock | 573 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ bun.lockb | Bin 99584 -> 0 bytes 2 files changed, 573 insertions(+) create mode 100755 bun.lock delete mode 100755 bun.lockb diff --git a/bun.lock b/bun.lock new file mode 100755 index 0000000..3382343 --- /dev/null +++ b/bun.lock @@ -0,0 +1,573 @@ +{ + "lockfileVersion": 0, + "workspaces": { + "": { + "dependencies": { + "@graphile/pg-aggregates": "^0.2.0-beta.7", + "@graphile/simplify-inflection": "^8.0.0-beta.5", + "dayjs": "^1.11.13", + "drizzle-orm": "^0.38.2", + "drizzle-seed": "^0.3.0", + "graphile-export": "^0.0.2-beta.24", + "graphql": "^16.9.0", + "graphql-yoga": "^5.8.0", + "hono": "^4.6.8", + "pg": "^8.13.1", + "postgraphile": "^5.0.0-beta.37", + "postgraphile-plugin-connection-filter": "^3.0.0-beta.7", + }, + "devDependencies": { + "@biomejs/biome": "^1.9.4", + "@faker-js/faker": "^9.1.0", + "@types/bun": "^1.1.12", + "@types/node": "^22.8.6", + "@types/pg": "^8.11.10", + "drizzle-kit": "^0.30.1", + "husky": "^9.1.6", + "replace-in-file": "^8.2.0", + "typescript": "^5.6.3", + }, + }, + }, + "trustedDependencies": [ + "esbuild", + "@biomejs/biome", + ], + "packages": { + "@babel/code-frame": ["@babel/code-frame@7.26.2", "", { "dependencies": { "@babel/helper-validator-identifier": "^7.25.9", "js-tokens": "^4.0.0", "picocolors": "^1.0.0" } }, "sha512-RJlIHRueQgwWitWgF8OdFYGZX328Ax5BCemNGlqHfplnRT9ESi8JkFlvaVYbS+UubVY6dpv87Fs2u5M29iNFVQ=="], + + "@babel/generator": ["@babel/generator@7.26.3", "", { "dependencies": { "@babel/parser": "^7.26.3", "@babel/types": "^7.26.3", "@jridgewell/gen-mapping": "^0.3.5", "@jridgewell/trace-mapping": "^0.3.25", "jsesc": "^3.0.2" } }, "sha512-6FF/urZvD0sTeO7k6/B15pMLC4CHUv1426lzr3N01aHJTl046uCAh9LXW/fzeXXjPNCJ6iABW5XaWOsIZB93aQ=="], + + "@babel/helper-string-parser": ["@babel/helper-string-parser@7.25.9", "", {}, "sha512-4A/SCr/2KLd5jrtOMFzaKjVtAei3+2r/NChoBNoZ3EyP/+GlhoaEGoWOZUmFmoITP7zOJyHIMm+DYRd8o3PvHA=="], + + "@babel/helper-validator-identifier": ["@babel/helper-validator-identifier@7.25.9", "", {}, "sha512-Ed61U6XJc3CVRfkERJWDz4dJwKe7iLmmJsbOGu9wSloNSFttHV0I8g6UAgb7qnK5ly5bGLPd4oXZlxCdANBOWQ=="], + + "@babel/parser": ["@babel/parser@7.26.3", "", { "dependencies": { "@babel/types": "^7.26.3" }, "bin": "./bin/babel-parser.js" }, "sha512-WJ/CvmY8Mea8iDXo6a7RK2wbmJITT5fN3BEkRuFlxVyNx8jOKIIhmC4fSkTcPcf8JyavbBwIe6OpiCOBXt/IcA=="], + + "@babel/template": ["@babel/template@7.25.9", "", { "dependencies": { "@babel/code-frame": "^7.25.9", "@babel/parser": "^7.25.9", "@babel/types": "^7.25.9" } }, "sha512-9DGttpmPvIxBb/2uwpVo3dqJ+O6RooAFOS+lB+xDqoE2PVCE8nfoHMdZLpfCQRLwvohzXISPZcgxt80xLfsuwg=="], + + "@babel/traverse": ["@babel/traverse@7.26.4", "", { "dependencies": { "@babel/code-frame": "^7.26.2", "@babel/generator": "^7.26.3", "@babel/parser": "^7.26.3", "@babel/template": "^7.25.9", "@babel/types": "^7.26.3", "debug": "^4.3.1", "globals": "^11.1.0" } }, "sha512-fH+b7Y4p3yqvApJALCPJcwb0/XaOSgtK4pzV6WVjPR5GLFQBRI7pfoX2V2iM48NXvX07NUxxm1Vw98YjqTcU5w=="], + + "@babel/types": ["@babel/types@7.26.3", "", { "dependencies": { "@babel/helper-string-parser": "^7.25.9", "@babel/helper-validator-identifier": "^7.25.9" } }, "sha512-vN5p+1kl59GVKMvTHt55NzzmYVxprfJD+ql7U9NFIfKCBkYE55LYtS+WtPlaYOyzydrKI8Nezd+aZextrd+FMA=="], + + "@biomejs/biome": ["@biomejs/biome@1.9.4", "", { "optionalDependencies": { "@biomejs/cli-darwin-arm64": "1.9.4", "@biomejs/cli-darwin-x64": "1.9.4", "@biomejs/cli-linux-arm64": "1.9.4", "@biomejs/cli-linux-arm64-musl": "1.9.4", "@biomejs/cli-linux-x64": "1.9.4", "@biomejs/cli-linux-x64-musl": "1.9.4", "@biomejs/cli-win32-arm64": "1.9.4", "@biomejs/cli-win32-x64": "1.9.4" }, "bin": { "biome": "bin/biome" } }, "sha512-1rkd7G70+o9KkTn5KLmDYXihGoTaIGO9PIIN2ZB7UJxFrWw04CZHPYiMRjYsaDvVV7hP1dYNRLxSANLaBFGpog=="], + + "@biomejs/cli-darwin-arm64": ["@biomejs/cli-darwin-arm64@1.9.4", "", { "os": "darwin", "cpu": "arm64" }, "sha512-bFBsPWrNvkdKrNCYeAp+xo2HecOGPAy9WyNyB/jKnnedgzl4W4Hb9ZMzYNbf8dMCGmUdSavlYHiR01QaYR58cw=="], + + "@biomejs/cli-darwin-x64": ["@biomejs/cli-darwin-x64@1.9.4", "", { "os": "darwin", "cpu": "x64" }, "sha512-ngYBh/+bEedqkSevPVhLP4QfVPCpb+4BBe2p7Xs32dBgs7rh9nY2AIYUL6BgLw1JVXV8GlpKmb/hNiuIxfPfZg=="], + + "@biomejs/cli-linux-arm64": ["@biomejs/cli-linux-arm64@1.9.4", "", { "os": "linux", "cpu": "arm64" }, "sha512-fJIW0+LYujdjUgJJuwesP4EjIBl/N/TcOX3IvIHJQNsAqvV2CHIogsmA94BPG6jZATS4Hi+xv4SkBBQSt1N4/g=="], + + "@biomejs/cli-linux-arm64-musl": ["@biomejs/cli-linux-arm64-musl@1.9.4", "", { "os": "linux", "cpu": "arm64" }, "sha512-v665Ct9WCRjGa8+kTr0CzApU0+XXtRgwmzIf1SeKSGAv+2scAlW6JR5PMFo6FzqqZ64Po79cKODKf3/AAmECqA=="], + + "@biomejs/cli-linux-x64": ["@biomejs/cli-linux-x64@1.9.4", "", { "os": "linux", "cpu": "x64" }, "sha512-lRCJv/Vi3Vlwmbd6K+oQ0KhLHMAysN8lXoCI7XeHlxaajk06u7G+UsFSO01NAs5iYuWKmVZjmiOzJ0OJmGsMwg=="], + + "@biomejs/cli-linux-x64-musl": ["@biomejs/cli-linux-x64-musl@1.9.4", "", { "os": "linux", "cpu": "x64" }, "sha512-gEhi/jSBhZ2m6wjV530Yy8+fNqG8PAinM3oV7CyO+6c3CEh16Eizm21uHVsyVBEB6RIM8JHIl6AGYCv6Q6Q9Tg=="], + + "@biomejs/cli-win32-arm64": ["@biomejs/cli-win32-arm64@1.9.4", "", { "os": "win32", "cpu": "arm64" }, "sha512-tlbhLk+WXZmgwoIKwHIHEBZUwxml7bRJgk0X2sPyNR3S93cdRq6XulAZRQJ17FYGGzWne0fgrXBKpl7l4M87Hg=="], + + "@biomejs/cli-win32-x64": ["@biomejs/cli-win32-x64@1.9.4", "", { "os": "win32", "cpu": "x64" }, "sha512-8Y5wMhVIPaWe6jw2H+KlEm4wP/f7EW3810ZLmDlrEEy5KvBsb9ECEfu/kMWD484ijfQ8+nIi0giMgu9g1UAuuA=="], + + "@dataplan/json": ["@dataplan/json@0.0.1-beta.28", "", { "dependencies": { "chalk": "^4.1.2", "tslib": "^2.6.2" }, "peerDependencies": { "grafast": "^0.1.1-beta.19" } }, "sha512-MtRzHpOolBWtW8xSLJVBLPfOC4NItOSY9XE6O3WHmL7+aEbUc2yFTOEaFdUnQbKea68m4CAUevkBHaq0ZwxY9Q=="], + + "@dataplan/pg": ["@dataplan/pg@0.0.1-beta.30", "", { "dependencies": { "@graphile/lru": "^5.0.0-beta.3", "@types/node": "^20.5.7", "chalk": "^4.1.2", "debug": "^4.3.4", "eventemitter3": "^5.0.1", "pg-sql2": "^5.0.0-beta.7", "postgres-array": "~3.0.2", "postgres-range": "^1.1.3", "tslib": "^2.6.2" }, "peerDependencies": { "@dataplan/json": "^0.0.1-beta.28", "grafast": "^0.1.1-beta.19", "graphile-config": "^0.0.1-beta.14", "pg": "^8.7.1" }, "optionalPeers": ["graphile-config", "pg"] }, "sha512-6R2Kcq2A1vip8Vq9zma8YXVgreplT+T5If5uMkIlVDmkMMSW+EyHu4B8C/iO2DTj7/PjQqjsbljtWjJrTTT0SQ=="], + + "@drizzle-team/brocli": ["@drizzle-team/brocli@0.10.2", "", {}, "sha512-z33Il7l5dKjUgGULTqBsQBQwckHh5AbIuxhdsIxDDiZAzBOrZO6q9ogcWC65kU382AfynTfgNumVcNIjuIua6w=="], + + "@emotion/is-prop-valid": ["@emotion/is-prop-valid@1.3.1", "", { "dependencies": { "@emotion/memoize": "^0.9.0" } }, "sha512-/ACwoqx7XQi9knQs/G0qKvv5teDMhD7bXYns9N/wM8ah8iNb8jZ2uNO0YOgiq2o2poIvVtJS2YALasQuMSQ7Kw=="], + + "@emotion/memoize": ["@emotion/memoize@0.9.0", "", {}, "sha512-30FAj7/EoJ5mwVPOWhAyCX+FPfMDrVecJAM+Iw9NRoSl4BBAQeqj4cApHHUXOVvIPgLVDsCFoz/hGD+5QQD1GQ=="], + + "@envelop/core": ["@envelop/core@5.0.2", "", { "dependencies": { "@envelop/types": "5.0.0", "tslib": "^2.5.0" } }, "sha512-tVL6OrMe6UjqLosiE+EH9uxh2TQC0469GwF4tE014ugRaDDKKVWwFwZe0TBMlcyHKh5MD4ZxktWo/1hqUxIuhw=="], + + "@envelop/types": ["@envelop/types@5.0.0", "", { "dependencies": { "tslib": "^2.5.0" } }, "sha512-IPjmgSc4KpQRlO4qbEDnBEixvtb06WDmjKfi/7fkZaryh5HuOmTtixe1EupQI5XfXO8joc3d27uUZ0QdC++euA=="], + + "@esbuild-kit/core-utils": ["@esbuild-kit/core-utils@3.3.2", "", { "dependencies": { "esbuild": "~0.18.20", "source-map-support": "^0.5.21" } }, "sha512-sPRAnw9CdSsRmEtnsl2WXWdyquogVpB3yZ3dgwJfe8zrOzTsV7cJvmwrKVa+0ma5BoiGJ+BoqkMvawbayKUsqQ=="], + + "@esbuild-kit/esm-loader": ["@esbuild-kit/esm-loader@2.6.5", "", { "dependencies": { "@esbuild-kit/core-utils": "^3.3.2", "get-tsconfig": "^4.7.0" } }, "sha512-FxEMIkJKnodyA1OaCUoEvbYRkoZlLZ4d/eXFu9Fh8CbBBgP5EmZxrfTRyN0qpXZ4vOvqnE5YdRdcrmUUXuU+dA=="], + + "@esbuild/aix-ppc64": ["@esbuild/aix-ppc64@0.19.12", "", { "os": "aix", "cpu": "ppc64" }, "sha512-bmoCYyWdEL3wDQIVbcyzRyeKLgk2WtWLTWz1ZIAZF/EGbNOwSA6ew3PftJ1PqMiOOGu0OyFMzG53L0zqIpPeNA=="], + + "@esbuild/android-arm": ["@esbuild/android-arm@0.19.12", "", { "os": "android", "cpu": "arm" }, "sha512-qg/Lj1mu3CdQlDEEiWrlC4eaPZ1KztwGJ9B6J+/6G+/4ewxJg7gqj8eVYWvao1bXrqGiW2rsBZFSX3q2lcW05w=="], + + "@esbuild/android-arm64": ["@esbuild/android-arm64@0.19.12", "", { "os": "android", "cpu": "arm64" }, "sha512-P0UVNGIienjZv3f5zq0DP3Nt2IE/3plFzuaS96vihvD0Hd6H/q4WXUGpCxD/E8YrSXfNyRPbpTq+T8ZQioSuPA=="], + + "@esbuild/android-x64": ["@esbuild/android-x64@0.19.12", "", { "os": "android", "cpu": "x64" }, "sha512-3k7ZoUW6Q6YqhdhIaq/WZ7HwBpnFBlW905Fa4s4qWJyiNOgT1dOqDiVAQFwBH7gBRZr17gLrlFCRzF6jFh7Kew=="], + + "@esbuild/darwin-arm64": ["@esbuild/darwin-arm64@0.19.12", "", { "os": "darwin", "cpu": "arm64" }, "sha512-B6IeSgZgtEzGC42jsI+YYu9Z3HKRxp8ZT3cqhvliEHovq8HSX2YX8lNocDn79gCKJXOSaEot9MVYky7AKjCs8g=="], + + "@esbuild/darwin-x64": ["@esbuild/darwin-x64@0.19.12", "", { "os": "darwin", "cpu": "x64" }, "sha512-hKoVkKzFiToTgn+41qGhsUJXFlIjxI/jSYeZf3ugemDYZldIXIxhvwN6erJGlX4t5h417iFuheZ7l+YVn05N3A=="], + + "@esbuild/freebsd-arm64": ["@esbuild/freebsd-arm64@0.19.12", "", { "os": "freebsd", "cpu": "arm64" }, "sha512-4aRvFIXmwAcDBw9AueDQ2YnGmz5L6obe5kmPT8Vd+/+x/JMVKCgdcRwH6APrbpNXsPz+K653Qg8HB/oXvXVukA=="], + + "@esbuild/freebsd-x64": ["@esbuild/freebsd-x64@0.19.12", "", { "os": "freebsd", "cpu": "x64" }, "sha512-EYoXZ4d8xtBoVN7CEwWY2IN4ho76xjYXqSXMNccFSx2lgqOG/1TBPW0yPx1bJZk94qu3tX0fycJeeQsKovA8gg=="], + + "@esbuild/linux-arm": ["@esbuild/linux-arm@0.19.12", "", { "os": "linux", "cpu": "arm" }, "sha512-J5jPms//KhSNv+LO1S1TX1UWp1ucM6N6XuL6ITdKWElCu8wXP72l9MM0zDTzzeikVyqFE6U8YAV9/tFyj0ti+w=="], + + "@esbuild/linux-arm64": ["@esbuild/linux-arm64@0.19.12", "", { "os": "linux", "cpu": "arm64" }, "sha512-EoTjyYyLuVPfdPLsGVVVC8a0p1BFFvtpQDB/YLEhaXyf/5bczaGeN15QkR+O4S5LeJ92Tqotve7i1jn35qwvdA=="], + + "@esbuild/linux-ia32": ["@esbuild/linux-ia32@0.19.12", "", { "os": "linux", "cpu": "ia32" }, "sha512-Thsa42rrP1+UIGaWz47uydHSBOgTUnwBwNq59khgIwktK6x60Hivfbux9iNR0eHCHzOLjLMLfUMLCypBkZXMHA=="], + + "@esbuild/linux-loong64": ["@esbuild/linux-loong64@0.19.12", "", { "os": "linux", "cpu": "none" }, "sha512-LiXdXA0s3IqRRjm6rV6XaWATScKAXjI4R4LoDlvO7+yQqFdlr1Bax62sRwkVvRIrwXxvtYEHHI4dm50jAXkuAA=="], + + "@esbuild/linux-mips64el": ["@esbuild/linux-mips64el@0.19.12", "", { "os": "linux", "cpu": "none" }, "sha512-fEnAuj5VGTanfJ07ff0gOA6IPsvrVHLVb6Lyd1g2/ed67oU1eFzL0r9WL7ZzscD+/N6i3dWumGE1Un4f7Amf+w=="], + + "@esbuild/linux-ppc64": ["@esbuild/linux-ppc64@0.19.12", "", { "os": "linux", "cpu": "ppc64" }, "sha512-nYJA2/QPimDQOh1rKWedNOe3Gfc8PabU7HT3iXWtNUbRzXS9+vgB0Fjaqr//XNbd82mCxHzik2qotuI89cfixg=="], + + "@esbuild/linux-riscv64": ["@esbuild/linux-riscv64@0.19.12", "", { "os": "linux", "cpu": "none" }, "sha512-2MueBrlPQCw5dVJJpQdUYgeqIzDQgw3QtiAHUC4RBz9FXPrskyyU3VI1hw7C0BSKB9OduwSJ79FTCqtGMWqJHg=="], + + "@esbuild/linux-s390x": ["@esbuild/linux-s390x@0.19.12", "", { "os": "linux", "cpu": "s390x" }, "sha512-+Pil1Nv3Umes4m3AZKqA2anfhJiVmNCYkPchwFJNEJN5QxmTs1uzyy4TvmDrCRNT2ApwSari7ZIgrPeUx4UZDg=="], + + "@esbuild/linux-x64": ["@esbuild/linux-x64@0.19.12", "", { "os": "linux", "cpu": "x64" }, "sha512-B71g1QpxfwBvNrfyJdVDexenDIt1CiDN1TIXLbhOw0KhJzE78KIFGX6OJ9MrtC0oOqMWf+0xop4qEU8JrJTwCg=="], + + "@esbuild/netbsd-x64": ["@esbuild/netbsd-x64@0.19.12", "", { "os": "none", "cpu": "x64" }, "sha512-3ltjQ7n1owJgFbuC61Oj++XhtzmymoCihNFgT84UAmJnxJfm4sYCiSLTXZtE00VWYpPMYc+ZQmB6xbSdVh0JWA=="], + + "@esbuild/openbsd-x64": ["@esbuild/openbsd-x64@0.19.12", "", { "os": "openbsd", "cpu": "x64" }, "sha512-RbrfTB9SWsr0kWmb9srfF+L933uMDdu9BIzdA7os2t0TXhCRjrQyCeOt6wVxr79CKD4c+p+YhCj31HBkYcXebw=="], + + "@esbuild/sunos-x64": ["@esbuild/sunos-x64@0.19.12", "", { "os": "sunos", "cpu": "x64" }, "sha512-HKjJwRrW8uWtCQnQOz9qcU3mUZhTUQvi56Q8DPTLLB+DawoiQdjsYq+j+D3s9I8VFtDr+F9CjgXKKC4ss89IeA=="], + + "@esbuild/win32-arm64": ["@esbuild/win32-arm64@0.19.12", "", { "os": "win32", "cpu": "arm64" }, "sha512-URgtR1dJnmGvX864pn1B2YUYNzjmXkuJOIqG2HdU62MVS4EHpU2946OZoTMnRUHklGtJdJZ33QfzdjGACXhn1A=="], + + "@esbuild/win32-ia32": ["@esbuild/win32-ia32@0.19.12", "", { "os": "win32", "cpu": "ia32" }, "sha512-+ZOE6pUkMOJfmxmBZElNOx72NKpIa/HFOMGzu8fqzQJ5kgf6aTGrcJaFsNiVMH4JKpMipyK+7k0n2UXN7a8YKQ=="], + + "@esbuild/win32-x64": ["@esbuild/win32-x64@0.19.12", "", { "os": "win32", "cpu": "x64" }, "sha512-T1QyPSDCyMXaO3pzBkF96E8xMkiRYbUEZADd29SyPGabqxMViNoii+NcK7eWJAEoU6RZyEm5lVSIjTmcdoB9HA=="], + + "@faker-js/faker": ["@faker-js/faker@9.3.0", "", {}, "sha512-r0tJ3ZOkMd9xsu3VRfqlFR6cz0V/jFYRswAIpC+m/DIfAUXq7g8N7wTAlhSANySXYGKzGryfDXwtwsY8TxEIDw=="], + + "@graphile/lru": ["@graphile/lru@5.0.0-beta.3", "", { "dependencies": { "tslib": "^2.6.2" } }, "sha512-atoHRmLuYMCoMeCjS1pIA442eqAHwFZ3+bnjm3Mn+kAvujyXzGs8uup39gfmMgxOFjRAPNmPEiPw2oJUbOk65Q=="], + + "@graphile/pg-aggregates": ["@graphile/pg-aggregates@0.2.0-beta.7", "", { "peerDependencies": { "graphile-build": "^5.0.0-beta.27", "graphile-build-pg": "^5.0.0-beta.31", "graphql": "^16.1.0-experimental-stream-defer.6" }, "optionalPeers": ["graphile-build", "graphile-build-pg", "graphql"] }, "sha512-XaVAzlB1S1UzAmet7dZcoW3AnDGT2qrQqXCRIGJKeu7i76D/SIR5hZs+mytYOjfwuJsHsBBDtmlRORMaUKkJxw=="], + + "@graphile/simplify-inflection": ["@graphile/simplify-inflection@8.0.0-beta.5", "", {}, "sha512-1XaXGe5i5wRR/Uh2cvkt9KlFoXq/e7a3GYSdZtQnp68gIOdgcys2T24VNYsiekBhzcp5CCCcUJJdUvV2bvS21Q=="], + + "@graphql-tools/executor": ["@graphql-tools/executor@1.3.11", "", { "dependencies": { "@graphql-tools/utils": "^10.7.1", "@graphql-typed-document-node/core": "^3.2.0", "@repeaterjs/repeater": "^3.0.4", "@whatwg-node/disposablestack": "^0.0.5", "tslib": "^2.4.0", "value-or-promise": "^1.0.12" }, "peerDependencies": { "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" } }, "sha512-7Q1IwIuSgarDeaCOZ1VMZvGaWY7cD2jj+uTNn/PsenYYKqFWKH30UylEK67ZTpVMXqBJctFaxVnPP7KM0+LPWg=="], + + "@graphql-tools/merge": ["@graphql-tools/merge@9.0.16", "", { "dependencies": { "@graphql-tools/utils": "^10.7.1", "tslib": "^2.4.0" }, "peerDependencies": { "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" } }, "sha512-Ek2ee3e4qMsMM2pBBZpDmL7j51b3F5qYsHtckO05e8zvOWuS28yBu+VhZYOtUPr/q+lBWhL+0rvFXaUwHZEuQQ=="], + + "@graphql-tools/schema": ["@graphql-tools/schema@10.0.15", "", { "dependencies": { "@graphql-tools/merge": "^9.0.16", "@graphql-tools/utils": "^10.7.1", "tslib": "^2.4.0", "value-or-promise": "^1.0.12" }, "peerDependencies": { "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" } }, "sha512-QAD9XeC/iaVugMYWet73Vz/4wp1qmKHYPj1z/TyIW/fX41oNmNSBGNqdstMsvSG97PWLhFgbUqVCvY+1KesQKw=="], + + "@graphql-tools/utils": ["@graphql-tools/utils@10.7.1", "", { "dependencies": { "@graphql-typed-document-node/core": "^3.1.1", "cross-inspect": "1.0.1", "dset": "^3.1.2", "tslib": "^2.4.0" }, "peerDependencies": { "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" } }, "sha512-mpHAA5EddtxvnkHIBEEon5++tvL5T+j3OeOP4CAXbguAK2RBRM9DVVsoc9U68vSPLJjBRGp+b5NjlRn04g9rMA=="], + + "@graphql-typed-document-node/core": ["@graphql-typed-document-node/core@3.2.0", "", { "peerDependencies": { "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" } }, "sha512-mB9oAsNCm9aM3/SOv4YtBMqZbYj10R7dkq8byBqxGY/ncFwhf2oQzMV+LCRlWoDSEBJ3COiR1yeDvMtsoOsuFQ=="], + + "@graphql-yoga/logger": ["@graphql-yoga/logger@2.0.0", "", { "dependencies": { "tslib": "^2.5.2" } }, "sha512-Mg8psdkAp+YTG1OGmvU+xa6xpsAmSir0hhr3yFYPyLNwzUj95DdIwsMpKadDj9xDpYgJcH3Hp/4JMal9DhQimA=="], + + "@graphql-yoga/subscription": ["@graphql-yoga/subscription@5.0.2", "", { "dependencies": { "@graphql-yoga/typed-event-target": "^3.0.1", "@repeaterjs/repeater": "^3.0.4", "@whatwg-node/events": "^0.1.0", "tslib": "^2.5.2" } }, "sha512-KGacW1FtUXR5e3qk4YmEFQRGTov8lOkpW7syjTD3EN2t5HRWrSsut2LwjVdK+HcP3H9UEuZ9RXw/+shqV+1exQ=="], + + "@graphql-yoga/typed-event-target": ["@graphql-yoga/typed-event-target@3.0.1", "", { "dependencies": { "@repeaterjs/repeater": "^3.0.4", "tslib": "^2.5.2" } }, "sha512-SWVkyFivzlDqGTBrGTWTNg+aFGP/cIiotirUFnvwuUGt2gla6UJoKhII6aPoHNg3/5vpUAL1KzyoaXMK2PO0JA=="], + + "@isaacs/cliui": ["@isaacs/cliui@8.0.2", "", { "dependencies": { "string-width": "^5.1.2", "string-width-cjs": "npm:string-width@^4.2.0", "strip-ansi": "^7.0.1", "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", "wrap-ansi": "^8.1.0", "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" } }, "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA=="], + + "@jridgewell/gen-mapping": ["@jridgewell/gen-mapping@0.3.8", "", { "dependencies": { "@jridgewell/set-array": "^1.2.1", "@jridgewell/sourcemap-codec": "^1.4.10", "@jridgewell/trace-mapping": "^0.3.24" } }, "sha512-imAbBGkb+ebQyxKgzv5Hu2nmROxoDOXHh80evxdoXNOrvAnVx7zimzc1Oo5h9RlfV4vPXaE2iM5pOFbvOCClWA=="], + + "@jridgewell/resolve-uri": ["@jridgewell/resolve-uri@3.1.2", "", {}, "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw=="], + + "@jridgewell/set-array": ["@jridgewell/set-array@1.2.1", "", {}, "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A=="], + + "@jridgewell/sourcemap-codec": ["@jridgewell/sourcemap-codec@1.5.0", "", {}, "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ=="], + + "@jridgewell/trace-mapping": ["@jridgewell/trace-mapping@0.3.25", "", { "dependencies": { "@jridgewell/resolve-uri": "^3.1.0", "@jridgewell/sourcemap-codec": "^1.4.14" } }, "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ=="], + + "@kamilkisiela/fast-url-parser": ["@kamilkisiela/fast-url-parser@1.1.4", "", {}, "sha512-gbkePEBupNydxCelHCESvFSFM8XPh1Zs/OAVRW/rKpEqPAl5PbOM90Si8mv9bvnR53uPD2s/FiRxdvSejpRJew=="], + + "@pkgjs/parseargs": ["@pkgjs/parseargs@0.11.0", "", {}, "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg=="], + + "@repeaterjs/repeater": ["@repeaterjs/repeater@3.0.6", "", {}, "sha512-Javneu5lsuhwNCryN+pXH93VPQ8g0dBX7wItHFgYiwQmzE1sVdg5tWHiOgHywzL2W21XQopa7IwIEnNbmeUJYA=="], + + "@tsconfig/node20": ["@tsconfig/node20@20.1.4", "", {}, "sha512-sqgsT69YFeLWf5NtJ4Xq/xAF8p4ZQHlmGW74Nu2tD4+g5fAsposc4ZfaaPixVu4y01BEiDCWLRDCvDM5JOsRxg=="], + + "@types/bun": ["@types/bun@1.1.14", "", { "dependencies": { "bun-types": "1.1.37" } }, "sha512-opVYiFGtO2af0dnWBdZWlioLBoxSdDO5qokaazLhq8XQtGZbY4pY3/JxY8Zdf/hEwGubbp7ErZXoN1+h2yesxA=="], + + "@types/interpret": ["@types/interpret@1.1.3", "", { "dependencies": { "@types/node": "*" } }, "sha512-uBaBhj/BhilG58r64mtDb/BEdH51HIQLgP5bmWzc5qCtFMja8dCk/IOJmk36j0lbi9QHwI6sbtUNGuqXdKCAtQ=="], + + "@types/node": ["@types/node@22.10.4", "", { "dependencies": { "undici-types": "~6.20.0" } }, "sha512-99l6wv4HEzBQhvaU/UGoeBoCK61SCROQaCCGyQSgX2tEQ3rKkNZ2S7CEWnS/4s1LV+8ODdK21UeyR1fHP2mXug=="], + + "@types/pg": ["@types/pg@8.11.10", "", { "dependencies": { "@types/node": "*", "pg-protocol": "*", "pg-types": "^4.0.1" } }, "sha512-LczQUW4dbOQzsH2RQ5qoeJ6qJPdrcM/DcMLoqWQkMLMsq83J5lAX3LXjdkWdpscFy67JSOWDnh7Ny/sPFykmkg=="], + + "@types/pluralize": ["@types/pluralize@0.0.30", "", {}, "sha512-kVww6xZrW/db5BR9OqiT71J9huRdQ+z/r+LbDuT7/EK50mCmj5FoaIARnVv0rvjUS/YpDox0cDU9lpQT011VBA=="], + + "@types/semver": ["@types/semver@7.5.8", "", {}, "sha512-I8EUhyrgfLrcTkzV3TSsGyl1tSuPrEDzr0yd5m90UgNxQkyDXULk3b6MlQqTCpZpNtWe1K0hzclnZkTcLBe2UQ=="], + + "@types/ws": ["@types/ws@8.5.13", "", { "dependencies": { "@types/node": "*" } }, "sha512-osM/gWBTPKgHV8XkTunnegTRIsvF6owmf5w+JtAfOw472dptdm0dlGv4xCt6GwQRcC2XVOvvRE/0bAoQcL2QkA=="], + + "@whatwg-node/disposablestack": ["@whatwg-node/disposablestack@0.0.5", "", { "dependencies": { "tslib": "^2.6.3" } }, "sha512-9lXugdknoIequO4OYvIjhygvfSEgnO8oASLqLelnDhkRjgBZhc39shC3QSlZuyDO9bgYSIVa2cHAiN+St3ty4w=="], + + "@whatwg-node/events": ["@whatwg-node/events@0.1.2", "", { "dependencies": { "tslib": "^2.6.3" } }, "sha512-ApcWxkrs1WmEMS2CaLLFUEem/49erT3sxIVjpzU5f6zmVcnijtDSrhoK2zVobOIikZJdH63jdAXOrvjf6eOUNQ=="], + + "@whatwg-node/fetch": ["@whatwg-node/fetch@0.10.1", "", { "dependencies": { "@whatwg-node/node-fetch": "^0.7.1", "urlpattern-polyfill": "^10.0.0" } }, "sha512-gmPOLrsjSZWEZlr9Oe5+wWFBq3CG6fN13rGlM91Jsj/vZ95G9CCvrORGBAxMXy0AJGiC83aYiHXn3JzTzXQmbA=="], + + "@whatwg-node/node-fetch": ["@whatwg-node/node-fetch@0.7.5", "", { "dependencies": { "@kamilkisiela/fast-url-parser": "^1.1.4", "@whatwg-node/disposablestack": "^0.0.5", "busboy": "^1.6.0", "fast-querystring": "^1.1.1", "tslib": "^2.6.3" } }, "sha512-t7kGrt2fdfNvzy1LCAE9/OnIyMtizgFhgJmk7iLJwQsLmR7S86F8Q4aDRPbCfo7pISJP6Fx/tPdfFNjHS23WTA=="], + + "@whatwg-node/server": ["@whatwg-node/server@0.9.65", "", { "dependencies": { "@whatwg-node/disposablestack": "^0.0.5", "@whatwg-node/fetch": "^0.10.0", "tslib": "^2.6.3" } }, "sha512-CnYTFEUJkbbAcuBXnXirVIgKBfs2YA6sSGjxeq07AUiyXuoQ0fbvTIQoteMglmn09QeGzcH/l0B7nIml83xvVw=="], + + "ansi-regex": ["ansi-regex@5.0.1", "", {}, "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ=="], + + "ansi-styles": ["ansi-styles@4.3.0", "", { "dependencies": { "color-convert": "^2.0.1" } }, "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg=="], + + "balanced-match": ["balanced-match@1.0.2", "", {}, "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw=="], + + "brace-expansion": ["brace-expansion@2.0.1", "", { "dependencies": { "balanced-match": "^1.0.0" } }, "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA=="], + + "buffer-equal-constant-time": ["buffer-equal-constant-time@1.0.1", "", {}, "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA=="], + + "buffer-from": ["buffer-from@1.1.2", "", {}, "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ=="], + + "bun-types": ["bun-types@1.1.37", "", { "dependencies": { "@types/node": "~20.12.8", "@types/ws": "~8.5.10" } }, "sha512-C65lv6eBr3LPJWFZ2gswyrGZ82ljnH8flVE03xeXxKhi2ZGtFiO4isRKTKnitbSqtRAcaqYSR6djt1whI66AbA=="], + + "busboy": ["busboy@1.6.0", "", { "dependencies": { "streamsearch": "^1.1.0" } }, "sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA=="], + + "chalk": ["chalk@5.4.1", "", {}, "sha512-zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+U3w=="], + + "cliui": ["cliui@8.0.1", "", { "dependencies": { "string-width": "^4.2.0", "strip-ansi": "^6.0.1", "wrap-ansi": "^7.0.0" } }, "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ=="], + + "color-convert": ["color-convert@2.0.1", "", { "dependencies": { "color-name": "~1.1.4" } }, "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ=="], + + "color-name": ["color-name@1.1.4", "", {}, "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="], + + "cross-inspect": ["cross-inspect@1.0.1", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-Pcw1JTvZLSJH83iiGWt6fRcT+BjZlCDRVwYLbUcHzv/CRpB7r0MlSrGbIyQvVSNyGnbt7G4AXuyCiDR3POvZ1A=="], + + "cross-spawn": ["cross-spawn@7.0.6", "", { "dependencies": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", "which": "^2.0.1" } }, "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA=="], + + "dayjs": ["dayjs@1.11.13", "", {}, "sha512-oaMBel6gjolK862uaPQOVTA7q3TZhuSvuMQAAglQDOWYO9A91IrAOUJEyKVlqJlHE0vq5p5UXxzdPfMH/x6xNg=="], + + "debug": ["debug@4.4.0", "", { "dependencies": { "ms": "^2.1.3" } }, "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA=="], + + "drizzle-kit": ["drizzle-kit@0.30.1", "", { "dependencies": { "@drizzle-team/brocli": "^0.10.2", "@esbuild-kit/esm-loader": "^2.5.5", "esbuild": "^0.19.7", "esbuild-register": "^3.5.0" }, "bin": { "drizzle-kit": "bin.cjs" } }, "sha512-HmA/NeewvHywhJ2ENXD3KvOuM/+K2dGLJfxVfIHsGwaqKICJnS+Ke2L6UcSrSrtMJLJaT0Im1Qv4TFXfaZShyw=="], + + "drizzle-orm": ["drizzle-orm@0.38.3", "", { "peerDependencies": { "@aws-sdk/client-rds-data": ">=3", "@cloudflare/workers-types": ">=4", "@electric-sql/pglite": ">=0.2.0", "@libsql/client": ">=0.10.0", "@libsql/client-wasm": ">=0.10.0", "@neondatabase/serverless": ">=0.10.0", "@op-engineering/op-sqlite": ">=2", "@opentelemetry/api": "^1.4.1", "@planetscale/database": ">=1", "@prisma/client": "*", "@tidbcloud/serverless": "*", "@types/better-sqlite3": "*", "@types/pg": "*", "@types/react": ">=18", "@types/sql.js": "*", "@vercel/postgres": ">=0.8.0", "@xata.io/client": "*", "better-sqlite3": ">=7", "bun-types": "*", "expo-sqlite": ">=14.0.0", "knex": "*", "kysely": "*", "mysql2": ">=2", "pg": ">=8", "postgres": ">=3", "react": ">=18", "sql.js": ">=1", "sqlite3": ">=5" }, "optionalPeers": ["@aws-sdk/client-rds-data", "@cloudflare/workers-types", "@electric-sql/pglite", "@libsql/client", "@libsql/client-wasm", "@neondatabase/serverless", "@op-engineering/op-sqlite", "@opentelemetry/api", "@planetscale/database", "@prisma/client", "@tidbcloud/serverless", "@types/better-sqlite3", "@types/pg", "@types/react", "@types/sql.js", "@vercel/postgres", "@xata.io/client", "better-sqlite3", "bun-types", "expo-sqlite", "knex", "kysely", "mysql2", "pg", "postgres", "react", "sql.js", "sqlite3"] }, "sha512-w41Y+PquMpSff/QDRGdItG0/aWca+/J3Sda9PPGkTxBtjWQvgU1jxlFBXdjog5tYvTu58uvi3PwR1NuCx0KeZg=="], + + "drizzle-seed": ["drizzle-seed@0.3.0", "", { "dependencies": { "pure-rand": "^6.1.0" }, "peerDependencies": { "drizzle-orm": ">=0.36.4" }, "optionalPeers": ["drizzle-orm"] }, "sha512-8WSt1WdtYWqClsCxKeAmU/bw8X+weYtuA/h8M3gVc8LiHU2AZX5ZUnvUxwdBsP+SkN26ARGhmU0XIJ2OEmHmfA=="], + + "dset": ["dset@3.1.4", "", {}, "sha512-2QF/g9/zTaPDc3BjNcVTGoBbXBgYfMTTceLaYcFJ/W9kggFUkhxD/hMEeuLKbugyef9SqAx8cpgwlIP/jinUTA=="], + + "eastasianwidth": ["eastasianwidth@0.2.0", "", {}, "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA=="], + + "ecdsa-sig-formatter": ["ecdsa-sig-formatter@1.0.11", "", { "dependencies": { "safe-buffer": "^5.0.1" } }, "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ=="], + + "emoji-regex": ["emoji-regex@8.0.0", "", {}, "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="], + + "esbuild": ["esbuild@0.19.12", "", { "optionalDependencies": { "@esbuild/aix-ppc64": "0.19.12", "@esbuild/android-arm": "0.19.12", "@esbuild/android-arm64": "0.19.12", "@esbuild/android-x64": "0.19.12", "@esbuild/darwin-arm64": "0.19.12", "@esbuild/darwin-x64": "0.19.12", "@esbuild/freebsd-arm64": "0.19.12", "@esbuild/freebsd-x64": "0.19.12", "@esbuild/linux-arm": "0.19.12", "@esbuild/linux-arm64": "0.19.12", "@esbuild/linux-ia32": "0.19.12", "@esbuild/linux-loong64": "0.19.12", "@esbuild/linux-mips64el": "0.19.12", "@esbuild/linux-ppc64": "0.19.12", "@esbuild/linux-riscv64": "0.19.12", "@esbuild/linux-s390x": "0.19.12", "@esbuild/linux-x64": "0.19.12", "@esbuild/netbsd-x64": "0.19.12", "@esbuild/openbsd-x64": "0.19.12", "@esbuild/sunos-x64": "0.19.12", "@esbuild/win32-arm64": "0.19.12", "@esbuild/win32-ia32": "0.19.12", "@esbuild/win32-x64": "0.19.12" }, "bin": { "esbuild": "bin/esbuild" } }, "sha512-aARqgq8roFBj054KvQr5f1sFu0D65G+miZRCuJyJ0G13Zwx7vRar5Zhn2tkQNzIXcBrNVsv/8stehpj+GAjgbg=="], + + "esbuild-register": ["esbuild-register@3.6.0", "", { "dependencies": { "debug": "^4.3.4" }, "peerDependencies": { "esbuild": ">=0.12 <1" } }, "sha512-H2/S7Pm8a9CL1uhp9OvjwrBh5Pvx0H8qVOxNu8Wed9Y7qv56MPtq+GGM8RJpq6glYJn9Wspr8uw7l55uyinNeg=="], + + "escalade": ["escalade@3.2.0", "", {}, "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA=="], + + "eventemitter3": ["eventemitter3@5.0.1", "", {}, "sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA=="], + + "fast-decode-uri-component": ["fast-decode-uri-component@1.0.1", "", {}, "sha512-WKgKWg5eUxvRZGwW8FvfbaH7AXSh2cL+3j5fMGzUMCxWBJ3dV3a7Wz8y2f/uQ0e3B6WmodD3oS54jTQ9HVTIIg=="], + + "fast-querystring": ["fast-querystring@1.1.2", "", { "dependencies": { "fast-decode-uri-component": "^1.0.1" } }, "sha512-g6KuKWmFXc0fID8WWH0jit4g0AGBoJhCkJMb1RmbsSEUNvQ+ZC8D6CUZ+GtF8nMzSPXnhiePyyqqipzNNEnHjg=="], + + "follow-redirects": ["follow-redirects@1.15.9", "", {}, "sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ=="], + + "foreground-child": ["foreground-child@3.3.0", "", { "dependencies": { "cross-spawn": "^7.0.0", "signal-exit": "^4.0.1" } }, "sha512-Ld2g8rrAyMYFXBhEqMz8ZAHBi4J4uS1i/CxGMDnjyFWddMXLVcDp051DZfu+t7+ab7Wv6SMqpWmyFIj5UbfFvg=="], + + "get-caller-file": ["get-caller-file@2.0.5", "", {}, "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg=="], + + "get-tsconfig": ["get-tsconfig@4.8.1", "", { "dependencies": { "resolve-pkg-maps": "^1.0.0" } }, "sha512-k9PN+cFBmaLWtVz29SkUoqU5O0slLuHJXt/2P+tMVFT+phsSGXGkp9t3rQIqdz0e+06EHNGs3oM6ZX1s2zHxRg=="], + + "glob": ["glob@10.4.5", "", { "dependencies": { "foreground-child": "^3.1.0", "jackspeak": "^3.1.2", "minimatch": "^9.0.4", "minipass": "^7.1.2", "package-json-from-dist": "^1.0.0", "path-scurry": "^1.11.1" }, "bin": { "glob": "dist/esm/bin.mjs" } }, "sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg=="], + + "globals": ["globals@11.12.0", "", {}, "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA=="], + + "grafast": ["grafast@0.1.1-beta.19", "", { "dependencies": { "@graphile/lru": "^5.0.0-beta.3", "chalk": "^4.1.2", "debug": "^4.3.4", "eventemitter3": "^5.0.1", "graphile-config": "^0.0.1-beta.14", "graphql": "^16.1.0-experimental-stream-defer.6", "iterall": "^1.3.0", "tamedevil": "^0.0.0-beta.7", "tslib": "^2.6.2" }, "peerDependencies": { "@envelop/core": "^5.0.0" }, "optionalPeers": ["@envelop/core"] }, "sha512-EbttEa9DQEScYqSZaS5PIVFEwZ7tTgjV0vqxzAyRH90iCDKqrt3dZD8+8GNQLOznnKCCsAFnYTiRUeAi29eR/A=="], + + "grafserv": ["grafserv@0.1.1-beta.21", "", { "dependencies": { "@graphile/lru": "^5.0.0-beta.3", "debug": "^4.3.4", "eventemitter3": "^5.0.1", "graphile-config": "^0.0.1-beta.14", "graphql-ws": "^5.14.0", "ruru": "^2.0.0-beta.19", "tslib": "^2.6.2" }, "peerDependencies": { "@envelop/core": "^5.0.0", "grafast": "^0.1.1-beta.19", "graphql": "^16.1.0-experimental-stream-defer.6", "h3": "^1.13.0", "ws": "^8.12.1" }, "optionalPeers": ["@envelop/core", "h3", "ws"] }, "sha512-BmKZPf8Uxbih6KTVHhrccrb4ccfdkcbcHO6fqBPsQHCDUGDLeFUGejixiD1SbhqapvkUj+B/8Gx8y+v2n3xK4Q=="], + + "graphile-build": ["graphile-build@5.0.0-beta.31", "", { "dependencies": { "@types/node": "^20.5.7", "@types/pluralize": "^0.0.30", "@types/semver": "^7.5.1", "chalk": "^4.1.2", "debug": "^4.3.4", "graphile-config": "^0.0.1-beta.14", "graphql": "^16.1.0-experimental-stream-defer.6", "lodash": "^4.17.21", "pluralize": "^7.0.0", "semver": "^7.5.4", "tamedevil": "^0.0.0-beta.7", "tslib": "^2.6.2" }, "peerDependencies": { "grafast": "^0.1.1-beta.19" } }, "sha512-yFnKgngSLwzx9HhZY0ysLCR9t1fn2WNAER/+Aczk9wj/lrVi9GcfTb4QIi7Y9yzNLmo+smkJ0+jx1+7kxWknOg=="], + + "graphile-build-pg": ["graphile-build-pg@5.0.0-beta.36", "", { "dependencies": { "@types/node": "^20.5.7", "debug": "^4.3.4", "graphile-config": "^0.0.1-beta.14", "jsonwebtoken": "^9.0.2", "pg-introspection": "^0.0.1-beta.10", "tslib": "^2.6.2" }, "peerDependencies": { "@dataplan/pg": "^0.0.1-beta.30", "grafast": "^0.1.1-beta.19", "graphile-build": "5.0.0-beta.31", "graphql": "^16.1.0-experimental-stream-defer.6", "pg": "^8.7.1", "pg-sql2": "^5.0.0-beta.7", "tamedevil": "^0.0.0-beta.7" }, "optionalPeers": ["pg"] }, "sha512-V+73qQrEzAEK2eaVDRaS1P1hS8M7XU3KcPh+fM/rijTWKAXnDWpqV7yaRagkGF5dRl8RDjuqR0r2BOg99uwnEg=="], + + "graphile-config": ["graphile-config@0.0.1-beta.14", "", { "dependencies": { "@types/interpret": "^1.1.1", "@types/node": "^20.5.7", "@types/semver": "^7.5.1", "chalk": "^4.1.2", "debug": "^4.3.4", "interpret": "^3.1.1", "semver": "^7.5.4", "tslib": "^2.6.2", "yargs": "^17.7.2" } }, "sha512-3FlhyRKz4LvIbY4AXn4EI8DSTdSYsg0WRfX6U9QeytGta9aiefF1QqSiC1ocXUlNJUMBfm28dy0eL669ljYRwg=="], + + "graphile-export": ["graphile-export@0.0.2-beta.24", "", { "dependencies": { "@babel/generator": "^7.25.6", "@babel/parser": "^7.25.6", "@babel/template": "^7.25.0", "@babel/traverse": "^7.25.6", "@babel/types": "^7.25.6", "@types/node": "^20.5.7", "prettier": "^3.0.3", "tslib": "^2.6.2" }, "peerDependencies": { "eslint": "^8.48.0", "grafast": "^0.1.1-beta.19", "pg-sql2": "^5.0.0-beta.7" }, "optionalPeers": ["eslint", "pg-sql2"] }, "sha512-nu24HgtCc2G5lfAK5EkzWcE6Vv9TTTJrzutTjnOVJ5Zbdp55XBPrk0y0TWJulGjcj3Do3y+gz0T9Ldzil89yxg=="], + + "graphile-utils": ["graphile-utils@5.0.0-beta.36", "", { "dependencies": { "debug": "^4.3.4", "json5": "^2.2.3", "tslib": "^2.6.2" }, "peerDependencies": { "@dataplan/pg": "^0.0.1-beta.30", "grafast": "^0.1.1-beta.19", "graphile-build": "^5.0.0-beta.31", "graphile-build-pg": "^5.0.0-beta.36", "graphile-config": "^0.0.1-beta.14", "graphql": "^16.1.0-experimental-stream-defer.6", "tamedevil": "^0.0.0-beta.7" }, "optionalPeers": ["@dataplan/pg", "graphile-build-pg"] }, "sha512-Bo3PEOzLhlcs/NtaTXb2XSVazQxkQzMLkaxY7f0GWMImMfPZJekJW5zcOKVYLeljjXnfCMGkYsYddvtcwbha5w=="], + + "graphql": ["graphql@16.10.0", "", {}, "sha512-AjqGKbDGUFRKIRCP9tCKiIGHyriz2oHEbPIbEtcSLSs4YjReZOIPQQWek4+6hjw62H9QShXHyaGivGiYVLeYFQ=="], + + "graphql-ws": ["graphql-ws@5.16.0", "", { "peerDependencies": { "graphql": ">=0.11 <=16" } }, "sha512-Ju2RCU2dQMgSKtArPbEtsK5gNLnsQyTNIo/T7cZNp96niC1x0KdJNZV0TIoilceBPQwfb5itrGl8pkFeOUMl4A=="], + + "graphql-yoga": ["graphql-yoga@5.10.8", "", { "dependencies": { "@envelop/core": "^5.0.2", "@graphql-tools/executor": "^1.3.7", "@graphql-tools/schema": "^10.0.11", "@graphql-tools/utils": "^10.6.2", "@graphql-yoga/logger": "^2.0.0", "@graphql-yoga/subscription": "^5.0.2", "@whatwg-node/fetch": "^0.10.1", "@whatwg-node/server": "^0.9.64", "dset": "^3.1.1", "lru-cache": "^10.0.0", "tslib": "^2.8.1" }, "peerDependencies": { "graphql": "^15.2.0 || ^16.0.0" } }, "sha512-a3qJOd7t/sWp6yQ0n+M/7KmhGRm6ulSeY7WTdyb/pPCZGccPW9iLz4O2k0DPsF50k8VHJLS2VSlnZOeqkR2mOg=="], + + "has-flag": ["has-flag@4.0.0", "", {}, "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ=="], + + "hono": ["hono@4.6.15", "", {}, "sha512-OiQwvAOAaI2JrABBH69z5rsctHDzFzIKJge0nYXgtzGJ0KftwLWcBXm1upJC23/omNRtnqM0gjRMbtXshPdqhQ=="], + + "http-proxy": ["http-proxy@1.18.1", "", { "dependencies": { "eventemitter3": "^4.0.0", "follow-redirects": "^1.0.0", "requires-port": "^1.0.0" } }, "sha512-7mz/721AbnJwIVbnaSv1Cz3Am0ZLT/UBwkC92VlxhXv/k/BBQfM2fXElQNC27BVGr0uwUpplYPQM9LnaBMR5NQ=="], + + "husky": ["husky@9.1.7", "", { "bin": { "husky": "bin.js" } }, "sha512-5gs5ytaNjBrh5Ow3zrvdUUY+0VxIuWVL4i9irt6friV+BqdCfmV11CQTWMiBYWHbXhco+J1kHfTOUkePhCDvMA=="], + + "interpret": ["interpret@3.1.1", "", {}, "sha512-6xwYfHbajpoF0xLW+iwLkhwgvLoZDfjYfoFNu8ftMoXINzwuymNLd9u/KmwtdT2GbR+/Cz66otEGEVVUHX9QLQ=="], + + "is-fullwidth-code-point": ["is-fullwidth-code-point@3.0.0", "", {}, "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg=="], + + "isexe": ["isexe@2.0.0", "", {}, "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw=="], + + "iterall": ["iterall@1.3.0", "", {}, "sha512-QZ9qOMdF+QLHxy1QIpUHUU1D5pS2CG2P69LF6L6CPjPYA/XMOmKV3PZpawHoAjHNyB0swdVTRxdYT4tbBbxqwg=="], + + "jackspeak": ["jackspeak@3.4.3", "", { "dependencies": { "@isaacs/cliui": "^8.0.2" }, "optionalDependencies": { "@pkgjs/parseargs": "^0.11.0" } }, "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw=="], + + "js-tokens": ["js-tokens@4.0.0", "", {}, "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ=="], + + "jsesc": ["jsesc@3.1.0", "", { "bin": { "jsesc": "bin/jsesc" } }, "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA=="], + + "json5": ["json5@2.2.3", "", { "bin": { "json5": "lib/cli.js" } }, "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg=="], + + "jsonwebtoken": ["jsonwebtoken@9.0.2", "", { "dependencies": { "jws": "^3.2.2", "lodash.includes": "^4.3.0", "lodash.isboolean": "^3.0.3", "lodash.isinteger": "^4.0.4", "lodash.isnumber": "^3.0.3", "lodash.isplainobject": "^4.0.6", "lodash.isstring": "^4.0.1", "lodash.once": "^4.0.0", "ms": "^2.1.1", "semver": "^7.5.4" } }, "sha512-PRp66vJ865SSqOlgqS8hujT5U4AOgMfhrwYIuIhfKaoSCZcirrmASQr8CX7cUg+RMih+hgznrjp99o+W4pJLHQ=="], + + "jwa": ["jwa@1.4.1", "", { "dependencies": { "buffer-equal-constant-time": "1.0.1", "ecdsa-sig-formatter": "1.0.11", "safe-buffer": "^5.0.1" } }, "sha512-qiLX/xhEEFKUAJ6FiBMbes3w9ATzyk5W7Hvzpa/SLYdxNtng+gcurvrI7TbACjIXlsJyr05/S1oUhZrc63evQA=="], + + "jws": ["jws@3.2.2", "", { "dependencies": { "jwa": "^1.4.1", "safe-buffer": "^5.0.1" } }, "sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA=="], + + "lodash": ["lodash@4.17.21", "", {}, "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg=="], + + "lodash.includes": ["lodash.includes@4.3.0", "", {}, "sha512-W3Bx6mdkRTGtlJISOvVD/lbqjTlPPUDTMnlXZFnVwi9NKJ6tiAk6LVdlhZMm17VZisqhKcgzpO5Wz91PCt5b0w=="], + + "lodash.isboolean": ["lodash.isboolean@3.0.3", "", {}, "sha512-Bz5mupy2SVbPHURB98VAcw+aHh4vRV5IPNhILUCsOzRmsTmSQ17jIuqopAentWoehktxGd9e/hbIXq980/1QJg=="], + + "lodash.isinteger": ["lodash.isinteger@4.0.4", "", {}, "sha512-DBwtEWN2caHQ9/imiNeEA5ys1JoRtRfY3d7V9wkqtbycnAmTvRRmbHKDV4a0EYc678/dia0jrte4tjYwVBaZUA=="], + + "lodash.isnumber": ["lodash.isnumber@3.0.3", "", {}, "sha512-QYqzpfwO3/CWf3XP+Z+tkQsfaLL/EnUlXWVkIk5FUPc4sBdTehEqZONuyRt2P67PXAk+NXmTBcc97zw9t1FQrw=="], + + "lodash.isplainobject": ["lodash.isplainobject@4.0.6", "", {}, "sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA=="], + + "lodash.isstring": ["lodash.isstring@4.0.1", "", {}, "sha512-0wJxfxH1wgO3GrbuP+dTTk7op+6L41QCXbGINEmD+ny/G/eCqGzxyCsh7159S+mgDDcoarnBw6PC1PS5+wUGgw=="], + + "lodash.once": ["lodash.once@4.1.1", "", {}, "sha512-Sb487aTOCr9drQVL8pIxOzVhafOjZN9UU54hiN8PU3uAiSV7lx1yYNpbNmex2PK6dSJoNTSJUUswT651yww3Mg=="], + + "lru-cache": ["lru-cache@10.4.3", "", {}, "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ=="], + + "minimatch": ["minimatch@9.0.5", "", { "dependencies": { "brace-expansion": "^2.0.1" } }, "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow=="], + + "minipass": ["minipass@7.1.2", "", {}, "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw=="], + + "ms": ["ms@2.1.3", "", {}, "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="], + + "obuf": ["obuf@1.1.2", "", {}, "sha512-PX1wu0AmAdPqOL1mWhqmlOd8kOIZQwGZw6rh7uby9fTc5lhaOWFLX3I6R1hrF9k3zUY40e6igsLGkDXK92LJNg=="], + + "package-json-from-dist": ["package-json-from-dist@1.0.1", "", {}, "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw=="], + + "path-key": ["path-key@3.1.1", "", {}, "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q=="], + + "path-scurry": ["path-scurry@1.11.1", "", { "dependencies": { "lru-cache": "^10.2.0", "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" } }, "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA=="], + + "pg": ["pg@8.13.1", "", { "dependencies": { "pg-connection-string": "^2.7.0", "pg-pool": "^3.7.0", "pg-protocol": "^1.7.0", "pg-types": "^2.1.0", "pgpass": "1.x" }, "optionalDependencies": { "pg-cloudflare": "^1.1.1" }, "peerDependencies": { "pg-native": ">=3.0.1" }, "optionalPeers": ["pg-native"] }, "sha512-OUir1A0rPNZlX//c7ksiu7crsGZTKSOXJPgtNiHGIlC9H0lO+NC6ZDYksSgBYY/thSWhnSRBv8w1lieNNGATNQ=="], + + "pg-cloudflare": ["pg-cloudflare@1.1.1", "", {}, "sha512-xWPagP/4B6BgFO+EKz3JONXv3YDgvkbVrGw2mTo3D6tVDQRh1e7cqVGvyR3BE+eQgAvx1XhW/iEASj4/jCWl3Q=="], + + "pg-connection-string": ["pg-connection-string@2.7.0", "", {}, "sha512-PI2W9mv53rXJQEOb8xNR8lH7Hr+EKa6oJa38zsK0S/ky2er16ios1wLKhZyxzD7jUReiWokc9WK5nxSnC7W1TA=="], + + "pg-int8": ["pg-int8@1.0.1", "", {}, "sha512-WCtabS6t3c8SkpDBUlb1kjOs7l66xsGdKpIPZsg4wR+B3+u9UAum2odSsF9tnvxg80h4ZxLWMy4pRjOsFIqQpw=="], + + "pg-introspection": ["pg-introspection@0.0.1-beta.10", "", { "dependencies": { "tslib": "^2.6.2" } }, "sha512-C+z6/eFjD2YGlku0PqKTBMP2ONbpJqhMHv9nMI76o9rP8WX4pfx0I34Kh86sK9f49tqfrYG2Tj9VPIXIQRSwEA=="], + + "pg-numeric": ["pg-numeric@1.0.2", "", {}, "sha512-BM/Thnrw5jm2kKLE5uJkXqqExRUY/toLHda65XgFTBTFYZyopbKjBe29Ii3RbkvlsMoFwD+tHeGaCjjv0gHlyw=="], + + "pg-pool": ["pg-pool@3.7.0", "", { "peerDependencies": { "pg": ">=8.0" } }, "sha512-ZOBQForurqh4zZWjrgSwwAtzJ7QiRX0ovFkZr2klsen3Nm0aoh33Ls0fzfv3imeH/nw/O27cjdz5kzYJfeGp/g=="], + + "pg-protocol": ["pg-protocol@1.7.0", "", {}, "sha512-hTK/mE36i8fDDhgDFjy6xNOG+LCorxLG3WO17tku+ij6sVHXh1jQUJ8hYAnRhNla4QVD2H8er/FOjc/+EgC6yQ=="], + + "pg-sql2": ["pg-sql2@5.0.0-beta.7", "", { "dependencies": { "@graphile/lru": "^5.0.0-beta.3", "tslib": "^2.6.2" } }, "sha512-rXpjk2akonXBR6jkQUbZuYcOOmoMslPasqqSJW4Hwox+ooSJ0ybjsPnExyPkCPhVFxGPmE4XfBlj0SWeRL6IDw=="], + + "pg-types": ["pg-types@4.0.2", "", { "dependencies": { "pg-int8": "1.0.1", "pg-numeric": "1.0.2", "postgres-array": "~3.0.1", "postgres-bytea": "~3.0.0", "postgres-date": "~2.1.0", "postgres-interval": "^3.0.0", "postgres-range": "^1.1.1" } }, "sha512-cRL3JpS3lKMGsKaWndugWQoLOCoP+Cic8oseVcbr0qhPzYD5DWXK+RZ9LY9wxRf7RQia4SCwQlXk0q6FCPrVng=="], + + "pgpass": ["pgpass@1.0.5", "", { "dependencies": { "split2": "^4.1.0" } }, "sha512-FdW9r/jQZhSeohs1Z3sI1yxFQNFvMcnmfuj4WBMUTxOrAyLMaTcE1aAMBiTlbMNaXvBCQuVi0R7hd8udDSP7ug=="], + + "picocolors": ["picocolors@1.1.1", "", {}, "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA=="], + + "pluralize": ["pluralize@7.0.0", "", {}, "sha512-ARhBOdzS3e41FbkW/XWrTEtukqqLoK5+Z/4UeDaLuSW+39JPeFgs4gCGqsrJHVZX0fUrx//4OF0K1CUGwlIFow=="], + + "postgraphile": ["postgraphile@5.0.0-beta.37", "", { "dependencies": { "@dataplan/json": "0.0.1-beta.28", "@dataplan/pg": "0.0.1-beta.30", "@graphile/lru": "^5.0.0-beta.3", "@types/node": "^20.5.7", "@types/pg": "^8.10.2", "debug": "^4.3.4", "grafast": "^0.1.1-beta.19", "grafserv": "^0.1.1-beta.21", "graphile-build": "5.0.0-beta.31", "graphile-build-pg": "5.0.0-beta.36", "graphile-config": "^0.0.1-beta.14", "graphile-utils": "^5.0.0-beta.36", "graphql": "^16.1.0-experimental-stream-defer.6", "iterall": "^1.3.0", "jsonwebtoken": "^9.0.2", "pg": "^8.11.3", "pg-sql2": "^5.0.0-beta.7", "tamedevil": "^0.0.0-beta.7", "tslib": "^2.6.2", "ws": "^8.17.1" }, "peerDependencies": { "@envelop/core": "^5.0.0" }, "optionalPeers": ["@envelop/core"], "bin": { "postgraphile": "dist/cli-run.js" } }, "sha512-+Qm6VTu1nFdNkB5ci81klwXSCHHQ+Xgiz/flqomSef6XRXGnE28R++Z+9+OTJinsPd4NCDaio05kgfSxbZMM5g=="], + + "postgraphile-plugin-connection-filter": ["postgraphile-plugin-connection-filter@3.0.0-beta.7", "", { "dependencies": { "@tsconfig/node20": "^20.1.4", "tslib": "^2.5.0" } }, "sha512-F18Q+8t9LRh4RMGkLEGOOKfb5dXzTg3QqD0/ViXNRN7MANR0PBL+pI6QMOLzPcxMCx5UsD62Rp8Lur2ShvG8GA=="], + + "postgres-array": ["postgres-array@3.0.2", "", {}, "sha512-6faShkdFugNQCLwucjPcY5ARoW1SlbnrZjmGl0IrrqewpvxvhSLHimCVzqeuULCbG0fQv7Dtk1yDbG3xv7Veog=="], + + "postgres-bytea": ["postgres-bytea@3.0.0", "", { "dependencies": { "obuf": "~1.1.2" } }, "sha512-CNd4jim9RFPkObHSjVHlVrxoVQXz7quwNFpz7RY1okNNme49+sVyiTvTRobiLV548Hx/hb1BG+iE7h9493WzFw=="], + + "postgres-date": ["postgres-date@2.1.0", "", {}, "sha512-K7Juri8gtgXVcDfZttFKVmhglp7epKb1K4pgrkLxehjqkrgPhfG6OO8LHLkfaqkbpjNRnra018XwAr1yQFWGcA=="], + + "postgres-interval": ["postgres-interval@3.0.0", "", {}, "sha512-BSNDnbyZCXSxgA+1f5UU2GmwhoI0aU5yMxRGO8CdFEcY2BQF9xm/7MqKnYoM1nJDk8nONNWDk9WeSmePFhQdlw=="], + + "postgres-range": ["postgres-range@1.1.4", "", {}, "sha512-i/hbxIE9803Alj/6ytL7UHQxRvZkI9O4Sy+J3HGc4F4oo/2eQAjTSNJ0bfxyse3bH0nuVesCk+3IRLaMtG3H6w=="], + + "prettier": ["prettier@3.4.2", "", { "bin": { "prettier": "bin/prettier.cjs" } }, "sha512-e9MewbtFo+Fevyuxn/4rrcDAaq0IYxPGLvObpQjiZBMAzB9IGmzlnG9RZy3FFas+eBMu2vA0CszMeduow5dIuQ=="], + + "pure-rand": ["pure-rand@6.1.0", "", {}, "sha512-bVWawvoZoBYpp6yIoQtQXHZjmz35RSVHnUOTefl8Vcjr8snTPY1wnpSPMWekcFwbxI6gtmT7rSYPFvz71ldiOA=="], + + "replace-in-file": ["replace-in-file@8.3.0", "", { "dependencies": { "chalk": "^5.3.0", "glob": "^10.4.2", "yargs": "^17.7.2" }, "bin": { "replace-in-file": "bin/cli.js" } }, "sha512-4VhddQiMCPIuypiwHDTM+XHjZoVu9h7ngBbSCnwGRcwdHwxltjt/m//Ep3GDwqaOx1fDSrKFQ+n7uo4uVcEz9Q=="], + + "require-directory": ["require-directory@2.1.1", "", {}, "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q=="], + + "requires-port": ["requires-port@1.0.0", "", {}, "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ=="], + + "resolve-pkg-maps": ["resolve-pkg-maps@1.0.0", "", {}, "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw=="], + + "ruru": ["ruru@2.0.0-beta.19", "", { "dependencies": { "@emotion/is-prop-valid": "^1.2.1", "graphile-config": "^0.0.1-beta.14", "graphql": "^16.1.0-experimental-stream-defer.6", "http-proxy": "^1.18.1", "tslib": "^2.6.2", "yargs": "^17.7.2" }, "bin": { "ruru": "dist/cli-run.js" } }, "sha512-79S/s07CqhxaHR1EVEpkOxPqkOaD98WwqB1RKe00WswFUTgSEhm1nOkXLeWc7A2xRFcCgO4lxPT5TmvJ17JwAg=="], + + "safe-buffer": ["safe-buffer@5.2.1", "", {}, "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="], + + "semver": ["semver@7.6.3", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A=="], + + "shebang-command": ["shebang-command@2.0.0", "", { "dependencies": { "shebang-regex": "^3.0.0" } }, "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA=="], + + "shebang-regex": ["shebang-regex@3.0.0", "", {}, "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A=="], + + "signal-exit": ["signal-exit@4.1.0", "", {}, "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw=="], + + "source-map": ["source-map@0.6.1", "", {}, "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g=="], + + "source-map-support": ["source-map-support@0.5.21", "", { "dependencies": { "buffer-from": "^1.0.0", "source-map": "^0.6.0" } }, "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w=="], + + "split2": ["split2@4.2.0", "", {}, "sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg=="], + + "streamsearch": ["streamsearch@1.1.0", "", {}, "sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg=="], + + "string-width": ["string-width@4.2.3", "", { "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", "strip-ansi": "^6.0.1" } }, "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g=="], + + "string-width-cjs": ["string-width@4.2.3", "", { "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", "strip-ansi": "^6.0.1" } }, "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g=="], + + "strip-ansi": ["strip-ansi@6.0.1", "", { "dependencies": { "ansi-regex": "^5.0.1" } }, "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A=="], + + "strip-ansi-cjs": ["strip-ansi@6.0.1", "", { "dependencies": { "ansi-regex": "^5.0.1" } }, "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A=="], + + "supports-color": ["supports-color@7.2.0", "", { "dependencies": { "has-flag": "^4.0.0" } }, "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw=="], + + "tamedevil": ["tamedevil@0.0.0-beta.7", "", { "dependencies": { "@graphile/lru": "^5.0.0-beta.3", "tslib": "^2.6.2" } }, "sha512-58Y97vtQuCC5U35aQMcTgaBMaJiSrGftkQmVsbJDgoZ2oUVMrOonom6sIpxiBH+fmpNd85MuxxRnFNyT387QRA=="], + + "tslib": ["tslib@2.8.1", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="], + + "typescript": ["typescript@5.7.2", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-i5t66RHxDvVN40HfDd1PsEThGNnlMCMT3jMUuoh9/0TaqWevNontacunWyN02LA9/fIbEWlcHZcgTKb9QoaLfg=="], + + "undici-types": ["undici-types@6.20.0", "", {}, "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg=="], + + "urlpattern-polyfill": ["urlpattern-polyfill@10.0.0", "", {}, "sha512-H/A06tKD7sS1O1X2SshBVeA5FLycRpjqiBeqGKmBwBDBy28EnRjORxTNe269KSSr5un5qyWi1iL61wLxpd+ZOg=="], + + "value-or-promise": ["value-or-promise@1.0.12", "", {}, "sha512-Z6Uz+TYwEqE7ZN50gwn+1LCVo9ZVrpxRPOhOLnncYkY1ZzOYtrX8Fwf/rFktZ8R5mJms6EZf5TqNOMeZmnPq9Q=="], + + "which": ["which@2.0.2", "", { "dependencies": { "isexe": "^2.0.0" }, "bin": { "node-which": "./bin/node-which" } }, "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA=="], + + "wrap-ansi": ["wrap-ansi@7.0.0", "", { "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", "strip-ansi": "^6.0.0" } }, "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q=="], + + "wrap-ansi-cjs": ["wrap-ansi@7.0.0", "", { "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", "strip-ansi": "^6.0.0" } }, "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q=="], + + "ws": ["ws@8.18.0", "", { "peerDependencies": { "bufferutil": "^4.0.1", "utf-8-validate": ">=5.0.2" }, "optionalPeers": ["bufferutil", "utf-8-validate"] }, "sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw=="], + + "xtend": ["xtend@4.0.2", "", {}, "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ=="], + + "y18n": ["y18n@5.0.8", "", {}, "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA=="], + + "yargs": ["yargs@17.7.2", "", { "dependencies": { "cliui": "^8.0.1", "escalade": "^3.1.1", "get-caller-file": "^2.0.5", "require-directory": "^2.1.1", "string-width": "^4.2.3", "y18n": "^5.0.5", "yargs-parser": "^21.1.1" } }, "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w=="], + + "yargs-parser": ["yargs-parser@21.1.1", "", {}, "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw=="], + + "@dataplan/json/chalk": ["chalk@4.1.2", "", { "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" } }, "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA=="], + + "@dataplan/pg/@types/node": ["@types/node@20.12.14", "", { "dependencies": { "undici-types": "~5.26.4" } }, "sha512-scnD59RpYD91xngrQQLGkE+6UrHUPzeKZWhhjBSa3HSkwjbQc38+q3RoIVEwxQGRw3M+j5hpNAM+lgV3cVormg=="], + + "@dataplan/pg/chalk": ["chalk@4.1.2", "", { "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" } }, "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA=="], + + "@esbuild-kit/core-utils/esbuild": ["esbuild@0.18.20", "", { "optionalDependencies": { "@esbuild/android-arm": "0.18.20", "@esbuild/android-arm64": "0.18.20", "@esbuild/android-x64": "0.18.20", "@esbuild/darwin-arm64": "0.18.20", "@esbuild/darwin-x64": "0.18.20", "@esbuild/freebsd-arm64": "0.18.20", "@esbuild/freebsd-x64": "0.18.20", "@esbuild/linux-arm": "0.18.20", "@esbuild/linux-arm64": "0.18.20", "@esbuild/linux-ia32": "0.18.20", "@esbuild/linux-loong64": "0.18.20", "@esbuild/linux-mips64el": "0.18.20", "@esbuild/linux-ppc64": "0.18.20", "@esbuild/linux-riscv64": "0.18.20", "@esbuild/linux-s390x": "0.18.20", "@esbuild/linux-x64": "0.18.20", "@esbuild/netbsd-x64": "0.18.20", "@esbuild/openbsd-x64": "0.18.20", "@esbuild/sunos-x64": "0.18.20", "@esbuild/win32-arm64": "0.18.20", "@esbuild/win32-ia32": "0.18.20", "@esbuild/win32-x64": "0.18.20" }, "bin": { "esbuild": "bin/esbuild" } }, "sha512-ceqxoedUrcayh7Y7ZX6NdbbDzGROiyVBgC4PriJThBKSVPWnnFHZAkfI1lJT8QFkOwH4qOS2SJkS4wvpGl8BpA=="], + + "@isaacs/cliui/string-width": ["string-width@5.1.2", "", { "dependencies": { "eastasianwidth": "^0.2.0", "emoji-regex": "^9.2.2", "strip-ansi": "^7.0.1" } }, "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA=="], + + "@isaacs/cliui/strip-ansi": ["strip-ansi@7.1.0", "", { "dependencies": { "ansi-regex": "^6.0.1" } }, "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ=="], + + "@isaacs/cliui/wrap-ansi": ["wrap-ansi@8.1.0", "", { "dependencies": { "ansi-styles": "^6.1.0", "string-width": "^5.0.1", "strip-ansi": "^7.0.1" } }, "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ=="], + + "bun-types/@types/node": ["@types/node@20.12.14", "", { "dependencies": { "undici-types": "~5.26.4" } }, "sha512-scnD59RpYD91xngrQQLGkE+6UrHUPzeKZWhhjBSa3HSkwjbQc38+q3RoIVEwxQGRw3M+j5hpNAM+lgV3cVormg=="], + + "grafast/chalk": ["chalk@4.1.2", "", { "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" } }, "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA=="], + + "graphile-build/@types/node": ["@types/node@20.12.14", "", { "dependencies": { "undici-types": "~5.26.4" } }, "sha512-scnD59RpYD91xngrQQLGkE+6UrHUPzeKZWhhjBSa3HSkwjbQc38+q3RoIVEwxQGRw3M+j5hpNAM+lgV3cVormg=="], + + "graphile-build/chalk": ["chalk@4.1.2", "", { "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" } }, "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA=="], + + "graphile-build-pg/@types/node": ["@types/node@20.12.14", "", { "dependencies": { "undici-types": "~5.26.4" } }, "sha512-scnD59RpYD91xngrQQLGkE+6UrHUPzeKZWhhjBSa3HSkwjbQc38+q3RoIVEwxQGRw3M+j5hpNAM+lgV3cVormg=="], + + "graphile-config/@types/node": ["@types/node@20.12.14", "", { "dependencies": { "undici-types": "~5.26.4" } }, "sha512-scnD59RpYD91xngrQQLGkE+6UrHUPzeKZWhhjBSa3HSkwjbQc38+q3RoIVEwxQGRw3M+j5hpNAM+lgV3cVormg=="], + + "graphile-config/chalk": ["chalk@4.1.2", "", { "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" } }, "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA=="], + + "graphile-export/@types/node": ["@types/node@20.12.14", "", { "dependencies": { "undici-types": "~5.26.4" } }, "sha512-scnD59RpYD91xngrQQLGkE+6UrHUPzeKZWhhjBSa3HSkwjbQc38+q3RoIVEwxQGRw3M+j5hpNAM+lgV3cVormg=="], + + "http-proxy/eventemitter3": ["eventemitter3@4.0.7", "", {}, "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw=="], + + "pg/pg-types": ["pg-types@2.2.0", "", { "dependencies": { "pg-int8": "1.0.1", "postgres-array": "~2.0.0", "postgres-bytea": "~1.0.0", "postgres-date": "~1.0.4", "postgres-interval": "^1.1.0" } }, "sha512-qTAAlrEsl8s4OiEQY69wDvcMIdQN6wdz5ojQiOy6YRMuynxenON0O5oCpJI6lshc6scgAY8qvJ2On/p+CXY0GA=="], + + "postgraphile/@types/node": ["@types/node@20.12.14", "", { "dependencies": { "undici-types": "~5.26.4" } }, "sha512-scnD59RpYD91xngrQQLGkE+6UrHUPzeKZWhhjBSa3HSkwjbQc38+q3RoIVEwxQGRw3M+j5hpNAM+lgV3cVormg=="], + + "@dataplan/pg/@types/node/undici-types": ["undici-types@5.26.5", "", {}, "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA=="], + + "@esbuild-kit/core-utils/esbuild/@esbuild/android-arm": ["@esbuild/android-arm@0.18.20", "", { "os": "android", "cpu": "arm" }, "sha512-fyi7TDI/ijKKNZTUJAQqiG5T7YjJXgnzkURqmGj13C6dCqckZBLdl4h7bkhHt/t0WP+zO9/zwroDvANaOqO5Sw=="], + + "@esbuild-kit/core-utils/esbuild/@esbuild/android-arm64": ["@esbuild/android-arm64@0.18.20", "", { "os": "android", "cpu": "arm64" }, "sha512-Nz4rJcchGDtENV0eMKUNa6L12zz2zBDXuhj/Vjh18zGqB44Bi7MBMSXjgunJgjRhCmKOjnPuZp4Mb6OKqtMHLQ=="], + + "@esbuild-kit/core-utils/esbuild/@esbuild/android-x64": ["@esbuild/android-x64@0.18.20", "", { "os": "android", "cpu": "x64" }, "sha512-8GDdlePJA8D6zlZYJV/jnrRAi6rOiNaCC/JclcXpB+KIuvfBN4owLtgzY2bsxnx666XjJx2kDPUmnTtR8qKQUg=="], + + "@esbuild-kit/core-utils/esbuild/@esbuild/darwin-arm64": ["@esbuild/darwin-arm64@0.18.20", "", { "os": "darwin", "cpu": "arm64" }, "sha512-bxRHW5kHU38zS2lPTPOyuyTm+S+eobPUnTNkdJEfAddYgEcll4xkT8DB9d2008DtTbl7uJag2HuE5NZAZgnNEA=="], + + "@esbuild-kit/core-utils/esbuild/@esbuild/darwin-x64": ["@esbuild/darwin-x64@0.18.20", "", { "os": "darwin", "cpu": "x64" }, "sha512-pc5gxlMDxzm513qPGbCbDukOdsGtKhfxD1zJKXjCCcU7ju50O7MeAZ8c4krSJcOIJGFR+qx21yMMVYwiQvyTyQ=="], + + "@esbuild-kit/core-utils/esbuild/@esbuild/freebsd-arm64": ["@esbuild/freebsd-arm64@0.18.20", "", { "os": "freebsd", "cpu": "arm64" }, "sha512-yqDQHy4QHevpMAaxhhIwYPMv1NECwOvIpGCZkECn8w2WFHXjEwrBn3CeNIYsibZ/iZEUemj++M26W3cNR5h+Tw=="], + + "@esbuild-kit/core-utils/esbuild/@esbuild/freebsd-x64": ["@esbuild/freebsd-x64@0.18.20", "", { "os": "freebsd", "cpu": "x64" }, "sha512-tgWRPPuQsd3RmBZwarGVHZQvtzfEBOreNuxEMKFcd5DaDn2PbBxfwLcj4+aenoh7ctXcbXmOQIn8HI6mCSw5MQ=="], + + "@esbuild-kit/core-utils/esbuild/@esbuild/linux-arm": ["@esbuild/linux-arm@0.18.20", "", { "os": "linux", "cpu": "arm" }, "sha512-/5bHkMWnq1EgKr1V+Ybz3s1hWXok7mDFUMQ4cG10AfW3wL02PSZi5kFpYKrptDsgb2WAJIvRcDm+qIvXf/apvg=="], + + "@esbuild-kit/core-utils/esbuild/@esbuild/linux-arm64": ["@esbuild/linux-arm64@0.18.20", "", { "os": "linux", "cpu": "arm64" }, "sha512-2YbscF+UL7SQAVIpnWvYwM+3LskyDmPhe31pE7/aoTMFKKzIc9lLbyGUpmmb8a8AixOL61sQ/mFh3jEjHYFvdA=="], + + "@esbuild-kit/core-utils/esbuild/@esbuild/linux-ia32": ["@esbuild/linux-ia32@0.18.20", "", { "os": "linux", "cpu": "ia32" }, "sha512-P4etWwq6IsReT0E1KHU40bOnzMHoH73aXp96Fs8TIT6z9Hu8G6+0SHSw9i2isWrD2nbx2qo5yUqACgdfVGx7TA=="], + + "@esbuild-kit/core-utils/esbuild/@esbuild/linux-loong64": ["@esbuild/linux-loong64@0.18.20", "", { "os": "linux", "cpu": "none" }, "sha512-nXW8nqBTrOpDLPgPY9uV+/1DjxoQ7DoB2N8eocyq8I9XuqJ7BiAMDMf9n1xZM9TgW0J8zrquIb/A7s3BJv7rjg=="], + + "@esbuild-kit/core-utils/esbuild/@esbuild/linux-mips64el": ["@esbuild/linux-mips64el@0.18.20", "", { "os": "linux", "cpu": "none" }, "sha512-d5NeaXZcHp8PzYy5VnXV3VSd2D328Zb+9dEq5HE6bw6+N86JVPExrA6O68OPwobntbNJ0pzCpUFZTo3w0GyetQ=="], + + "@esbuild-kit/core-utils/esbuild/@esbuild/linux-ppc64": ["@esbuild/linux-ppc64@0.18.20", "", { "os": "linux", "cpu": "ppc64" }, "sha512-WHPyeScRNcmANnLQkq6AfyXRFr5D6N2sKgkFo2FqguP44Nw2eyDlbTdZwd9GYk98DZG9QItIiTlFLHJHjxP3FA=="], + + "@esbuild-kit/core-utils/esbuild/@esbuild/linux-riscv64": ["@esbuild/linux-riscv64@0.18.20", "", { "os": "linux", "cpu": "none" }, "sha512-WSxo6h5ecI5XH34KC7w5veNnKkju3zBRLEQNY7mv5mtBmrP/MjNBCAlsM2u5hDBlS3NGcTQpoBvRzqBcRtpq1A=="], + + "@esbuild-kit/core-utils/esbuild/@esbuild/linux-s390x": ["@esbuild/linux-s390x@0.18.20", "", { "os": "linux", "cpu": "s390x" }, "sha512-+8231GMs3mAEth6Ja1iK0a1sQ3ohfcpzpRLH8uuc5/KVDFneH6jtAJLFGafpzpMRO6DzJ6AvXKze9LfFMrIHVQ=="], + + "@esbuild-kit/core-utils/esbuild/@esbuild/linux-x64": ["@esbuild/linux-x64@0.18.20", "", { "os": "linux", "cpu": "x64" }, "sha512-UYqiqemphJcNsFEskc73jQ7B9jgwjWrSayxawS6UVFZGWrAAtkzjxSqnoclCXxWtfwLdzU+vTpcNYhpn43uP1w=="], + + "@esbuild-kit/core-utils/esbuild/@esbuild/netbsd-x64": ["@esbuild/netbsd-x64@0.18.20", "", { "os": "none", "cpu": "x64" }, "sha512-iO1c++VP6xUBUmltHZoMtCUdPlnPGdBom6IrO4gyKPFFVBKioIImVooR5I83nTew5UOYrk3gIJhbZh8X44y06A=="], + + "@esbuild-kit/core-utils/esbuild/@esbuild/openbsd-x64": ["@esbuild/openbsd-x64@0.18.20", "", { "os": "openbsd", "cpu": "x64" }, "sha512-e5e4YSsuQfX4cxcygw/UCPIEP6wbIL+se3sxPdCiMbFLBWu0eiZOJ7WoD+ptCLrmjZBK1Wk7I6D/I3NglUGOxg=="], + + "@esbuild-kit/core-utils/esbuild/@esbuild/sunos-x64": ["@esbuild/sunos-x64@0.18.20", "", { "os": "sunos", "cpu": "x64" }, "sha512-kDbFRFp0YpTQVVrqUd5FTYmWo45zGaXe0X8E1G/LKFC0v8x0vWrhOWSLITcCn63lmZIxfOMXtCfti/RxN/0wnQ=="], + + "@esbuild-kit/core-utils/esbuild/@esbuild/win32-arm64": ["@esbuild/win32-arm64@0.18.20", "", { "os": "win32", "cpu": "arm64" }, "sha512-ddYFR6ItYgoaq4v4JmQQaAI5s7npztfV4Ag6NrhiaW0RrnOXqBkgwZLofVTlq1daVTQNhtI5oieTvkRPfZrePg=="], + + "@esbuild-kit/core-utils/esbuild/@esbuild/win32-ia32": ["@esbuild/win32-ia32@0.18.20", "", { "os": "win32", "cpu": "ia32" }, "sha512-Wv7QBi3ID/rROT08SABTS7eV4hX26sVduqDOTe1MvGMjNd3EjOz4b7zeexIR62GTIEKrfJXKL9LFxTYgkyeu7g=="], + + "@esbuild-kit/core-utils/esbuild/@esbuild/win32-x64": ["@esbuild/win32-x64@0.18.20", "", { "os": "win32", "cpu": "x64" }, "sha512-kTdfRcSiDfQca/y9QIkng02avJ+NCaQvrMejlsB3RRv5sE9rRoeBPISaZpKxHELzRxZyLvNts1P27W3wV+8geQ=="], + + "@isaacs/cliui/string-width/emoji-regex": ["emoji-regex@9.2.2", "", {}, "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg=="], + + "@isaacs/cliui/strip-ansi/ansi-regex": ["ansi-regex@6.1.0", "", {}, "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA=="], + + "@isaacs/cliui/wrap-ansi/ansi-styles": ["ansi-styles@6.2.1", "", {}, "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug=="], + + "bun-types/@types/node/undici-types": ["undici-types@5.26.5", "", {}, "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA=="], + + "graphile-build-pg/@types/node/undici-types": ["undici-types@5.26.5", "", {}, "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA=="], + + "graphile-build/@types/node/undici-types": ["undici-types@5.26.5", "", {}, "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA=="], + + "graphile-config/@types/node/undici-types": ["undici-types@5.26.5", "", {}, "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA=="], + + "graphile-export/@types/node/undici-types": ["undici-types@5.26.5", "", {}, "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA=="], + + "pg/pg-types/postgres-array": ["postgres-array@2.0.0", "", {}, "sha512-VpZrUqU5A69eQyW2c5CA1jtLecCsN2U/bD6VilrFDWq5+5UIEVO7nazS3TEcHf1zuPYO/sqGvUvW62g86RXZuA=="], + + "pg/pg-types/postgres-bytea": ["postgres-bytea@1.0.0", "", {}, "sha512-xy3pmLuQqRBZBXDULy7KbaitYqLcmxigw14Q5sj8QBVLqEwXfeybIKVWiqAXTlcvdvb0+xkOtDbfQMOf4lST1w=="], + + "pg/pg-types/postgres-date": ["postgres-date@1.0.7", "", {}, "sha512-suDmjLVQg78nMK2UZ454hAG+OAW+HQPZ6n++TNDUX+L0+uUlLywnoxJKDou51Zm+zTCjrCl0Nq6J9C5hP9vK/Q=="], + + "pg/pg-types/postgres-interval": ["postgres-interval@1.2.0", "", { "dependencies": { "xtend": "^4.0.0" } }, "sha512-9ZhXKM/rw350N1ovuWHbGxnGh/SNJ4cnxHiM0rxE4VN41wsg8P8zWn9hv/buK00RP4WvlOyr/RBDiptyxVbkZQ=="], + + "postgraphile/@types/node/undici-types": ["undici-types@5.26.5", "", {}, "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA=="], + } +} diff --git a/bun.lockb b/bun.lockb deleted file mode 100755 index d242f8243fd91ccba42c44c9f1001b0a5e26d574..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 99584 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 Date: Sun, 5 Jan 2025 16:24:56 -0600 Subject: [PATCH 4/5] Revert "refactor(schema): adjust tables to use hidra ID for foreign key relations" This reverts commit aeff338853e1e56108b5f3fb17449b2e84b39503. --- src/generated/graphql/schema.executable.ts | 1560 ++++++++--------- .../drizzle/migrations/0005_nice_talkback.sql | 31 - .../migrations/0006_goofy_harry_osborn.sql | 26 - .../migrations/meta/0005_snapshot.json | 643 ------- .../migrations/meta/0006_snapshot.json | 643 ------- src/lib/drizzle/migrations/meta/_journal.json | 14 - src/lib/drizzle/schema/comment.table.ts | 2 +- src/lib/drizzle/schema/downvote.table.ts | 2 +- src/lib/drizzle/schema/post.table.ts | 2 +- src/lib/drizzle/schema/upvote.table.ts | 2 +- .../schema/userToOrganization.table.ts | 2 +- 11 files changed, 785 insertions(+), 2142 deletions(-) delete mode 100644 src/lib/drizzle/migrations/0005_nice_talkback.sql delete mode 100644 src/lib/drizzle/migrations/0006_goofy_harry_osborn.sql delete mode 100644 src/lib/drizzle/migrations/meta/0005_snapshot.json delete mode 100644 src/lib/drizzle/migrations/meta/0006_snapshot.json diff --git a/src/generated/graphql/schema.executable.ts b/src/generated/graphql/schema.executable.ts index a89aa09..0140a84 100644 --- a/src/generated/graphql/schema.executable.ts +++ b/src/generated/graphql/schema.executable.ts @@ -81,7 +81,7 @@ const spec_userOrganization = { name: "userOrganization", identifier: userOrganizationIdentifier, attributes: Object.assign(Object.create(null), { - organization_id: { + user_id: { description: undefined, codec: TYPES.uuid, notNull: true, @@ -93,11 +93,11 @@ const spec_userOrganization = { canUpdate: true } }, - created_at: { + organization_id: { description: undefined, - codec: TYPES.timestamptz, - notNull: false, - hasDefault: true, + codec: TYPES.uuid, + notNull: true, + hasDefault: false, extensions: { tags: {}, canSelect: true, @@ -105,11 +105,11 @@ const spec_userOrganization = { canUpdate: true } }, - user_id: { + created_at: { description: undefined, - codec: TYPES.uuid, - notNull: true, - hasDefault: false, + codec: TYPES.timestamptz, + notNull: false, + hasDefault: true, extensions: { tags: {}, canSelect: true, @@ -120,7 +120,7 @@ const spec_userOrganization = { }), description: undefined, extensions: { - oid: "80705", + oid: "80353", isTableLike: true, pg: { serviceName: "main", @@ -161,11 +161,11 @@ const spec_downvote = { canUpdate: true } }, - created_at: { + user_id: { description: undefined, - codec: TYPES.timestamptz, - notNull: false, - hasDefault: true, + codec: TYPES.uuid, + notNull: true, + hasDefault: false, extensions: { tags: {}, canSelect: true, @@ -173,7 +173,7 @@ const spec_downvote = { canUpdate: true } }, - updated_at: { + created_at: { description: undefined, codec: TYPES.timestamptz, notNull: false, @@ -185,11 +185,11 @@ const spec_downvote = { canUpdate: true } }, - user_id: { + updated_at: { description: undefined, - codec: TYPES.uuid, - notNull: true, - hasDefault: false, + codec: TYPES.timestamptz, + notNull: false, + hasDefault: true, extensions: { tags: {}, canSelect: true, @@ -200,7 +200,7 @@ const spec_downvote = { }), description: undefined, extensions: { - oid: "80770", + oid: "80418", isTableLike: true, pg: { serviceName: "main", @@ -241,11 +241,11 @@ const spec_upvote = { canUpdate: true } }, - created_at: { + user_id: { description: undefined, - codec: TYPES.timestamptz, - notNull: false, - hasDefault: true, + codec: TYPES.uuid, + notNull: true, + hasDefault: false, extensions: { tags: {}, canSelect: true, @@ -253,7 +253,7 @@ const spec_upvote = { canUpdate: true } }, - updated_at: { + created_at: { description: undefined, codec: TYPES.timestamptz, notNull: false, @@ -265,11 +265,11 @@ const spec_upvote = { canUpdate: true } }, - user_id: { + updated_at: { description: undefined, - codec: TYPES.uuid, - notNull: true, - hasDefault: false, + codec: TYPES.timestamptz, + notNull: false, + hasDefault: true, extensions: { tags: {}, canSelect: true, @@ -280,7 +280,7 @@ const spec_upvote = { }), description: undefined, extensions: { - oid: "80683", + oid: "80331", isTableLike: true, pg: { serviceName: "main", @@ -360,7 +360,7 @@ const spec_organization = { }), description: undefined, extensions: { - oid: "80645", + oid: "80293", isTableLike: true, pg: { serviceName: "main", @@ -413,11 +413,11 @@ const spec_comment = { canUpdate: true } }, - created_at: { + user_id: { description: undefined, - codec: TYPES.timestamptz, - notNull: false, - hasDefault: true, + codec: TYPES.uuid, + notNull: true, + hasDefault: false, extensions: { tags: {}, canSelect: true, @@ -425,7 +425,7 @@ const spec_comment = { canUpdate: true } }, - updated_at: { + created_at: { description: undefined, codec: TYPES.timestamptz, notNull: false, @@ -437,11 +437,11 @@ const spec_comment = { canUpdate: true } }, - user_id: { + updated_at: { description: undefined, - codec: TYPES.uuid, - notNull: true, - hasDefault: false, + codec: TYPES.timestamptz, + notNull: false, + hasDefault: true, extensions: { tags: {}, canSelect: true, @@ -452,7 +452,7 @@ const spec_comment = { }), description: undefined, extensions: { - oid: "80750", + oid: "80398", isTableLike: true, pg: { serviceName: "main", @@ -517,11 +517,11 @@ const spec_post = { canUpdate: true } }, - created_at: { + user_id: { description: undefined, - codec: TYPES.timestamptz, - notNull: false, - hasDefault: true, + codec: TYPES.uuid, + notNull: true, + hasDefault: false, extensions: { tags: {}, canSelect: true, @@ -529,7 +529,7 @@ const spec_post = { canUpdate: true } }, - updated_at: { + created_at: { description: undefined, codec: TYPES.timestamptz, notNull: false, @@ -541,11 +541,11 @@ const spec_post = { canUpdate: true } }, - user_id: { + updated_at: { description: undefined, - codec: TYPES.uuid, - notNull: true, - hasDefault: false, + codec: TYPES.timestamptz, + notNull: false, + hasDefault: true, extensions: { tags: {}, canSelect: true, @@ -556,7 +556,7 @@ const spec_post = { }), description: undefined, extensions: { - oid: "80659", + oid: "80307", isTableLike: true, pg: { serviceName: "main", @@ -672,7 +672,7 @@ const spec_project = { }), description: undefined, extensions: { - oid: "80669", + oid: "80317", isTableLike: true, pg: { serviceName: "main", @@ -776,7 +776,7 @@ const spec_user = { }), description: undefined, extensions: { - oid: "80693", + oid: "80341", isTableLike: true, pg: { serviceName: "main", @@ -1164,7 +1164,7 @@ const registryConfig = { remoteResourceOptions: registryConfig_pgResources_user_user, localCodecPolymorphicTypes: undefined, localAttributes: ["user_id"], - remoteAttributes: ["hidra_id"], + remoteAttributes: ["id"], isUnique: true, isReferencee: false, description: undefined, @@ -1196,7 +1196,7 @@ const registryConfig = { remoteResourceOptions: registryConfig_pgResources_user_user, localCodecPolymorphicTypes: undefined, localAttributes: ["user_id"], - remoteAttributes: ["hidra_id"], + remoteAttributes: ["id"], isUnique: true, isReferencee: false, description: undefined, @@ -1260,7 +1260,7 @@ const registryConfig = { remoteResourceOptions: registryConfig_pgResources_user_user, localCodecPolymorphicTypes: undefined, localAttributes: ["user_id"], - remoteAttributes: ["hidra_id"], + remoteAttributes: ["id"], isUnique: true, isReferencee: false, description: undefined, @@ -1369,7 +1369,7 @@ const registryConfig = { remoteResourceOptions: registryConfig_pgResources_user_user, localCodecPolymorphicTypes: undefined, localAttributes: ["user_id"], - remoteAttributes: ["hidra_id"], + remoteAttributes: ["id"], isUnique: true, isReferencee: false, description: undefined, @@ -1385,7 +1385,7 @@ const registryConfig = { localCodec: userCodec, remoteResourceOptions: registryConfig_pgResources_post_post, localCodecPolymorphicTypes: undefined, - localAttributes: ["hidra_id"], + localAttributes: ["id"], remoteAttributes: ["user_id"], isUnique: false, isReferencee: true, @@ -1400,7 +1400,7 @@ const registryConfig = { localCodec: userCodec, remoteResourceOptions: registryConfig_pgResources_upvote_upvote, localCodecPolymorphicTypes: undefined, - localAttributes: ["hidra_id"], + localAttributes: ["id"], remoteAttributes: ["user_id"], isUnique: false, isReferencee: true, @@ -1415,7 +1415,7 @@ const registryConfig = { localCodec: userCodec, remoteResourceOptions: registryConfig_pgResources_user_organization_user_organization, localCodecPolymorphicTypes: undefined, - localAttributes: ["hidra_id"], + localAttributes: ["id"], remoteAttributes: ["user_id"], isUnique: false, isReferencee: true, @@ -1430,7 +1430,7 @@ const registryConfig = { localCodec: userCodec, remoteResourceOptions: registryConfig_pgResources_comment_comment, localCodecPolymorphicTypes: undefined, - localAttributes: ["hidra_id"], + localAttributes: ["id"], remoteAttributes: ["user_id"], isUnique: false, isReferencee: true, @@ -1445,7 +1445,7 @@ const registryConfig = { localCodec: userCodec, remoteResourceOptions: registryConfig_pgResources_downvote_downvote, localCodecPolymorphicTypes: undefined, - localAttributes: ["hidra_id"], + localAttributes: ["id"], remoteAttributes: ["user_id"], isUnique: false, isReferencee: true, @@ -1478,7 +1478,7 @@ const registryConfig = { remoteResourceOptions: registryConfig_pgResources_user_user, localCodecPolymorphicTypes: undefined, localAttributes: ["user_id"], - remoteAttributes: ["hidra_id"], + remoteAttributes: ["id"], isUnique: true, isReferencee: false, description: undefined, @@ -2029,37 +2029,37 @@ function PostGroupBy_extensions_grafast_applyPlan3($pgSelect) { } function PostGroupBy_extensions_grafast_applyPlan4($pgSelect) { $pgSelect.groupBy({ - fragment: sql.fragment`${$pgSelect.alias}.${sql.identifier("created_at")}` + fragment: sql.fragment`${$pgSelect.alias}.${sql.identifier("user_id")}` }); } function PostGroupBy_extensions_grafast_applyPlan5($pgSelect) { $pgSelect.groupBy({ - fragment: aggregateGroupBySpec.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("created_at")}`) + fragment: sql.fragment`${$pgSelect.alias}.${sql.identifier("created_at")}` }); } function PostGroupBy_extensions_grafast_applyPlan6($pgSelect) { $pgSelect.groupBy({ - fragment: aggregateGroupBySpec2.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("created_at")}`) + fragment: aggregateGroupBySpec.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("created_at")}`) }); } function PostGroupBy_extensions_grafast_applyPlan7($pgSelect) { $pgSelect.groupBy({ - fragment: sql.fragment`${$pgSelect.alias}.${sql.identifier("updated_at")}` + fragment: aggregateGroupBySpec2.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("created_at")}`) }); } function PostGroupBy_extensions_grafast_applyPlan8($pgSelect) { $pgSelect.groupBy({ - fragment: aggregateGroupBySpec.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("updated_at")}`) + fragment: sql.fragment`${$pgSelect.alias}.${sql.identifier("updated_at")}` }); } function PostGroupBy_extensions_grafast_applyPlan9($pgSelect) { $pgSelect.groupBy({ - fragment: aggregateGroupBySpec2.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("updated_at")}`) + fragment: aggregateGroupBySpec.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("updated_at")}`) }); } function PostGroupBy_extensions_grafast_applyPlan10($pgSelect) { $pgSelect.groupBy({ - fragment: sql.fragment`${$pgSelect.alias}.${sql.identifier("user_id")}` + fragment: aggregateGroupBySpec2.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("updated_at")}`) }); } export const PostGroupBy = new GraphQLEnumType({ @@ -2090,11 +2090,19 @@ export const PostGroupBy = new GraphQLEnumType({ } }) }, + USER_ID: { + value: "USER_ID", + extensions: Object.assign(Object.create(null), { + grafast: { + applyPlan: PostGroupBy_extensions_grafast_applyPlan4 + } + }) + }, CREATED_AT: { value: "CREATED_AT", extensions: Object.assign(Object.create(null), { grafast: { - applyPlan: PostGroupBy_extensions_grafast_applyPlan4 + applyPlan: PostGroupBy_extensions_grafast_applyPlan5 } }) }, @@ -2102,7 +2110,7 @@ export const PostGroupBy = new GraphQLEnumType({ value: "CREATED_AT_TRUNCATED_TO_HOUR", extensions: Object.assign(Object.create(null), { grafast: { - applyPlan: PostGroupBy_extensions_grafast_applyPlan5 + applyPlan: PostGroupBy_extensions_grafast_applyPlan6 } }) }, @@ -2110,7 +2118,7 @@ export const PostGroupBy = new GraphQLEnumType({ value: "CREATED_AT_TRUNCATED_TO_DAY", extensions: Object.assign(Object.create(null), { grafast: { - applyPlan: PostGroupBy_extensions_grafast_applyPlan6 + applyPlan: PostGroupBy_extensions_grafast_applyPlan7 } }) }, @@ -2118,7 +2126,7 @@ export const PostGroupBy = new GraphQLEnumType({ value: "UPDATED_AT", extensions: Object.assign(Object.create(null), { grafast: { - applyPlan: PostGroupBy_extensions_grafast_applyPlan7 + applyPlan: PostGroupBy_extensions_grafast_applyPlan8 } }) }, @@ -2126,20 +2134,12 @@ export const PostGroupBy = new GraphQLEnumType({ value: "UPDATED_AT_TRUNCATED_TO_HOUR", extensions: Object.assign(Object.create(null), { grafast: { - applyPlan: PostGroupBy_extensions_grafast_applyPlan8 + applyPlan: PostGroupBy_extensions_grafast_applyPlan9 } }) }, UPDATED_AT_TRUNCATED_TO_DAY: { value: "UPDATED_AT_TRUNCATED_TO_DAY", - extensions: Object.assign(Object.create(null), { - grafast: { - applyPlan: PostGroupBy_extensions_grafast_applyPlan9 - } - }) - }, - USER_ID: { - value: "USER_ID", extensions: Object.assign(Object.create(null), { grafast: { applyPlan: PostGroupBy_extensions_grafast_applyPlan10 @@ -2285,20 +2285,20 @@ const colSpec4 = { attribute: spec_post.attributes.project_id }; const colSpec5 = { + fieldName: "userId", + attributeName: "user_id", + attribute: spec_post.attributes.user_id +}; +const colSpec6 = { fieldName: "createdAt", attributeName: "created_at", attribute: spec_post.attributes.created_at }; -const colSpec6 = { +const colSpec7 = { fieldName: "updatedAt", attributeName: "updated_at", attribute: spec_post.attributes.updated_at }; -const colSpec7 = { - fieldName: "userId", - attributeName: "user_id", - attribute: spec_post.attributes.user_id -}; function assertAllowed20(fieldArgs, mode) { const $raw = fieldArgs.getRaw(); if (mode === "object" && !false && "evalIsEmpty" in $raw && $raw.evalIsEmpty()) throw Object.assign(new Error("Empty objects are forbidden in filter argument input."), {}); @@ -2843,20 +2843,20 @@ const colSpec9 = { attribute: spec_upvote.attributes.post_id }; const colSpec10 = { + fieldName: "userId", + attributeName: "user_id", + attribute: spec_upvote.attributes.user_id +}; +const colSpec11 = { fieldName: "createdAt", attributeName: "created_at", attribute: spec_upvote.attributes.created_at }; -const colSpec11 = { +const colSpec12 = { fieldName: "updatedAt", attributeName: "updated_at", attribute: spec_upvote.attributes.updated_at }; -const colSpec12 = { - fieldName: "userId", - attributeName: "user_id", - attribute: spec_upvote.attributes.user_id -}; function assertAllowed24(fieldArgs, mode) { const $raw = fieldArgs.getRaw(); if (mode === "object" && !false && "evalIsEmpty" in $raw && $raw.evalIsEmpty()) throw Object.assign(new Error("Empty objects are forbidden in filter argument input."), {}); @@ -3027,20 +3027,20 @@ function assertAllowed30(fieldArgs, mode) { if (!false && $raw.evalIs(null)) throw Object.assign(new Error("Null literals are forbidden in filter argument input."), {}); } const colSpec20 = { + fieldName: "userId", + attributeName: "user_id", + attribute: spec_userOrganization.attributes.user_id +}; +const colSpec21 = { fieldName: "organizationId", attributeName: "organization_id", attribute: spec_userOrganization.attributes.organization_id }; -const colSpec21 = { +const colSpec22 = { fieldName: "createdAt", attributeName: "created_at", attribute: spec_userOrganization.attributes.created_at }; -const colSpec22 = { - fieldName: "userId", - attributeName: "user_id", - attribute: spec_userOrganization.attributes.user_id -}; function assertAllowed31(fieldArgs, mode) { const $raw = fieldArgs.getRaw(); if (mode === "object" && !false && "evalIsEmpty" in $raw && $raw.evalIsEmpty()) throw Object.assign(new Error("Empty objects are forbidden in filter argument input."), {}); @@ -3254,20 +3254,20 @@ const colSpec38 = { attribute: spec_comment.attributes.post_id }; const colSpec39 = { + fieldName: "userId", + attributeName: "user_id", + attribute: spec_comment.attributes.user_id +}; +const colSpec40 = { fieldName: "createdAt", attributeName: "created_at", attribute: spec_comment.attributes.created_at }; -const colSpec40 = { +const colSpec41 = { fieldName: "updatedAt", attributeName: "updated_at", attribute: spec_comment.attributes.updated_at }; -const colSpec41 = { - fieldName: "userId", - attributeName: "user_id", - attribute: spec_comment.attributes.user_id -}; function assertAllowed42(fieldArgs, mode) { const $raw = fieldArgs.getRaw(); if (mode === "object" && !false && "evalIsEmpty" in $raw && $raw.evalIsEmpty()) throw Object.assign(new Error("Empty objects are forbidden in filter argument input."), {}); @@ -3315,20 +3315,20 @@ const colSpec43 = { attribute: spec_downvote.attributes.post_id }; const colSpec44 = { + fieldName: "userId", + attributeName: "user_id", + attribute: spec_downvote.attributes.user_id +}; +const colSpec45 = { fieldName: "createdAt", attributeName: "created_at", attribute: spec_downvote.attributes.created_at }; -const colSpec45 = { +const colSpec46 = { fieldName: "updatedAt", attributeName: "updated_at", attribute: spec_downvote.attributes.updated_at }; -const colSpec46 = { - fieldName: "userId", - attributeName: "user_id", - attribute: spec_downvote.attributes.user_id -}; function assertAllowed45(fieldArgs, mode) { const $raw = fieldArgs.getRaw(); if (mode === "object" && !false && "evalIsEmpty" in $raw && $raw.evalIsEmpty()) throw Object.assign(new Error("Empty objects are forbidden in filter argument input."), {}); @@ -3384,37 +3384,37 @@ function UpvoteGroupBy_extensions_grafast_applyPlan($pgSelect) { } function UpvoteGroupBy_extensions_grafast_applyPlan2($pgSelect) { $pgSelect.groupBy({ - fragment: sql.fragment`${$pgSelect.alias}.${sql.identifier("created_at")}` + fragment: sql.fragment`${$pgSelect.alias}.${sql.identifier("user_id")}` }); } function UpvoteGroupBy_extensions_grafast_applyPlan3($pgSelect) { $pgSelect.groupBy({ - fragment: aggregateGroupBySpec.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("created_at")}`) + fragment: sql.fragment`${$pgSelect.alias}.${sql.identifier("created_at")}` }); } function UpvoteGroupBy_extensions_grafast_applyPlan4($pgSelect) { $pgSelect.groupBy({ - fragment: aggregateGroupBySpec2.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("created_at")}`) + fragment: aggregateGroupBySpec.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("created_at")}`) }); } function UpvoteGroupBy_extensions_grafast_applyPlan5($pgSelect) { $pgSelect.groupBy({ - fragment: sql.fragment`${$pgSelect.alias}.${sql.identifier("updated_at")}` + fragment: aggregateGroupBySpec2.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("created_at")}`) }); } function UpvoteGroupBy_extensions_grafast_applyPlan6($pgSelect) { $pgSelect.groupBy({ - fragment: aggregateGroupBySpec.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("updated_at")}`) + fragment: sql.fragment`${$pgSelect.alias}.${sql.identifier("updated_at")}` }); } function UpvoteGroupBy_extensions_grafast_applyPlan7($pgSelect) { $pgSelect.groupBy({ - fragment: aggregateGroupBySpec2.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("updated_at")}`) + fragment: aggregateGroupBySpec.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("updated_at")}`) }); } function UpvoteGroupBy_extensions_grafast_applyPlan8($pgSelect) { $pgSelect.groupBy({ - fragment: sql.fragment`${$pgSelect.alias}.${sql.identifier("user_id")}` + fragment: aggregateGroupBySpec2.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("updated_at")}`) }); } export const UpvoteGroupBy = new GraphQLEnumType({ @@ -3429,11 +3429,19 @@ export const UpvoteGroupBy = new GraphQLEnumType({ } }) }, + USER_ID: { + value: "USER_ID", + extensions: Object.assign(Object.create(null), { + grafast: { + applyPlan: UpvoteGroupBy_extensions_grafast_applyPlan2 + } + }) + }, CREATED_AT: { value: "CREATED_AT", extensions: Object.assign(Object.create(null), { grafast: { - applyPlan: UpvoteGroupBy_extensions_grafast_applyPlan2 + applyPlan: UpvoteGroupBy_extensions_grafast_applyPlan3 } }) }, @@ -3441,7 +3449,7 @@ export const UpvoteGroupBy = new GraphQLEnumType({ value: "CREATED_AT_TRUNCATED_TO_HOUR", extensions: Object.assign(Object.create(null), { grafast: { - applyPlan: UpvoteGroupBy_extensions_grafast_applyPlan3 + applyPlan: UpvoteGroupBy_extensions_grafast_applyPlan4 } }) }, @@ -3449,7 +3457,7 @@ export const UpvoteGroupBy = new GraphQLEnumType({ value: "CREATED_AT_TRUNCATED_TO_DAY", extensions: Object.assign(Object.create(null), { grafast: { - applyPlan: UpvoteGroupBy_extensions_grafast_applyPlan4 + applyPlan: UpvoteGroupBy_extensions_grafast_applyPlan5 } }) }, @@ -3457,7 +3465,7 @@ export const UpvoteGroupBy = new GraphQLEnumType({ value: "UPDATED_AT", extensions: Object.assign(Object.create(null), { grafast: { - applyPlan: UpvoteGroupBy_extensions_grafast_applyPlan5 + applyPlan: UpvoteGroupBy_extensions_grafast_applyPlan6 } }) }, @@ -3465,20 +3473,12 @@ export const UpvoteGroupBy = new GraphQLEnumType({ value: "UPDATED_AT_TRUNCATED_TO_HOUR", extensions: Object.assign(Object.create(null), { grafast: { - applyPlan: UpvoteGroupBy_extensions_grafast_applyPlan6 + applyPlan: UpvoteGroupBy_extensions_grafast_applyPlan7 } }) }, UPDATED_AT_TRUNCATED_TO_DAY: { value: "UPDATED_AT_TRUNCATED_TO_DAY", - extensions: Object.assign(Object.create(null), { - grafast: { - applyPlan: UpvoteGroupBy_extensions_grafast_applyPlan7 - } - }) - }, - USER_ID: { - value: "USER_ID", extensions: Object.assign(Object.create(null), { grafast: { applyPlan: UpvoteGroupBy_extensions_grafast_applyPlan8 @@ -3641,67 +3641,67 @@ const aggregateSpec9 = { }; function UserOrganizationGroupBy_extensions_grafast_applyPlan($pgSelect) { $pgSelect.groupBy({ - fragment: sql.fragment`${$pgSelect.alias}.${sql.identifier("organization_id")}` + fragment: sql.fragment`${$pgSelect.alias}.${sql.identifier("user_id")}` }); } function UserOrganizationGroupBy_extensions_grafast_applyPlan2($pgSelect) { $pgSelect.groupBy({ - fragment: sql.fragment`${$pgSelect.alias}.${sql.identifier("created_at")}` + fragment: sql.fragment`${$pgSelect.alias}.${sql.identifier("organization_id")}` }); } function UserOrganizationGroupBy_extensions_grafast_applyPlan3($pgSelect) { $pgSelect.groupBy({ - fragment: aggregateGroupBySpec.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("created_at")}`) + fragment: sql.fragment`${$pgSelect.alias}.${sql.identifier("created_at")}` }); } function UserOrganizationGroupBy_extensions_grafast_applyPlan4($pgSelect) { $pgSelect.groupBy({ - fragment: aggregateGroupBySpec2.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("created_at")}`) + fragment: aggregateGroupBySpec.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("created_at")}`) }); } function UserOrganizationGroupBy_extensions_grafast_applyPlan5($pgSelect) { $pgSelect.groupBy({ - fragment: sql.fragment`${$pgSelect.alias}.${sql.identifier("user_id")}` + fragment: aggregateGroupBySpec2.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("created_at")}`) }); } export const UserOrganizationGroupBy = new GraphQLEnumType({ name: "UserOrganizationGroupBy", description: "Grouping methods for `UserOrganization` for usage during aggregation.", values: Object.assign(Object.create(null), { - ORGANIZATION_ID: { - value: "ORGANIZATION_ID", + USER_ID: { + value: "USER_ID", extensions: Object.assign(Object.create(null), { grafast: { applyPlan: UserOrganizationGroupBy_extensions_grafast_applyPlan } }) }, - CREATED_AT: { - value: "CREATED_AT", + ORGANIZATION_ID: { + value: "ORGANIZATION_ID", extensions: Object.assign(Object.create(null), { grafast: { applyPlan: UserOrganizationGroupBy_extensions_grafast_applyPlan2 } }) }, - CREATED_AT_TRUNCATED_TO_HOUR: { - value: "CREATED_AT_TRUNCATED_TO_HOUR", + CREATED_AT: { + value: "CREATED_AT", extensions: Object.assign(Object.create(null), { grafast: { applyPlan: UserOrganizationGroupBy_extensions_grafast_applyPlan3 } }) }, - CREATED_AT_TRUNCATED_TO_DAY: { - value: "CREATED_AT_TRUNCATED_TO_DAY", + CREATED_AT_TRUNCATED_TO_HOUR: { + value: "CREATED_AT_TRUNCATED_TO_HOUR", extensions: Object.assign(Object.create(null), { grafast: { applyPlan: UserOrganizationGroupBy_extensions_grafast_applyPlan4 } }) }, - USER_ID: { - value: "USER_ID", + CREATED_AT_TRUNCATED_TO_DAY: { + value: "CREATED_AT_TRUNCATED_TO_DAY", extensions: Object.assign(Object.create(null), { grafast: { applyPlan: UserOrganizationGroupBy_extensions_grafast_applyPlan5 @@ -3722,37 +3722,37 @@ function CommentGroupBy_extensions_grafast_applyPlan2($pgSelect) { } function CommentGroupBy_extensions_grafast_applyPlan3($pgSelect) { $pgSelect.groupBy({ - fragment: sql.fragment`${$pgSelect.alias}.${sql.identifier("created_at")}` + fragment: sql.fragment`${$pgSelect.alias}.${sql.identifier("user_id")}` }); } function CommentGroupBy_extensions_grafast_applyPlan4($pgSelect) { $pgSelect.groupBy({ - fragment: aggregateGroupBySpec.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("created_at")}`) + fragment: sql.fragment`${$pgSelect.alias}.${sql.identifier("created_at")}` }); } function CommentGroupBy_extensions_grafast_applyPlan5($pgSelect) { $pgSelect.groupBy({ - fragment: aggregateGroupBySpec2.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("created_at")}`) + fragment: aggregateGroupBySpec.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("created_at")}`) }); } function CommentGroupBy_extensions_grafast_applyPlan6($pgSelect) { $pgSelect.groupBy({ - fragment: sql.fragment`${$pgSelect.alias}.${sql.identifier("updated_at")}` + fragment: aggregateGroupBySpec2.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("created_at")}`) }); } function CommentGroupBy_extensions_grafast_applyPlan7($pgSelect) { $pgSelect.groupBy({ - fragment: aggregateGroupBySpec.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("updated_at")}`) + fragment: sql.fragment`${$pgSelect.alias}.${sql.identifier("updated_at")}` }); } function CommentGroupBy_extensions_grafast_applyPlan8($pgSelect) { $pgSelect.groupBy({ - fragment: aggregateGroupBySpec2.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("updated_at")}`) + fragment: aggregateGroupBySpec.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("updated_at")}`) }); } function CommentGroupBy_extensions_grafast_applyPlan9($pgSelect) { $pgSelect.groupBy({ - fragment: sql.fragment`${$pgSelect.alias}.${sql.identifier("user_id")}` + fragment: aggregateGroupBySpec2.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("updated_at")}`) }); } export const CommentGroupBy = new GraphQLEnumType({ @@ -3775,11 +3775,19 @@ export const CommentGroupBy = new GraphQLEnumType({ } }) }, + USER_ID: { + value: "USER_ID", + extensions: Object.assign(Object.create(null), { + grafast: { + applyPlan: CommentGroupBy_extensions_grafast_applyPlan3 + } + }) + }, CREATED_AT: { value: "CREATED_AT", extensions: Object.assign(Object.create(null), { grafast: { - applyPlan: CommentGroupBy_extensions_grafast_applyPlan3 + applyPlan: CommentGroupBy_extensions_grafast_applyPlan4 } }) }, @@ -3787,7 +3795,7 @@ export const CommentGroupBy = new GraphQLEnumType({ value: "CREATED_AT_TRUNCATED_TO_HOUR", extensions: Object.assign(Object.create(null), { grafast: { - applyPlan: CommentGroupBy_extensions_grafast_applyPlan4 + applyPlan: CommentGroupBy_extensions_grafast_applyPlan5 } }) }, @@ -3795,7 +3803,7 @@ export const CommentGroupBy = new GraphQLEnumType({ value: "CREATED_AT_TRUNCATED_TO_DAY", extensions: Object.assign(Object.create(null), { grafast: { - applyPlan: CommentGroupBy_extensions_grafast_applyPlan5 + applyPlan: CommentGroupBy_extensions_grafast_applyPlan6 } }) }, @@ -3803,7 +3811,7 @@ export const CommentGroupBy = new GraphQLEnumType({ value: "UPDATED_AT", extensions: Object.assign(Object.create(null), { grafast: { - applyPlan: CommentGroupBy_extensions_grafast_applyPlan6 + applyPlan: CommentGroupBy_extensions_grafast_applyPlan7 } }) }, @@ -3811,20 +3819,12 @@ export const CommentGroupBy = new GraphQLEnumType({ value: "UPDATED_AT_TRUNCATED_TO_HOUR", extensions: Object.assign(Object.create(null), { grafast: { - applyPlan: CommentGroupBy_extensions_grafast_applyPlan7 + applyPlan: CommentGroupBy_extensions_grafast_applyPlan8 } }) }, UPDATED_AT_TRUNCATED_TO_DAY: { value: "UPDATED_AT_TRUNCATED_TO_DAY", - extensions: Object.assign(Object.create(null), { - grafast: { - applyPlan: CommentGroupBy_extensions_grafast_applyPlan8 - } - }) - }, - USER_ID: { - value: "USER_ID", extensions: Object.assign(Object.create(null), { grafast: { applyPlan: CommentGroupBy_extensions_grafast_applyPlan9 @@ -3840,37 +3840,37 @@ function DownvoteGroupBy_extensions_grafast_applyPlan($pgSelect) { } function DownvoteGroupBy_extensions_grafast_applyPlan2($pgSelect) { $pgSelect.groupBy({ - fragment: sql.fragment`${$pgSelect.alias}.${sql.identifier("created_at")}` + fragment: sql.fragment`${$pgSelect.alias}.${sql.identifier("user_id")}` }); } function DownvoteGroupBy_extensions_grafast_applyPlan3($pgSelect) { $pgSelect.groupBy({ - fragment: aggregateGroupBySpec.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("created_at")}`) + fragment: sql.fragment`${$pgSelect.alias}.${sql.identifier("created_at")}` }); } function DownvoteGroupBy_extensions_grafast_applyPlan4($pgSelect) { $pgSelect.groupBy({ - fragment: aggregateGroupBySpec2.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("created_at")}`) + fragment: aggregateGroupBySpec.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("created_at")}`) }); } function DownvoteGroupBy_extensions_grafast_applyPlan5($pgSelect) { $pgSelect.groupBy({ - fragment: sql.fragment`${$pgSelect.alias}.${sql.identifier("updated_at")}` + fragment: aggregateGroupBySpec2.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("created_at")}`) }); } function DownvoteGroupBy_extensions_grafast_applyPlan6($pgSelect) { $pgSelect.groupBy({ - fragment: aggregateGroupBySpec.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("updated_at")}`) + fragment: sql.fragment`${$pgSelect.alias}.${sql.identifier("updated_at")}` }); } function DownvoteGroupBy_extensions_grafast_applyPlan7($pgSelect) { $pgSelect.groupBy({ - fragment: aggregateGroupBySpec2.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("updated_at")}`) + fragment: aggregateGroupBySpec.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("updated_at")}`) }); } function DownvoteGroupBy_extensions_grafast_applyPlan8($pgSelect) { $pgSelect.groupBy({ - fragment: sql.fragment`${$pgSelect.alias}.${sql.identifier("user_id")}` + fragment: aggregateGroupBySpec2.sqlWrap(sql`${$pgSelect.alias}.${sql.identifier("updated_at")}`) }); } export const DownvoteGroupBy = new GraphQLEnumType({ @@ -3885,11 +3885,19 @@ export const DownvoteGroupBy = new GraphQLEnumType({ } }) }, + USER_ID: { + value: "USER_ID", + extensions: Object.assign(Object.create(null), { + grafast: { + applyPlan: DownvoteGroupBy_extensions_grafast_applyPlan2 + } + }) + }, CREATED_AT: { value: "CREATED_AT", extensions: Object.assign(Object.create(null), { grafast: { - applyPlan: DownvoteGroupBy_extensions_grafast_applyPlan2 + applyPlan: DownvoteGroupBy_extensions_grafast_applyPlan3 } }) }, @@ -3897,7 +3905,7 @@ export const DownvoteGroupBy = new GraphQLEnumType({ value: "CREATED_AT_TRUNCATED_TO_HOUR", extensions: Object.assign(Object.create(null), { grafast: { - applyPlan: DownvoteGroupBy_extensions_grafast_applyPlan3 + applyPlan: DownvoteGroupBy_extensions_grafast_applyPlan4 } }) }, @@ -3905,7 +3913,7 @@ export const DownvoteGroupBy = new GraphQLEnumType({ value: "CREATED_AT_TRUNCATED_TO_DAY", extensions: Object.assign(Object.create(null), { grafast: { - applyPlan: DownvoteGroupBy_extensions_grafast_applyPlan4 + applyPlan: DownvoteGroupBy_extensions_grafast_applyPlan5 } }) }, @@ -3913,7 +3921,7 @@ export const DownvoteGroupBy = new GraphQLEnumType({ value: "UPDATED_AT", extensions: Object.assign(Object.create(null), { grafast: { - applyPlan: DownvoteGroupBy_extensions_grafast_applyPlan5 + applyPlan: DownvoteGroupBy_extensions_grafast_applyPlan6 } }) }, @@ -3921,20 +3929,12 @@ export const DownvoteGroupBy = new GraphQLEnumType({ value: "UPDATED_AT_TRUNCATED_TO_HOUR", extensions: Object.assign(Object.create(null), { grafast: { - applyPlan: DownvoteGroupBy_extensions_grafast_applyPlan6 + applyPlan: DownvoteGroupBy_extensions_grafast_applyPlan7 } }) }, UPDATED_AT_TRUNCATED_TO_DAY: { value: "UPDATED_AT_TRUNCATED_TO_DAY", - extensions: Object.assign(Object.create(null), { - grafast: { - applyPlan: DownvoteGroupBy_extensions_grafast_applyPlan7 - } - }) - }, - USER_ID: { - value: "USER_ID", extensions: Object.assign(Object.create(null), { grafast: { applyPlan: DownvoteGroupBy_extensions_grafast_applyPlan8 @@ -4594,9 +4594,9 @@ interface Node { } type UserOrganization { + userId: UUID! organizationId: UUID! createdAt: Datetime - userId: UUID! """ Reads a single \`Organization\` that is related to this \`UserOrganization\`. @@ -4828,9 +4828,9 @@ type Post implements Node { title: String description: String projectId: UUID! + userId: UUID! createdAt: Datetime updatedAt: Datetime - userId: UUID! """Reads a single \`Project\` that is related to this \`Post\`.""" project: Project @@ -5141,24 +5141,24 @@ enum PostOrderBy { DESCRIPTION_DESC PROJECT_ID_ASC PROJECT_ID_DESC + USER_ID_ASC + USER_ID_DESC CREATED_AT_ASC CREATED_AT_DESC UPDATED_AT_ASC UPDATED_AT_DESC - USER_ID_ASC - USER_ID_DESC UPVOTES_COUNT_ASC UPVOTES_COUNT_DESC UPVOTES_DISTINCT_COUNT_ROW_ID_ASC UPVOTES_DISTINCT_COUNT_ROW_ID_DESC UPVOTES_DISTINCT_COUNT_POST_ID_ASC UPVOTES_DISTINCT_COUNT_POST_ID_DESC + UPVOTES_DISTINCT_COUNT_USER_ID_ASC + UPVOTES_DISTINCT_COUNT_USER_ID_DESC UPVOTES_DISTINCT_COUNT_CREATED_AT_ASC UPVOTES_DISTINCT_COUNT_CREATED_AT_DESC UPVOTES_DISTINCT_COUNT_UPDATED_AT_ASC UPVOTES_DISTINCT_COUNT_UPDATED_AT_DESC - UPVOTES_DISTINCT_COUNT_USER_ID_ASC - UPVOTES_DISTINCT_COUNT_USER_ID_DESC COMMENTS_COUNT_ASC COMMENTS_COUNT_DESC COMMENTS_DISTINCT_COUNT_ROW_ID_ASC @@ -5167,24 +5167,24 @@ enum PostOrderBy { COMMENTS_DISTINCT_COUNT_MESSAGE_DESC COMMENTS_DISTINCT_COUNT_POST_ID_ASC COMMENTS_DISTINCT_COUNT_POST_ID_DESC + COMMENTS_DISTINCT_COUNT_USER_ID_ASC + COMMENTS_DISTINCT_COUNT_USER_ID_DESC COMMENTS_DISTINCT_COUNT_CREATED_AT_ASC COMMENTS_DISTINCT_COUNT_CREATED_AT_DESC COMMENTS_DISTINCT_COUNT_UPDATED_AT_ASC COMMENTS_DISTINCT_COUNT_UPDATED_AT_DESC - COMMENTS_DISTINCT_COUNT_USER_ID_ASC - COMMENTS_DISTINCT_COUNT_USER_ID_DESC DOWNVOTES_COUNT_ASC DOWNVOTES_COUNT_DESC DOWNVOTES_DISTINCT_COUNT_ROW_ID_ASC DOWNVOTES_DISTINCT_COUNT_ROW_ID_DESC DOWNVOTES_DISTINCT_COUNT_POST_ID_ASC DOWNVOTES_DISTINCT_COUNT_POST_ID_DESC + DOWNVOTES_DISTINCT_COUNT_USER_ID_ASC + DOWNVOTES_DISTINCT_COUNT_USER_ID_DESC DOWNVOTES_DISTINCT_COUNT_CREATED_AT_ASC DOWNVOTES_DISTINCT_COUNT_CREATED_AT_DESC DOWNVOTES_DISTINCT_COUNT_UPDATED_AT_ASC DOWNVOTES_DISTINCT_COUNT_UPDATED_AT_DESC - DOWNVOTES_DISTINCT_COUNT_USER_ID_ASC - DOWNVOTES_DISTINCT_COUNT_USER_ID_DESC } """ @@ -5203,14 +5203,14 @@ input PostCondition { """Checks for equality with the object’s \`projectId\` field.""" projectId: UUID + """Checks for equality with the object’s \`userId\` field.""" + userId: UUID + """Checks for equality with the object’s \`createdAt\` field.""" createdAt: Datetime """Checks for equality with the object’s \`updatedAt\` field.""" updatedAt: Datetime - - """Checks for equality with the object’s \`userId\` field.""" - userId: UUID } """ @@ -5229,15 +5229,15 @@ input PostFilter { """Filter by the object’s \`projectId\` field.""" projectId: UUIDFilter + """Filter by the object’s \`userId\` field.""" + userId: UUIDFilter + """Filter by the object’s \`createdAt\` field.""" createdAt: DatetimeFilter """Filter by the object’s \`updatedAt\` field.""" updatedAt: DatetimeFilter - """Filter by the object’s \`userId\` field.""" - userId: UUIDFilter - """Filter by the object’s \`upvotes\` relation.""" upvotes: PostToManyUpvoteFilter @@ -5521,15 +5521,15 @@ input UpvoteFilter { """Filter by the object’s \`postId\` field.""" postId: UUIDFilter + """Filter by the object’s \`userId\` field.""" + userId: UUIDFilter + """Filter by the object’s \`createdAt\` field.""" createdAt: DatetimeFilter """Filter by the object’s \`updatedAt\` field.""" updatedAt: DatetimeFilter - """Filter by the object’s \`userId\` field.""" - userId: UUIDFilter - """Filter by the object’s \`post\` relation.""" post: PostFilter @@ -5650,9 +5650,9 @@ input PostDistinctCountAggregateFilter { title: BigIntFilter description: BigIntFilter projectId: BigIntFilter + userId: BigIntFilter createdAt: BigIntFilter updatedAt: BigIntFilter - userId: BigIntFilter } """ @@ -5741,9 +5741,9 @@ input UpvoteAggregatesFilter { input UpvoteDistinctCountAggregateFilter { rowId: BigIntFilter postId: BigIntFilter + userId: BigIntFilter createdAt: BigIntFilter updatedAt: BigIntFilter - userId: BigIntFilter } """ @@ -5775,15 +5775,15 @@ input UserToManyUserOrganizationFilter { A filter to be used against \`UserOrganization\` object types. All fields are combined with a logical ‘and.’ """ input UserOrganizationFilter { + """Filter by the object’s \`userId\` field.""" + userId: UUIDFilter + """Filter by the object’s \`organizationId\` field.""" organizationId: UUIDFilter """Filter by the object’s \`createdAt\` field.""" createdAt: DatetimeFilter - """Filter by the object’s \`userId\` field.""" - userId: UUIDFilter - """Filter by the object’s \`organization\` relation.""" organization: OrganizationFilter @@ -5995,9 +5995,9 @@ input UserOrganizationAggregatesFilter { } input UserOrganizationDistinctCountAggregateFilter { + userId: BigIntFilter organizationId: BigIntFilter createdAt: BigIntFilter - userId: BigIntFilter } """ @@ -6036,15 +6036,15 @@ input CommentFilter { """Filter by the object’s \`postId\` field.""" postId: UUIDFilter + """Filter by the object’s \`userId\` field.""" + userId: UUIDFilter + """Filter by the object’s \`createdAt\` field.""" createdAt: DatetimeFilter """Filter by the object’s \`updatedAt\` field.""" updatedAt: DatetimeFilter - """Filter by the object’s \`userId\` field.""" - userId: UUIDFilter - """Filter by the object’s \`post\` relation.""" post: PostFilter @@ -6076,9 +6076,9 @@ input CommentDistinctCountAggregateFilter { rowId: BigIntFilter message: BigIntFilter postId: BigIntFilter + userId: BigIntFilter createdAt: BigIntFilter updatedAt: BigIntFilter - userId: BigIntFilter } """ @@ -6114,15 +6114,15 @@ input DownvoteFilter { """Filter by the object’s \`postId\` field.""" postId: UUIDFilter + """Filter by the object’s \`userId\` field.""" + userId: UUIDFilter + """Filter by the object’s \`createdAt\` field.""" createdAt: DatetimeFilter """Filter by the object’s \`updatedAt\` field.""" updatedAt: DatetimeFilter - """Filter by the object’s \`userId\` field.""" - userId: UUIDFilter - """Filter by the object’s \`post\` relation.""" post: PostFilter @@ -6153,9 +6153,9 @@ input DownvoteAggregatesFilter { input DownvoteDistinctCountAggregateFilter { rowId: BigIntFilter postId: BigIntFilter + userId: BigIntFilter createdAt: BigIntFilter updatedAt: BigIntFilter - userId: BigIntFilter } """ @@ -6244,9 +6244,9 @@ type Upvote implements Node { id: ID! rowId: UUID! postId: UUID! + userId: UUID! createdAt: Datetime updatedAt: Datetime - userId: UUID! """Reads a single \`Post\` that is related to this \`Upvote\`.""" post: Post @@ -6295,26 +6295,26 @@ type UpvoteDistinctCountAggregates { """Distinct count of postId across the matching connection""" postId: BigInt + """Distinct count of userId across the matching connection""" + userId: BigInt + """Distinct count of createdAt across the matching connection""" createdAt: BigInt """Distinct count of updatedAt across the matching connection""" updatedAt: BigInt - - """Distinct count of userId across the matching connection""" - userId: BigInt } """Grouping methods for \`Upvote\` for usage during aggregation.""" enum UpvoteGroupBy { POST_ID + USER_ID CREATED_AT CREATED_AT_TRUNCATED_TO_HOUR CREATED_AT_TRUNCATED_TO_DAY UPDATED_AT UPDATED_AT_TRUNCATED_TO_HOUR UPDATED_AT_TRUNCATED_TO_DAY - USER_ID } """Conditions for \`Upvote\` aggregates.""" @@ -6395,12 +6395,12 @@ enum UpvoteOrderBy { ROW_ID_DESC POST_ID_ASC POST_ID_DESC + USER_ID_ASC + USER_ID_DESC CREATED_AT_ASC CREATED_AT_DESC UPDATED_AT_ASC UPDATED_AT_DESC - USER_ID_ASC - USER_ID_DESC } """ @@ -6413,14 +6413,14 @@ input UpvoteCondition { """Checks for equality with the object’s \`postId\` field.""" postId: UUID + """Checks for equality with the object’s \`userId\` field.""" + userId: UUID + """Checks for equality with the object’s \`createdAt\` field.""" createdAt: Datetime """Checks for equality with the object’s \`updatedAt\` field.""" updatedAt: Datetime - - """Checks for equality with the object’s \`userId\` field.""" - userId: UUID } """A connection to a list of \`UserOrganization\` values.""" @@ -6479,23 +6479,23 @@ type UserOrganizationAggregates { } type UserOrganizationDistinctCountAggregates { + """Distinct count of userId across the matching connection""" + userId: BigInt + """Distinct count of organizationId across the matching connection""" organizationId: BigInt """Distinct count of createdAt across the matching connection""" createdAt: BigInt - - """Distinct count of userId across the matching connection""" - userId: BigInt } """Grouping methods for \`UserOrganization\` for usage during aggregation.""" enum UserOrganizationGroupBy { + USER_ID ORGANIZATION_ID CREATED_AT CREATED_AT_TRUNCATED_TO_HOUR CREATED_AT_TRUNCATED_TO_DAY - USER_ID } """Conditions for \`UserOrganization\` aggregates.""" @@ -6552,12 +6552,12 @@ input UserOrganizationHavingVariancePopulationInput { """Methods to use when ordering \`UserOrganization\`.""" enum UserOrganizationOrderBy { NATURAL + USER_ID_ASC + USER_ID_DESC ORGANIZATION_ID_ASC ORGANIZATION_ID_DESC CREATED_AT_ASC CREATED_AT_DESC - USER_ID_ASC - USER_ID_DESC } """ @@ -6565,14 +6565,14 @@ A condition to be used against \`UserOrganization\` object types. All fields are tested for equality and combined with a logical ‘and.’ """ input UserOrganizationCondition { + """Checks for equality with the object’s \`userId\` field.""" + userId: UUID + """Checks for equality with the object’s \`organizationId\` field.""" organizationId: UUID """Checks for equality with the object’s \`createdAt\` field.""" createdAt: Datetime - - """Checks for equality with the object’s \`userId\` field.""" - userId: UUID } """A connection to a list of \`Comment\` values.""" @@ -6616,9 +6616,9 @@ type Comment implements Node { rowId: UUID! message: String postId: UUID! + userId: UUID! createdAt: Datetime updatedAt: Datetime - userId: UUID! """Reads a single \`Post\` that is related to this \`Comment\`.""" post: Post @@ -6655,27 +6655,27 @@ type CommentDistinctCountAggregates { """Distinct count of postId across the matching connection""" postId: BigInt + """Distinct count of userId across the matching connection""" + userId: BigInt + """Distinct count of createdAt across the matching connection""" createdAt: BigInt """Distinct count of updatedAt across the matching connection""" updatedAt: BigInt - - """Distinct count of userId across the matching connection""" - userId: BigInt } """Grouping methods for \`Comment\` for usage during aggregation.""" enum CommentGroupBy { MESSAGE POST_ID + USER_ID CREATED_AT CREATED_AT_TRUNCATED_TO_HOUR CREATED_AT_TRUNCATED_TO_DAY UPDATED_AT UPDATED_AT_TRUNCATED_TO_HOUR UPDATED_AT_TRUNCATED_TO_DAY - USER_ID } """Conditions for \`Comment\` aggregates.""" @@ -6749,12 +6749,12 @@ enum CommentOrderBy { MESSAGE_DESC POST_ID_ASC POST_ID_DESC + USER_ID_ASC + USER_ID_DESC CREATED_AT_ASC CREATED_AT_DESC UPDATED_AT_ASC UPDATED_AT_DESC - USER_ID_ASC - USER_ID_DESC } """ @@ -6770,14 +6770,14 @@ input CommentCondition { """Checks for equality with the object’s \`postId\` field.""" postId: UUID + """Checks for equality with the object’s \`userId\` field.""" + userId: UUID + """Checks for equality with the object’s \`createdAt\` field.""" createdAt: Datetime """Checks for equality with the object’s \`updatedAt\` field.""" updatedAt: Datetime - - """Checks for equality with the object’s \`userId\` field.""" - userId: UUID } """A connection to a list of \`Downvote\` values.""" @@ -6820,9 +6820,9 @@ type Downvote implements Node { id: ID! rowId: UUID! postId: UUID! + userId: UUID! createdAt: Datetime updatedAt: Datetime - userId: UUID! """Reads a single \`Post\` that is related to this \`Downvote\`.""" post: Post @@ -6856,26 +6856,26 @@ type DownvoteDistinctCountAggregates { """Distinct count of postId across the matching connection""" postId: BigInt + """Distinct count of userId across the matching connection""" + userId: BigInt + """Distinct count of createdAt across the matching connection""" createdAt: BigInt """Distinct count of updatedAt across the matching connection""" updatedAt: BigInt - - """Distinct count of userId across the matching connection""" - userId: BigInt } """Grouping methods for \`Downvote\` for usage during aggregation.""" enum DownvoteGroupBy { POST_ID + USER_ID CREATED_AT CREATED_AT_TRUNCATED_TO_HOUR CREATED_AT_TRUNCATED_TO_DAY UPDATED_AT UPDATED_AT_TRUNCATED_TO_HOUR UPDATED_AT_TRUNCATED_TO_DAY - USER_ID } """Conditions for \`Downvote\` aggregates.""" @@ -6947,12 +6947,12 @@ enum DownvoteOrderBy { ROW_ID_DESC POST_ID_ASC POST_ID_DESC + USER_ID_ASC + USER_ID_DESC CREATED_AT_ASC CREATED_AT_DESC UPDATED_AT_ASC UPDATED_AT_DESC - USER_ID_ASC - USER_ID_DESC } """ @@ -6966,14 +6966,14 @@ input DownvoteCondition { """Checks for equality with the object’s \`postId\` field.""" postId: UUID + """Checks for equality with the object’s \`userId\` field.""" + userId: UUID + """Checks for equality with the object’s \`createdAt\` field.""" createdAt: Datetime """Checks for equality with the object’s \`updatedAt\` field.""" updatedAt: Datetime - - """Checks for equality with the object’s \`userId\` field.""" - userId: UUID } """A \`Post\` edge in the connection.""" @@ -7007,14 +7007,14 @@ type PostDistinctCountAggregates { """Distinct count of projectId across the matching connection""" projectId: BigInt + """Distinct count of userId across the matching connection""" + userId: BigInt + """Distinct count of createdAt across the matching connection""" createdAt: BigInt """Distinct count of updatedAt across the matching connection""" updatedAt: BigInt - - """Distinct count of userId across the matching connection""" - userId: BigInt } """Grouping methods for \`Post\` for usage during aggregation.""" @@ -7022,13 +7022,13 @@ enum PostGroupBy { TITLE DESCRIPTION PROJECT_ID + USER_ID CREATED_AT CREATED_AT_TRUNCATED_TO_HOUR CREATED_AT_TRUNCATED_TO_DAY UPDATED_AT UPDATED_AT_TRUNCATED_TO_HOUR UPDATED_AT_TRUNCATED_TO_DAY - USER_ID } """Conditions for \`Post\` aggregates.""" @@ -7240,12 +7240,12 @@ enum ProjectOrderBy { POSTS_DISTINCT_COUNT_DESCRIPTION_DESC POSTS_DISTINCT_COUNT_PROJECT_ID_ASC POSTS_DISTINCT_COUNT_PROJECT_ID_DESC + POSTS_DISTINCT_COUNT_USER_ID_ASC + POSTS_DISTINCT_COUNT_USER_ID_DESC POSTS_DISTINCT_COUNT_CREATED_AT_ASC POSTS_DISTINCT_COUNT_CREATED_AT_DESC POSTS_DISTINCT_COUNT_UPDATED_AT_ASC POSTS_DISTINCT_COUNT_UPDATED_AT_DESC - POSTS_DISTINCT_COUNT_USER_ID_ASC - POSTS_DISTINCT_COUNT_USER_ID_DESC } """ @@ -7450,12 +7450,12 @@ enum OrganizationOrderBy { PROJECTS_DISTINCT_COUNT_UPDATED_AT_DESC USER_ORGANIZATIONS_COUNT_ASC USER_ORGANIZATIONS_COUNT_DESC + USER_ORGANIZATIONS_DISTINCT_COUNT_USER_ID_ASC + USER_ORGANIZATIONS_DISTINCT_COUNT_USER_ID_DESC USER_ORGANIZATIONS_DISTINCT_COUNT_ORGANIZATION_ID_ASC USER_ORGANIZATIONS_DISTINCT_COUNT_ORGANIZATION_ID_DESC USER_ORGANIZATIONS_DISTINCT_COUNT_CREATED_AT_ASC USER_ORGANIZATIONS_DISTINCT_COUNT_CREATED_AT_DESC - USER_ORGANIZATIONS_DISTINCT_COUNT_USER_ID_ASC - USER_ORGANIZATIONS_DISTINCT_COUNT_USER_ID_DESC } """ @@ -7654,32 +7654,32 @@ enum UserOrderBy { POSTS_DISTINCT_COUNT_DESCRIPTION_DESC POSTS_DISTINCT_COUNT_PROJECT_ID_ASC POSTS_DISTINCT_COUNT_PROJECT_ID_DESC + POSTS_DISTINCT_COUNT_USER_ID_ASC + POSTS_DISTINCT_COUNT_USER_ID_DESC POSTS_DISTINCT_COUNT_CREATED_AT_ASC POSTS_DISTINCT_COUNT_CREATED_AT_DESC POSTS_DISTINCT_COUNT_UPDATED_AT_ASC POSTS_DISTINCT_COUNT_UPDATED_AT_DESC - POSTS_DISTINCT_COUNT_USER_ID_ASC - POSTS_DISTINCT_COUNT_USER_ID_DESC UPVOTES_COUNT_ASC UPVOTES_COUNT_DESC UPVOTES_DISTINCT_COUNT_ROW_ID_ASC UPVOTES_DISTINCT_COUNT_ROW_ID_DESC UPVOTES_DISTINCT_COUNT_POST_ID_ASC UPVOTES_DISTINCT_COUNT_POST_ID_DESC + UPVOTES_DISTINCT_COUNT_USER_ID_ASC + UPVOTES_DISTINCT_COUNT_USER_ID_DESC UPVOTES_DISTINCT_COUNT_CREATED_AT_ASC UPVOTES_DISTINCT_COUNT_CREATED_AT_DESC UPVOTES_DISTINCT_COUNT_UPDATED_AT_ASC UPVOTES_DISTINCT_COUNT_UPDATED_AT_DESC - UPVOTES_DISTINCT_COUNT_USER_ID_ASC - UPVOTES_DISTINCT_COUNT_USER_ID_DESC USER_ORGANIZATIONS_COUNT_ASC USER_ORGANIZATIONS_COUNT_DESC + USER_ORGANIZATIONS_DISTINCT_COUNT_USER_ID_ASC + USER_ORGANIZATIONS_DISTINCT_COUNT_USER_ID_DESC USER_ORGANIZATIONS_DISTINCT_COUNT_ORGANIZATION_ID_ASC USER_ORGANIZATIONS_DISTINCT_COUNT_ORGANIZATION_ID_DESC USER_ORGANIZATIONS_DISTINCT_COUNT_CREATED_AT_ASC USER_ORGANIZATIONS_DISTINCT_COUNT_CREATED_AT_DESC - USER_ORGANIZATIONS_DISTINCT_COUNT_USER_ID_ASC - USER_ORGANIZATIONS_DISTINCT_COUNT_USER_ID_DESC COMMENTS_COUNT_ASC COMMENTS_COUNT_DESC COMMENTS_DISTINCT_COUNT_ROW_ID_ASC @@ -7688,24 +7688,24 @@ enum UserOrderBy { COMMENTS_DISTINCT_COUNT_MESSAGE_DESC COMMENTS_DISTINCT_COUNT_POST_ID_ASC COMMENTS_DISTINCT_COUNT_POST_ID_DESC + COMMENTS_DISTINCT_COUNT_USER_ID_ASC + COMMENTS_DISTINCT_COUNT_USER_ID_DESC COMMENTS_DISTINCT_COUNT_CREATED_AT_ASC COMMENTS_DISTINCT_COUNT_CREATED_AT_DESC COMMENTS_DISTINCT_COUNT_UPDATED_AT_ASC COMMENTS_DISTINCT_COUNT_UPDATED_AT_DESC - COMMENTS_DISTINCT_COUNT_USER_ID_ASC - COMMENTS_DISTINCT_COUNT_USER_ID_DESC DOWNVOTES_COUNT_ASC DOWNVOTES_COUNT_DESC DOWNVOTES_DISTINCT_COUNT_ROW_ID_ASC DOWNVOTES_DISTINCT_COUNT_ROW_ID_DESC DOWNVOTES_DISTINCT_COUNT_POST_ID_ASC DOWNVOTES_DISTINCT_COUNT_POST_ID_DESC + DOWNVOTES_DISTINCT_COUNT_USER_ID_ASC + DOWNVOTES_DISTINCT_COUNT_USER_ID_DESC DOWNVOTES_DISTINCT_COUNT_CREATED_AT_ASC DOWNVOTES_DISTINCT_COUNT_CREATED_AT_DESC DOWNVOTES_DISTINCT_COUNT_UPDATED_AT_ASC DOWNVOTES_DISTINCT_COUNT_UPDATED_AT_DESC - DOWNVOTES_DISTINCT_COUNT_USER_ID_ASC - DOWNVOTES_DISTINCT_COUNT_USER_ID_DESC } """ @@ -8204,9 +8204,9 @@ input CreateUserOrganizationInput { """An input for mutations affecting \`UserOrganization\`""" input UserOrganizationInput { + userId: UUID! organizationId: UUID! createdAt: Datetime - userId: UUID! } """The output of our create \`Downvote\` mutation.""" @@ -8248,9 +8248,9 @@ input CreateDownvoteInput { input DownvoteInput { rowId: UUID postId: UUID! + userId: UUID! createdAt: Datetime updatedAt: Datetime - userId: UUID! } """The output of our create \`Upvote\` mutation.""" @@ -8292,9 +8292,9 @@ input CreateUpvoteInput { input UpvoteInput { rowId: UUID postId: UUID! + userId: UUID! createdAt: Datetime updatedAt: Datetime - userId: UUID! } """The output of our create \`Organization\` mutation.""" @@ -8381,9 +8381,9 @@ input CommentInput { rowId: UUID message: String postId: UUID! + userId: UUID! createdAt: Datetime updatedAt: Datetime - userId: UUID! } """The output of our create \`Post\` mutation.""" @@ -8427,9 +8427,9 @@ input PostInput { title: String description: String projectId: UUID! + userId: UUID! createdAt: Datetime updatedAt: Datetime - userId: UUID! } """The output of our create \`User\` mutation.""" @@ -8564,9 +8564,9 @@ input UpdateUserOrganizationByUserIdAndOrganizationIdInput { Represents an update to a \`UserOrganization\`. Fields that are set will be updated. """ input UserOrganizationPatch { + userId: UUID organizationId: UUID createdAt: Datetime - userId: UUID } """The output of our update \`Downvote\` mutation.""" @@ -8617,9 +8617,9 @@ Represents an update to a \`Downvote\`. Fields that are set will be updated. input DownvotePatch { rowId: UUID postId: UUID + userId: UUID createdAt: Datetime updatedAt: Datetime - userId: UUID } """All input for the \`updateDownvote\` mutation.""" @@ -8701,9 +8701,9 @@ Represents an update to a \`Upvote\`. Fields that are set will be updated. input UpvotePatch { rowId: UUID postId: UUID + userId: UUID createdAt: Datetime updatedAt: Datetime - userId: UUID } """All input for the \`updateUpvote\` mutation.""" @@ -8884,9 +8884,9 @@ input CommentPatch { rowId: UUID message: String postId: UUID + userId: UUID createdAt: Datetime updatedAt: Datetime - userId: UUID } """All input for the \`updateComment\` mutation.""" @@ -8952,9 +8952,9 @@ input PostPatch { title: String description: String projectId: UUID + userId: UUID createdAt: Datetime updatedAt: Datetime - userId: UUID } """All input for the \`updatePost\` mutation.""" @@ -10378,15 +10378,15 @@ export const plans = { }, UserOrganization: { __assertStep: assertPgClassSingleStep, + userId($record) { + return $record.get("user_id"); + }, organizationId($record) { return $record.get("organization_id"); }, createdAt($record) { return $record.get("created_at"); }, - userId($record) { - return $record.get("user_id"); - }, organization($record) { return pgResource_organizationPgResource.get({ id: $record.get("organization_id") @@ -10394,7 +10394,7 @@ export const plans = { }, user($record) { return pgResource_userPgResource.get({ - hidra_id: $record.get("user_id") + id: $record.get("user_id") }); } }, @@ -10780,15 +10780,15 @@ export const plans = { projectId($record) { return $record.get("project_id"); }, + userId($record) { + return $record.get("user_id"); + }, createdAt($record) { return $record.get("created_at"); }, updatedAt($record) { return $record.get("updated_at"); }, - userId($record) { - return $record.get("user_id"); - }, project($record) { return pgResource_projectPgResource.get({ id: $record.get("project_id") @@ -10796,7 +10796,7 @@ export const plans = { }, user($record) { return pgResource_userPgResource.get({ - hidra_id: $record.get("user_id") + id: $record.get("user_id") }); }, upvotes: { @@ -11028,7 +11028,7 @@ export const plans = { posts: { plan($record) { const $records = pgResource_postPgResource.find({ - user_id: $record.get("hidra_id") + user_id: $record.get("id") }); return connection($records); }, @@ -11094,7 +11094,7 @@ export const plans = { upvotes: { plan($record) { const $records = pgResource_upvotePgResource.find({ - user_id: $record.get("hidra_id") + user_id: $record.get("id") }); return connection($records); }, @@ -11160,7 +11160,7 @@ export const plans = { userOrganizations: { plan($record) { const $records = resource_user_organizationPgResource.find({ - user_id: $record.get("hidra_id") + user_id: $record.get("id") }); return connection($records); }, @@ -11226,7 +11226,7 @@ export const plans = { comments: { plan($record) { const $records = pgResource_commentPgResource.find({ - user_id: $record.get("hidra_id") + user_id: $record.get("id") }); return connection($records); }, @@ -11292,7 +11292,7 @@ export const plans = { downvotes: { plan($record) { const $records = pgResource_downvotePgResource.find({ - user_id: $record.get("hidra_id") + user_id: $record.get("id") }); return connection($records); }, @@ -11504,11 +11504,11 @@ export const plans = { if (false) plan.setOrderIsUnique(); } }, - CREATED_AT_ASC: { + USER_ID_ASC: { applyPlan(plan) { if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); plan.orderBy({ - attribute: "created_at", + attribute: "user_id", direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" @@ -11517,11 +11517,11 @@ export const plans = { if (false) plan.setOrderIsUnique(); } }, - CREATED_AT_DESC: { + USER_ID_DESC: { applyPlan(plan) { if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); plan.orderBy({ - attribute: "created_at", + attribute: "user_id", direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" @@ -11530,11 +11530,11 @@ export const plans = { if (false) plan.setOrderIsUnique(); } }, - UPDATED_AT_ASC: { + CREATED_AT_ASC: { applyPlan(plan) { if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); plan.orderBy({ - attribute: "updated_at", + attribute: "created_at", direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" @@ -11543,11 +11543,11 @@ export const plans = { if (false) plan.setOrderIsUnique(); } }, - UPDATED_AT_DESC: { + CREATED_AT_DESC: { applyPlan(plan) { if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); plan.orderBy({ - attribute: "updated_at", + attribute: "created_at", direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" @@ -11556,11 +11556,11 @@ export const plans = { if (false) plan.setOrderIsUnique(); } }, - USER_ID_ASC: { + UPDATED_AT_ASC: { applyPlan(plan) { if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); plan.orderBy({ - attribute: "user_id", + attribute: "updated_at", direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" @@ -11569,11 +11569,11 @@ export const plans = { if (false) plan.setOrderIsUnique(); } }, - USER_ID_DESC: { + UPDATED_AT_DESC: { applyPlan(plan) { if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); plan.orderBy({ - attribute: "user_id", + attribute: "updated_at", direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" @@ -11710,7 +11710,7 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); } }, - UPVOTES_DISTINCT_COUNT_CREATED_AT_ASC: { + UPVOTES_DISTINCT_COUNT_USER_ID_ASC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -11722,17 +11722,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_upvotePgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_upvote.attributes.created_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_upvote.attributes.user_id.codec)} from ${pgResource_upvotePgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_upvote.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_upvote.attributes.created_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_upvote.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_upvote.attributes.user_id.codec, direction: "ASC" }); } }, - UPVOTES_DISTINCT_COUNT_CREATED_AT_DESC: { + UPVOTES_DISTINCT_COUNT_USER_ID_DESC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -11744,17 +11744,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_upvotePgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_upvote.attributes.created_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_upvote.attributes.user_id.codec)} from ${pgResource_upvotePgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_upvote.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_upvote.attributes.created_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_upvote.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_upvote.attributes.user_id.codec, direction: "DESC" }); } }, - UPVOTES_DISTINCT_COUNT_UPDATED_AT_ASC: { + UPVOTES_DISTINCT_COUNT_CREATED_AT_ASC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -11766,17 +11766,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_upvotePgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("updated_at")}`, spec_upvote.attributes.updated_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_upvote.attributes.created_at.codec)} from ${pgResource_upvotePgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_upvote.attributes.updated_at.codec)) !== null && _b !== void 0 ? _b : spec_upvote.attributes.updated_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_upvote.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_upvote.attributes.created_at.codec, direction: "ASC" }); } }, - UPVOTES_DISTINCT_COUNT_UPDATED_AT_DESC: { + UPVOTES_DISTINCT_COUNT_CREATED_AT_DESC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -11788,17 +11788,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_upvotePgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("updated_at")}`, spec_upvote.attributes.updated_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_upvote.attributes.created_at.codec)} from ${pgResource_upvotePgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_upvote.attributes.updated_at.codec)) !== null && _b !== void 0 ? _b : spec_upvote.attributes.updated_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_upvote.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_upvote.attributes.created_at.codec, direction: "DESC" }); } }, - UPVOTES_DISTINCT_COUNT_USER_ID_ASC: { + UPVOTES_DISTINCT_COUNT_UPDATED_AT_ASC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -11810,17 +11810,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_upvotePgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_upvote.attributes.user_id.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("updated_at")}`, spec_upvote.attributes.updated_at.codec)} from ${pgResource_upvotePgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_upvote.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_upvote.attributes.user_id.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_upvote.attributes.updated_at.codec)) !== null && _b !== void 0 ? _b : spec_upvote.attributes.updated_at.codec, direction: "ASC" }); } }, - UPVOTES_DISTINCT_COUNT_USER_ID_DESC: { + UPVOTES_DISTINCT_COUNT_UPDATED_AT_DESC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -11832,12 +11832,12 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_upvotePgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_upvote.attributes.user_id.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("updated_at")}`, spec_upvote.attributes.updated_at.codec)} from ${pgResource_upvotePgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_upvote.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_upvote.attributes.user_id.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_upvote.attributes.updated_at.codec)) !== null && _b !== void 0 ? _b : spec_upvote.attributes.updated_at.codec, direction: "DESC" }); } @@ -12014,7 +12014,7 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); } }, - COMMENTS_DISTINCT_COUNT_CREATED_AT_ASC: { + COMMENTS_DISTINCT_COUNT_USER_ID_ASC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -12026,17 +12026,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_commentPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_comment.attributes.created_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_comment.attributes.user_id.codec)} from ${pgResource_commentPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_comment.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_comment.attributes.created_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_comment.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_comment.attributes.user_id.codec, direction: "ASC" }); } }, - COMMENTS_DISTINCT_COUNT_CREATED_AT_DESC: { + COMMENTS_DISTINCT_COUNT_USER_ID_DESC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -12048,17 +12048,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_commentPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_comment.attributes.created_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_comment.attributes.user_id.codec)} from ${pgResource_commentPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_comment.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_comment.attributes.created_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_comment.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_comment.attributes.user_id.codec, direction: "DESC" }); } }, - COMMENTS_DISTINCT_COUNT_UPDATED_AT_ASC: { + COMMENTS_DISTINCT_COUNT_CREATED_AT_ASC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -12070,17 +12070,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_commentPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("updated_at")}`, spec_comment.attributes.updated_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_comment.attributes.created_at.codec)} from ${pgResource_commentPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_comment.attributes.updated_at.codec)) !== null && _b !== void 0 ? _b : spec_comment.attributes.updated_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_comment.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_comment.attributes.created_at.codec, direction: "ASC" }); } }, - COMMENTS_DISTINCT_COUNT_UPDATED_AT_DESC: { + COMMENTS_DISTINCT_COUNT_CREATED_AT_DESC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -12092,17 +12092,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_commentPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("updated_at")}`, spec_comment.attributes.updated_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_comment.attributes.created_at.codec)} from ${pgResource_commentPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_comment.attributes.updated_at.codec)) !== null && _b !== void 0 ? _b : spec_comment.attributes.updated_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_comment.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_comment.attributes.created_at.codec, direction: "DESC" }); } }, - COMMENTS_DISTINCT_COUNT_USER_ID_ASC: { + COMMENTS_DISTINCT_COUNT_UPDATED_AT_ASC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -12114,17 +12114,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_commentPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_comment.attributes.user_id.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("updated_at")}`, spec_comment.attributes.updated_at.codec)} from ${pgResource_commentPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_comment.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_comment.attributes.user_id.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_comment.attributes.updated_at.codec)) !== null && _b !== void 0 ? _b : spec_comment.attributes.updated_at.codec, direction: "ASC" }); } }, - COMMENTS_DISTINCT_COUNT_USER_ID_DESC: { + COMMENTS_DISTINCT_COUNT_UPDATED_AT_DESC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -12136,12 +12136,12 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_commentPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_comment.attributes.user_id.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("updated_at")}`, spec_comment.attributes.updated_at.codec)} from ${pgResource_commentPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_comment.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_comment.attributes.user_id.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_comment.attributes.updated_at.codec)) !== null && _b !== void 0 ? _b : spec_comment.attributes.updated_at.codec, direction: "DESC" }); } @@ -12274,7 +12274,7 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); } }, - DOWNVOTES_DISTINCT_COUNT_CREATED_AT_ASC: { + DOWNVOTES_DISTINCT_COUNT_USER_ID_ASC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -12286,17 +12286,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_downvotePgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_downvote.attributes.created_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_downvote.attributes.user_id.codec)} from ${pgResource_downvotePgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_downvote.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_downvote.attributes.created_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_downvote.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_downvote.attributes.user_id.codec, direction: "ASC" }); } }, - DOWNVOTES_DISTINCT_COUNT_CREATED_AT_DESC: { + DOWNVOTES_DISTINCT_COUNT_USER_ID_DESC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -12308,17 +12308,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_downvotePgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_downvote.attributes.created_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_downvote.attributes.user_id.codec)} from ${pgResource_downvotePgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_downvote.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_downvote.attributes.created_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_downvote.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_downvote.attributes.user_id.codec, direction: "DESC" }); } }, - DOWNVOTES_DISTINCT_COUNT_UPDATED_AT_ASC: { + DOWNVOTES_DISTINCT_COUNT_CREATED_AT_ASC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -12330,17 +12330,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_downvotePgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("updated_at")}`, spec_downvote.attributes.updated_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_downvote.attributes.created_at.codec)} from ${pgResource_downvotePgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_downvote.attributes.updated_at.codec)) !== null && _b !== void 0 ? _b : spec_downvote.attributes.updated_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_downvote.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_downvote.attributes.created_at.codec, direction: "ASC" }); } }, - DOWNVOTES_DISTINCT_COUNT_UPDATED_AT_DESC: { + DOWNVOTES_DISTINCT_COUNT_CREATED_AT_DESC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -12352,17 +12352,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_downvotePgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("updated_at")}`, spec_downvote.attributes.updated_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_downvote.attributes.created_at.codec)} from ${pgResource_downvotePgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_downvote.attributes.updated_at.codec)) !== null && _b !== void 0 ? _b : spec_downvote.attributes.updated_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_downvote.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_downvote.attributes.created_at.codec, direction: "DESC" }); } }, - DOWNVOTES_DISTINCT_COUNT_USER_ID_ASC: { + DOWNVOTES_DISTINCT_COUNT_UPDATED_AT_ASC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -12374,17 +12374,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_downvotePgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_downvote.attributes.user_id.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("updated_at")}`, spec_downvote.attributes.updated_at.codec)} from ${pgResource_downvotePgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_downvote.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_downvote.attributes.user_id.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_downvote.attributes.updated_at.codec)) !== null && _b !== void 0 ? _b : spec_downvote.attributes.updated_at.codec, direction: "ASC" }); } }, - DOWNVOTES_DISTINCT_COUNT_USER_ID_DESC: { + DOWNVOTES_DISTINCT_COUNT_UPDATED_AT_DESC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -12396,12 +12396,12 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_downvotePgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_downvote.attributes.user_id.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("updated_at")}`, spec_downvote.attributes.updated_at.codec)} from ${pgResource_downvotePgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_downvote.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_downvote.attributes.user_id.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_downvote.attributes.updated_at.codec)) !== null && _b !== void 0 ? _b : spec_downvote.attributes.updated_at.codec, direction: "DESC" }); } @@ -12484,57 +12484,57 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - createdAt: { + userId: { applyPlan($condition, val) { if (val.getRaw().evalIs(null)) $condition.where({ type: "attribute", - attribute: "created_at", + attribute: "user_id", callback(expression) { return sql`${expression} is null`; } });else $condition.where({ type: "attribute", - attribute: "created_at", + attribute: "user_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.created_at.codec)}`; + return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.user_id.codec)}`; } }); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - updatedAt: { + createdAt: { applyPlan($condition, val) { if (val.getRaw().evalIs(null)) $condition.where({ type: "attribute", - attribute: "updated_at", + attribute: "created_at", callback(expression) { return sql`${expression} is null`; } });else $condition.where({ type: "attribute", - attribute: "updated_at", + attribute: "created_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.updated_at.codec)}`; + return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.created_at.codec)}`; } }); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - userId: { + updatedAt: { applyPlan($condition, val) { if (val.getRaw().evalIs(null)) $condition.where({ type: "attribute", - attribute: "user_id", + attribute: "updated_at", callback(expression) { return sql`${expression} is null`; } });else $condition.where({ type: "attribute", - attribute: "user_id", + attribute: "updated_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.user_id.codec)}`; + return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.updated_at.codec)}`; } }); }, @@ -12587,7 +12587,7 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; fieldArgs.apply($col); } }, - createdAt: { + userId: { applyPlan($where, fieldArgs) { const $raw = fieldArgs.getRaw(); if ($raw.evalIs(void 0)) return; @@ -12598,7 +12598,7 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; fieldArgs.apply($col); } }, - updatedAt: { + createdAt: { applyPlan($where, fieldArgs) { const $raw = fieldArgs.getRaw(); if ($raw.evalIs(void 0)) return; @@ -12609,7 +12609,7 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; fieldArgs.apply($col); } }, - userId: { + updatedAt: { applyPlan($where, fieldArgs) { const $raw = fieldArgs.getRaw(); if ($raw.evalIs(void 0)) return; @@ -14459,7 +14459,7 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; fieldArgs.apply($col); } }, - createdAt: { + userId: { applyPlan($where, fieldArgs) { const $raw = fieldArgs.getRaw(); if ($raw.evalIs(void 0)) return; @@ -14470,7 +14470,7 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; fieldArgs.apply($col); } }, - updatedAt: { + createdAt: { applyPlan($where, fieldArgs) { const $raw = fieldArgs.getRaw(); if ($raw.evalIs(void 0)) return; @@ -14481,7 +14481,7 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; fieldArgs.apply($col); } }, - userId: { + updatedAt: { applyPlan($where, fieldArgs) { const $raw = fieldArgs.getRaw(); if ($raw.evalIs(void 0)) return; @@ -14917,32 +14917,32 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; fieldArgs.apply($col); } }, - createdAt: { + userId: { applyPlan($parent, fieldArgs) { const $col = new PgConditionStep($parent); $col.extensions.pgFilterAttribute = { codec: TYPES.bigint, - expression: aggregateSpec.sqlAggregateWrap(sql`${$col.alias}.${sql.identifier("created_at")}`, spec_post.attributes.created_at.codec) + expression: aggregateSpec.sqlAggregateWrap(sql`${$col.alias}.${sql.identifier("user_id")}`, spec_post.attributes.user_id.codec) }; fieldArgs.apply($col); } }, - updatedAt: { + createdAt: { applyPlan($parent, fieldArgs) { const $col = new PgConditionStep($parent); $col.extensions.pgFilterAttribute = { codec: TYPES.bigint, - expression: aggregateSpec.sqlAggregateWrap(sql`${$col.alias}.${sql.identifier("updated_at")}`, spec_post.attributes.updated_at.codec) + expression: aggregateSpec.sqlAggregateWrap(sql`${$col.alias}.${sql.identifier("created_at")}`, spec_post.attributes.created_at.codec) }; fieldArgs.apply($col); } }, - userId: { + updatedAt: { applyPlan($parent, fieldArgs) { const $col = new PgConditionStep($parent); $col.extensions.pgFilterAttribute = { codec: TYPES.bigint, - expression: aggregateSpec.sqlAggregateWrap(sql`${$col.alias}.${sql.identifier("user_id")}`, spec_post.attributes.user_id.codec) + expression: aggregateSpec.sqlAggregateWrap(sql`${$col.alias}.${sql.identifier("updated_at")}`, spec_post.attributes.updated_at.codec) }; fieldArgs.apply($col); } @@ -15375,32 +15375,32 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; fieldArgs.apply($col); } }, - createdAt: { + userId: { applyPlan($parent, fieldArgs) { const $col = new PgConditionStep($parent); $col.extensions.pgFilterAttribute = { codec: TYPES.bigint, - expression: aggregateSpec.sqlAggregateWrap(sql`${$col.alias}.${sql.identifier("created_at")}`, spec_upvote.attributes.created_at.codec) + expression: aggregateSpec.sqlAggregateWrap(sql`${$col.alias}.${sql.identifier("user_id")}`, spec_upvote.attributes.user_id.codec) }; fieldArgs.apply($col); } }, - updatedAt: { + createdAt: { applyPlan($parent, fieldArgs) { const $col = new PgConditionStep($parent); $col.extensions.pgFilterAttribute = { codec: TYPES.bigint, - expression: aggregateSpec.sqlAggregateWrap(sql`${$col.alias}.${sql.identifier("updated_at")}`, spec_upvote.attributes.updated_at.codec) + expression: aggregateSpec.sqlAggregateWrap(sql`${$col.alias}.${sql.identifier("created_at")}`, spec_upvote.attributes.created_at.codec) }; fieldArgs.apply($col); } }, - userId: { + updatedAt: { applyPlan($parent, fieldArgs) { const $col = new PgConditionStep($parent); $col.extensions.pgFilterAttribute = { codec: TYPES.bigint, - expression: aggregateSpec.sqlAggregateWrap(sql`${$col.alias}.${sql.identifier("user_id")}`, spec_upvote.attributes.user_id.codec) + expression: aggregateSpec.sqlAggregateWrap(sql`${$col.alias}.${sql.identifier("updated_at")}`, spec_upvote.attributes.updated_at.codec) }; fieldArgs.apply($col); } @@ -15493,7 +15493,7 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; } }, UserOrganizationFilter: { - organizationId: { + userId: { applyPlan($where, fieldArgs) { const $raw = fieldArgs.getRaw(); if ($raw.evalIs(void 0)) return; @@ -15504,7 +15504,7 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; fieldArgs.apply($col); } }, - createdAt: { + organizationId: { applyPlan($where, fieldArgs) { const $raw = fieldArgs.getRaw(); if ($raw.evalIs(void 0)) return; @@ -15515,7 +15515,7 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; fieldArgs.apply($col); } }, - userId: { + createdAt: { applyPlan($where, fieldArgs) { const $raw = fieldArgs.getRaw(); if ($raw.evalIs(void 0)) return; @@ -16227,32 +16227,32 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; } }, UserOrganizationDistinctCountAggregateFilter: { - organizationId: { + userId: { applyPlan($parent, fieldArgs) { const $col = new PgConditionStep($parent); $col.extensions.pgFilterAttribute = { codec: TYPES.bigint, - expression: aggregateSpec.sqlAggregateWrap(sql`${$col.alias}.${sql.identifier("organization_id")}`, spec_userOrganization.attributes.organization_id.codec) + expression: aggregateSpec.sqlAggregateWrap(sql`${$col.alias}.${sql.identifier("user_id")}`, spec_userOrganization.attributes.user_id.codec) }; fieldArgs.apply($col); } }, - createdAt: { + organizationId: { applyPlan($parent, fieldArgs) { const $col = new PgConditionStep($parent); $col.extensions.pgFilterAttribute = { codec: TYPES.bigint, - expression: aggregateSpec.sqlAggregateWrap(sql`${$col.alias}.${sql.identifier("created_at")}`, spec_userOrganization.attributes.created_at.codec) + expression: aggregateSpec.sqlAggregateWrap(sql`${$col.alias}.${sql.identifier("organization_id")}`, spec_userOrganization.attributes.organization_id.codec) }; fieldArgs.apply($col); } }, - userId: { + createdAt: { applyPlan($parent, fieldArgs) { const $col = new PgConditionStep($parent); $col.extensions.pgFilterAttribute = { codec: TYPES.bigint, - expression: aggregateSpec.sqlAggregateWrap(sql`${$col.alias}.${sql.identifier("user_id")}`, spec_userOrganization.attributes.user_id.codec) + expression: aggregateSpec.sqlAggregateWrap(sql`${$col.alias}.${sql.identifier("created_at")}`, spec_userOrganization.attributes.created_at.codec) }; fieldArgs.apply($col); } @@ -16378,7 +16378,7 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; fieldArgs.apply($col); } }, - createdAt: { + userId: { applyPlan($where, fieldArgs) { const $raw = fieldArgs.getRaw(); if ($raw.evalIs(void 0)) return; @@ -16389,7 +16389,7 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; fieldArgs.apply($col); } }, - updatedAt: { + createdAt: { applyPlan($where, fieldArgs) { const $raw = fieldArgs.getRaw(); if ($raw.evalIs(void 0)) return; @@ -16400,7 +16400,7 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; fieldArgs.apply($col); } }, - userId: { + updatedAt: { applyPlan($where, fieldArgs) { const $raw = fieldArgs.getRaw(); if ($raw.evalIs(void 0)) return; @@ -16505,32 +16505,32 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; fieldArgs.apply($col); } }, - createdAt: { + userId: { applyPlan($parent, fieldArgs) { const $col = new PgConditionStep($parent); $col.extensions.pgFilterAttribute = { codec: TYPES.bigint, - expression: aggregateSpec.sqlAggregateWrap(sql`${$col.alias}.${sql.identifier("created_at")}`, spec_comment.attributes.created_at.codec) + expression: aggregateSpec.sqlAggregateWrap(sql`${$col.alias}.${sql.identifier("user_id")}`, spec_comment.attributes.user_id.codec) }; fieldArgs.apply($col); } }, - updatedAt: { + createdAt: { applyPlan($parent, fieldArgs) { const $col = new PgConditionStep($parent); $col.extensions.pgFilterAttribute = { codec: TYPES.bigint, - expression: aggregateSpec.sqlAggregateWrap(sql`${$col.alias}.${sql.identifier("updated_at")}`, spec_comment.attributes.updated_at.codec) + expression: aggregateSpec.sqlAggregateWrap(sql`${$col.alias}.${sql.identifier("created_at")}`, spec_comment.attributes.created_at.codec) }; fieldArgs.apply($col); } }, - userId: { + updatedAt: { applyPlan($parent, fieldArgs) { const $col = new PgConditionStep($parent); $col.extensions.pgFilterAttribute = { codec: TYPES.bigint, - expression: aggregateSpec.sqlAggregateWrap(sql`${$col.alias}.${sql.identifier("user_id")}`, spec_comment.attributes.user_id.codec) + expression: aggregateSpec.sqlAggregateWrap(sql`${$col.alias}.${sql.identifier("updated_at")}`, spec_comment.attributes.updated_at.codec) }; fieldArgs.apply($col); } @@ -16645,7 +16645,7 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; fieldArgs.apply($col); } }, - createdAt: { + userId: { applyPlan($where, fieldArgs) { const $raw = fieldArgs.getRaw(); if ($raw.evalIs(void 0)) return; @@ -16656,7 +16656,7 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; fieldArgs.apply($col); } }, - updatedAt: { + createdAt: { applyPlan($where, fieldArgs) { const $raw = fieldArgs.getRaw(); if ($raw.evalIs(void 0)) return; @@ -16667,7 +16667,7 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; fieldArgs.apply($col); } }, - userId: { + updatedAt: { applyPlan($where, fieldArgs) { const $raw = fieldArgs.getRaw(); if ($raw.evalIs(void 0)) return; @@ -16762,32 +16762,32 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; fieldArgs.apply($col); } }, - createdAt: { + userId: { applyPlan($parent, fieldArgs) { const $col = new PgConditionStep($parent); $col.extensions.pgFilterAttribute = { codec: TYPES.bigint, - expression: aggregateSpec.sqlAggregateWrap(sql`${$col.alias}.${sql.identifier("created_at")}`, spec_downvote.attributes.created_at.codec) + expression: aggregateSpec.sqlAggregateWrap(sql`${$col.alias}.${sql.identifier("user_id")}`, spec_downvote.attributes.user_id.codec) }; fieldArgs.apply($col); } }, - updatedAt: { + createdAt: { applyPlan($parent, fieldArgs) { const $col = new PgConditionStep($parent); $col.extensions.pgFilterAttribute = { codec: TYPES.bigint, - expression: aggregateSpec.sqlAggregateWrap(sql`${$col.alias}.${sql.identifier("updated_at")}`, spec_downvote.attributes.updated_at.codec) + expression: aggregateSpec.sqlAggregateWrap(sql`${$col.alias}.${sql.identifier("created_at")}`, spec_downvote.attributes.created_at.codec) }; fieldArgs.apply($col); } }, - userId: { + updatedAt: { applyPlan($parent, fieldArgs) { const $col = new PgConditionStep($parent); $col.extensions.pgFilterAttribute = { codec: TYPES.bigint, - expression: aggregateSpec.sqlAggregateWrap(sql`${$col.alias}.${sql.identifier("user_id")}`, spec_downvote.attributes.user_id.codec) + expression: aggregateSpec.sqlAggregateWrap(sql`${$col.alias}.${sql.identifier("updated_at")}`, spec_downvote.attributes.updated_at.codec) }; fieldArgs.apply($col); } @@ -17022,15 +17022,15 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; postId($record) { return $record.get("post_id"); }, + userId($record) { + return $record.get("user_id"); + }, createdAt($record) { return $record.get("created_at"); }, updatedAt($record) { return $record.get("updated_at"); }, - userId($record) { - return $record.get("user_id"); - }, post($record) { return pgResource_postPgResource.get({ id: $record.get("post_id") @@ -17038,7 +17038,7 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }, user($record) { return pgResource_userPgResource.get({ - hidra_id: $record.get("user_id") + id: $record.get("user_id") }); } }, @@ -17087,6 +17087,11 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; sqlAggregate = aggregateSpec.sqlAggregateWrap(sqlAttribute, TYPES.uuid); return $pgSelectSingle.select(sqlAggregate, TYPES.bigint); }, + userId($pgSelectSingle) { + const sqlAttribute = sql.fragment`${$pgSelectSingle.getClassStep().alias}.${sql.identifier("user_id")}`, + sqlAggregate = aggregateSpec.sqlAggregateWrap(sqlAttribute, TYPES.uuid); + return $pgSelectSingle.select(sqlAggregate, TYPES.bigint); + }, createdAt($pgSelectSingle) { const sqlAttribute = sql.fragment`${$pgSelectSingle.getClassStep().alias}.${sql.identifier("created_at")}`, sqlAggregate = aggregateSpec.sqlAggregateWrap(sqlAttribute, TYPES.timestamptz); @@ -17096,36 +17101,31 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; const sqlAttribute = sql.fragment`${$pgSelectSingle.getClassStep().alias}.${sql.identifier("updated_at")}`, sqlAggregate = aggregateSpec.sqlAggregateWrap(sqlAttribute, TYPES.timestamptz); return $pgSelectSingle.select(sqlAggregate, TYPES.bigint); - }, - userId($pgSelectSingle) { - const sqlAttribute = sql.fragment`${$pgSelectSingle.getClassStep().alias}.${sql.identifier("user_id")}`, - sqlAggregate = aggregateSpec.sqlAggregateWrap(sqlAttribute, TYPES.uuid); - return $pgSelectSingle.select(sqlAggregate, TYPES.bigint); } }, UpvoteGroupBy: { POST_ID: { applyPlan: UpvoteGroupBy_extensions_grafast_applyPlan }, - CREATED_AT: { + USER_ID: { applyPlan: UpvoteGroupBy_extensions_grafast_applyPlan2 }, - CREATED_AT_TRUNCATED_TO_HOUR: { + CREATED_AT: { applyPlan: UpvoteGroupBy_extensions_grafast_applyPlan3 }, - CREATED_AT_TRUNCATED_TO_DAY: { + CREATED_AT_TRUNCATED_TO_HOUR: { applyPlan: UpvoteGroupBy_extensions_grafast_applyPlan4 }, - UPDATED_AT: { + CREATED_AT_TRUNCATED_TO_DAY: { applyPlan: UpvoteGroupBy_extensions_grafast_applyPlan5 }, - UPDATED_AT_TRUNCATED_TO_HOUR: { + UPDATED_AT: { applyPlan: UpvoteGroupBy_extensions_grafast_applyPlan6 }, - UPDATED_AT_TRUNCATED_TO_DAY: { + UPDATED_AT_TRUNCATED_TO_HOUR: { applyPlan: UpvoteGroupBy_extensions_grafast_applyPlan7 }, - USER_ID: { + UPDATED_AT_TRUNCATED_TO_DAY: { applyPlan: UpvoteGroupBy_extensions_grafast_applyPlan8 } }, @@ -17459,11 +17459,11 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; if (true) plan.setOrderIsUnique(); } }, - CREATED_AT_ASC: { + USER_ID_ASC: { applyPlan(plan) { if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); plan.orderBy({ - attribute: "created_at", + attribute: "user_id", direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" @@ -17472,11 +17472,11 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; if (false) plan.setOrderIsUnique(); } }, - CREATED_AT_DESC: { + USER_ID_DESC: { applyPlan(plan) { if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); plan.orderBy({ - attribute: "created_at", + attribute: "user_id", direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" @@ -17485,11 +17485,11 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; if (false) plan.setOrderIsUnique(); } }, - UPDATED_AT_ASC: { + CREATED_AT_ASC: { applyPlan(plan) { if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); plan.orderBy({ - attribute: "updated_at", + attribute: "created_at", direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" @@ -17498,11 +17498,11 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; if (false) plan.setOrderIsUnique(); } }, - UPDATED_AT_DESC: { + CREATED_AT_DESC: { applyPlan(plan) { if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); plan.orderBy({ - attribute: "updated_at", + attribute: "created_at", direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" @@ -17511,11 +17511,11 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; if (false) plan.setOrderIsUnique(); } }, - USER_ID_ASC: { + UPDATED_AT_ASC: { applyPlan(plan) { if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); plan.orderBy({ - attribute: "user_id", + attribute: "updated_at", direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" @@ -17524,11 +17524,11 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; if (false) plan.setOrderIsUnique(); } }, - USER_ID_DESC: { + UPDATED_AT_DESC: { applyPlan(plan) { if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); plan.orderBy({ - attribute: "user_id", + attribute: "updated_at", direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" @@ -17577,57 +17577,57 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - createdAt: { + userId: { applyPlan($condition, val) { if (val.getRaw().evalIs(null)) $condition.where({ type: "attribute", - attribute: "created_at", + attribute: "user_id", callback(expression) { return sql`${expression} is null`; } });else $condition.where({ type: "attribute", - attribute: "created_at", + attribute: "user_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_upvote.attributes.created_at.codec)}`; + return sql`${expression} = ${$condition.placeholder(val.get(), spec_upvote.attributes.user_id.codec)}`; } }); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - updatedAt: { + createdAt: { applyPlan($condition, val) { if (val.getRaw().evalIs(null)) $condition.where({ type: "attribute", - attribute: "updated_at", + attribute: "created_at", callback(expression) { return sql`${expression} is null`; } });else $condition.where({ type: "attribute", - attribute: "updated_at", + attribute: "created_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_upvote.attributes.updated_at.codec)}`; + return sql`${expression} = ${$condition.placeholder(val.get(), spec_upvote.attributes.created_at.codec)}`; } }); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - userId: { + updatedAt: { applyPlan($condition, val) { if (val.getRaw().evalIs(null)) $condition.where({ type: "attribute", - attribute: "user_id", + attribute: "updated_at", callback(expression) { return sql`${expression} is null`; } });else $condition.where({ type: "attribute", - attribute: "user_id", + attribute: "updated_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_upvote.attributes.user_id.codec)}`; + return sql`${expression} = ${$condition.placeholder(val.get(), spec_upvote.attributes.updated_at.codec)}`; } }); }, @@ -17700,6 +17700,11 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; } }, UserOrganizationDistinctCountAggregates: { + userId($pgSelectSingle) { + const sqlAttribute = sql.fragment`${$pgSelectSingle.getClassStep().alias}.${sql.identifier("user_id")}`, + sqlAggregate = aggregateSpec.sqlAggregateWrap(sqlAttribute, TYPES.uuid); + return $pgSelectSingle.select(sqlAggregate, TYPES.bigint); + }, organizationId($pgSelectSingle) { const sqlAttribute = sql.fragment`${$pgSelectSingle.getClassStep().alias}.${sql.identifier("organization_id")}`, sqlAggregate = aggregateSpec.sqlAggregateWrap(sqlAttribute, TYPES.uuid); @@ -17709,27 +17714,22 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; const sqlAttribute = sql.fragment`${$pgSelectSingle.getClassStep().alias}.${sql.identifier("created_at")}`, sqlAggregate = aggregateSpec.sqlAggregateWrap(sqlAttribute, TYPES.timestamptz); return $pgSelectSingle.select(sqlAggregate, TYPES.bigint); - }, - userId($pgSelectSingle) { - const sqlAttribute = sql.fragment`${$pgSelectSingle.getClassStep().alias}.${sql.identifier("user_id")}`, - sqlAggregate = aggregateSpec.sqlAggregateWrap(sqlAttribute, TYPES.uuid); - return $pgSelectSingle.select(sqlAggregate, TYPES.bigint); } }, UserOrganizationGroupBy: { - ORGANIZATION_ID: { + USER_ID: { applyPlan: UserOrganizationGroupBy_extensions_grafast_applyPlan }, - CREATED_AT: { + ORGANIZATION_ID: { applyPlan: UserOrganizationGroupBy_extensions_grafast_applyPlan2 }, - CREATED_AT_TRUNCATED_TO_HOUR: { + CREATED_AT: { applyPlan: UserOrganizationGroupBy_extensions_grafast_applyPlan3 }, - CREATED_AT_TRUNCATED_TO_DAY: { + CREATED_AT_TRUNCATED_TO_HOUR: { applyPlan: UserOrganizationGroupBy_extensions_grafast_applyPlan4 }, - USER_ID: { + CREATED_AT_TRUNCATED_TO_DAY: { applyPlan: UserOrganizationGroupBy_extensions_grafast_applyPlan5 } }, @@ -17878,37 +17878,37 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; NATURAL: { applyPlan() {} }, - ORGANIZATION_ID_ASC: { + USER_ID_ASC: { applyPlan(plan) { if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); plan.orderBy({ - attribute: "organization_id", + attribute: "user_id", direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); - if (false) plan.setOrderIsUnique(); + if (true) plan.setOrderIsUnique(); } }, - ORGANIZATION_ID_DESC: { + USER_ID_DESC: { applyPlan(plan) { if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); plan.orderBy({ - attribute: "organization_id", + attribute: "user_id", direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); - if (false) plan.setOrderIsUnique(); + if (true) plan.setOrderIsUnique(); } }, - CREATED_AT_ASC: { + ORGANIZATION_ID_ASC: { applyPlan(plan) { if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); plan.orderBy({ - attribute: "created_at", + attribute: "organization_id", direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" @@ -17917,11 +17917,11 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; if (false) plan.setOrderIsUnique(); } }, - CREATED_AT_DESC: { + ORGANIZATION_ID_DESC: { applyPlan(plan) { if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); plan.orderBy({ - attribute: "created_at", + attribute: "organization_id", direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" @@ -17930,85 +17930,85 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; if (false) plan.setOrderIsUnique(); } }, - USER_ID_ASC: { + CREATED_AT_ASC: { applyPlan(plan) { if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); plan.orderBy({ - attribute: "user_id", + attribute: "created_at", direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); - if (true) plan.setOrderIsUnique(); + if (false) plan.setOrderIsUnique(); } }, - USER_ID_DESC: { + CREATED_AT_DESC: { applyPlan(plan) { if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); plan.orderBy({ - attribute: "user_id", + attribute: "created_at", direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); - if (true) plan.setOrderIsUnique(); + if (false) plan.setOrderIsUnique(); } } }, UserOrganizationCondition: { - organizationId: { + userId: { applyPlan($condition, val) { if (val.getRaw().evalIs(null)) $condition.where({ type: "attribute", - attribute: "organization_id", + attribute: "user_id", callback(expression) { return sql`${expression} is null`; } });else $condition.where({ type: "attribute", - attribute: "organization_id", + attribute: "user_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_userOrganization.attributes.organization_id.codec)}`; + return sql`${expression} = ${$condition.placeholder(val.get(), spec_userOrganization.attributes.user_id.codec)}`; } }); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - createdAt: { + organizationId: { applyPlan($condition, val) { if (val.getRaw().evalIs(null)) $condition.where({ type: "attribute", - attribute: "created_at", + attribute: "organization_id", callback(expression) { return sql`${expression} is null`; } });else $condition.where({ type: "attribute", - attribute: "created_at", + attribute: "organization_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_userOrganization.attributes.created_at.codec)}`; + return sql`${expression} = ${$condition.placeholder(val.get(), spec_userOrganization.attributes.organization_id.codec)}`; } }); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - userId: { + createdAt: { applyPlan($condition, val) { if (val.getRaw().evalIs(null)) $condition.where({ type: "attribute", - attribute: "user_id", + attribute: "created_at", callback(expression) { return sql`${expression} is null`; } });else $condition.where({ type: "attribute", - attribute: "user_id", + attribute: "created_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_userOrganization.attributes.user_id.codec)}`; + return sql`${expression} = ${$condition.placeholder(val.get(), spec_userOrganization.attributes.created_at.codec)}`; } }); }, @@ -18076,15 +18076,15 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; postId($record) { return $record.get("post_id"); }, + userId($record) { + return $record.get("user_id"); + }, createdAt($record) { return $record.get("created_at"); }, updatedAt($record) { return $record.get("updated_at"); }, - userId($record) { - return $record.get("user_id"); - }, post($record) { return pgResource_postPgResource.get({ id: $record.get("post_id") @@ -18092,7 +18092,7 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }, user($record) { return pgResource_userPgResource.get({ - hidra_id: $record.get("user_id") + id: $record.get("user_id") }); } }, @@ -18131,6 +18131,11 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; sqlAggregate = aggregateSpec.sqlAggregateWrap(sqlAttribute, TYPES.uuid); return $pgSelectSingle.select(sqlAggregate, TYPES.bigint); }, + userId($pgSelectSingle) { + const sqlAttribute = sql.fragment`${$pgSelectSingle.getClassStep().alias}.${sql.identifier("user_id")}`, + sqlAggregate = aggregateSpec.sqlAggregateWrap(sqlAttribute, TYPES.uuid); + return $pgSelectSingle.select(sqlAggregate, TYPES.bigint); + }, createdAt($pgSelectSingle) { const sqlAttribute = sql.fragment`${$pgSelectSingle.getClassStep().alias}.${sql.identifier("created_at")}`, sqlAggregate = aggregateSpec.sqlAggregateWrap(sqlAttribute, TYPES.timestamptz); @@ -18140,11 +18145,6 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; const sqlAttribute = sql.fragment`${$pgSelectSingle.getClassStep().alias}.${sql.identifier("updated_at")}`, sqlAggregate = aggregateSpec.sqlAggregateWrap(sqlAttribute, TYPES.timestamptz); return $pgSelectSingle.select(sqlAggregate, TYPES.bigint); - }, - userId($pgSelectSingle) { - const sqlAttribute = sql.fragment`${$pgSelectSingle.getClassStep().alias}.${sql.identifier("user_id")}`, - sqlAggregate = aggregateSpec.sqlAggregateWrap(sqlAttribute, TYPES.uuid); - return $pgSelectSingle.select(sqlAggregate, TYPES.bigint); } }, CommentGroupBy: { @@ -18154,25 +18154,25 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; POST_ID: { applyPlan: CommentGroupBy_extensions_grafast_applyPlan2 }, - CREATED_AT: { + USER_ID: { applyPlan: CommentGroupBy_extensions_grafast_applyPlan3 }, - CREATED_AT_TRUNCATED_TO_HOUR: { + CREATED_AT: { applyPlan: CommentGroupBy_extensions_grafast_applyPlan4 }, - CREATED_AT_TRUNCATED_TO_DAY: { + CREATED_AT_TRUNCATED_TO_HOUR: { applyPlan: CommentGroupBy_extensions_grafast_applyPlan5 }, - UPDATED_AT: { + CREATED_AT_TRUNCATED_TO_DAY: { applyPlan: CommentGroupBy_extensions_grafast_applyPlan6 }, - UPDATED_AT_TRUNCATED_TO_HOUR: { + UPDATED_AT: { applyPlan: CommentGroupBy_extensions_grafast_applyPlan7 }, - UPDATED_AT_TRUNCATED_TO_DAY: { + UPDATED_AT_TRUNCATED_TO_HOUR: { applyPlan: CommentGroupBy_extensions_grafast_applyPlan8 }, - USER_ID: { + UPDATED_AT_TRUNCATED_TO_DAY: { applyPlan: CommentGroupBy_extensions_grafast_applyPlan9 } }, @@ -18494,11 +18494,11 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; if (false) plan.setOrderIsUnique(); } }, - CREATED_AT_ASC: { + USER_ID_ASC: { applyPlan(plan) { if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); plan.orderBy({ - attribute: "created_at", + attribute: "user_id", direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" @@ -18507,11 +18507,11 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; if (false) plan.setOrderIsUnique(); } }, - CREATED_AT_DESC: { + USER_ID_DESC: { applyPlan(plan) { if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); plan.orderBy({ - attribute: "created_at", + attribute: "user_id", direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" @@ -18520,11 +18520,11 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; if (false) plan.setOrderIsUnique(); } }, - UPDATED_AT_ASC: { + CREATED_AT_ASC: { applyPlan(plan) { if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); plan.orderBy({ - attribute: "updated_at", + attribute: "created_at", direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" @@ -18533,11 +18533,11 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; if (false) plan.setOrderIsUnique(); } }, - UPDATED_AT_DESC: { + CREATED_AT_DESC: { applyPlan(plan) { if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); plan.orderBy({ - attribute: "updated_at", + attribute: "created_at", direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" @@ -18546,11 +18546,11 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; if (false) plan.setOrderIsUnique(); } }, - USER_ID_ASC: { + UPDATED_AT_ASC: { applyPlan(plan) { if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); plan.orderBy({ - attribute: "user_id", + attribute: "updated_at", direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" @@ -18559,11 +18559,11 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; if (false) plan.setOrderIsUnique(); } }, - USER_ID_DESC: { + UPDATED_AT_DESC: { applyPlan(plan) { if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); plan.orderBy({ - attribute: "user_id", + attribute: "updated_at", direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" @@ -18631,57 +18631,57 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - createdAt: { + userId: { applyPlan($condition, val) { if (val.getRaw().evalIs(null)) $condition.where({ type: "attribute", - attribute: "created_at", + attribute: "user_id", callback(expression) { return sql`${expression} is null`; } });else $condition.where({ type: "attribute", - attribute: "created_at", + attribute: "user_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_comment.attributes.created_at.codec)}`; + return sql`${expression} = ${$condition.placeholder(val.get(), spec_comment.attributes.user_id.codec)}`; } }); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - updatedAt: { + createdAt: { applyPlan($condition, val) { if (val.getRaw().evalIs(null)) $condition.where({ type: "attribute", - attribute: "updated_at", + attribute: "created_at", callback(expression) { return sql`${expression} is null`; } });else $condition.where({ type: "attribute", - attribute: "updated_at", + attribute: "created_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_comment.attributes.updated_at.codec)}`; + return sql`${expression} = ${$condition.placeholder(val.get(), spec_comment.attributes.created_at.codec)}`; } }); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - userId: { + updatedAt: { applyPlan($condition, val) { if (val.getRaw().evalIs(null)) $condition.where({ type: "attribute", - attribute: "user_id", + attribute: "updated_at", callback(expression) { return sql`${expression} is null`; } });else $condition.where({ type: "attribute", - attribute: "user_id", + attribute: "updated_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_comment.attributes.user_id.codec)}`; + return sql`${expression} = ${$condition.placeholder(val.get(), spec_comment.attributes.updated_at.codec)}`; } }); }, @@ -18746,15 +18746,15 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; postId($record) { return $record.get("post_id"); }, + userId($record) { + return $record.get("user_id"); + }, createdAt($record) { return $record.get("created_at"); }, updatedAt($record) { return $record.get("updated_at"); }, - userId($record) { - return $record.get("user_id"); - }, post($record) { return pgResource_postPgResource.get({ id: $record.get("post_id") @@ -18762,7 +18762,7 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }, user($record) { return pgResource_userPgResource.get({ - hidra_id: $record.get("user_id") + id: $record.get("user_id") }); } }, @@ -18796,6 +18796,11 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; sqlAggregate = aggregateSpec.sqlAggregateWrap(sqlAttribute, TYPES.uuid); return $pgSelectSingle.select(sqlAggregate, TYPES.bigint); }, + userId($pgSelectSingle) { + const sqlAttribute = sql.fragment`${$pgSelectSingle.getClassStep().alias}.${sql.identifier("user_id")}`, + sqlAggregate = aggregateSpec.sqlAggregateWrap(sqlAttribute, TYPES.uuid); + return $pgSelectSingle.select(sqlAggregate, TYPES.bigint); + }, createdAt($pgSelectSingle) { const sqlAttribute = sql.fragment`${$pgSelectSingle.getClassStep().alias}.${sql.identifier("created_at")}`, sqlAggregate = aggregateSpec.sqlAggregateWrap(sqlAttribute, TYPES.timestamptz); @@ -18805,36 +18810,31 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; const sqlAttribute = sql.fragment`${$pgSelectSingle.getClassStep().alias}.${sql.identifier("updated_at")}`, sqlAggregate = aggregateSpec.sqlAggregateWrap(sqlAttribute, TYPES.timestamptz); return $pgSelectSingle.select(sqlAggregate, TYPES.bigint); - }, - userId($pgSelectSingle) { - const sqlAttribute = sql.fragment`${$pgSelectSingle.getClassStep().alias}.${sql.identifier("user_id")}`, - sqlAggregate = aggregateSpec.sqlAggregateWrap(sqlAttribute, TYPES.uuid); - return $pgSelectSingle.select(sqlAggregate, TYPES.bigint); } }, DownvoteGroupBy: { POST_ID: { applyPlan: DownvoteGroupBy_extensions_grafast_applyPlan }, - CREATED_AT: { + USER_ID: { applyPlan: DownvoteGroupBy_extensions_grafast_applyPlan2 }, - CREATED_AT_TRUNCATED_TO_HOUR: { + CREATED_AT: { applyPlan: DownvoteGroupBy_extensions_grafast_applyPlan3 }, - CREATED_AT_TRUNCATED_TO_DAY: { + CREATED_AT_TRUNCATED_TO_HOUR: { applyPlan: DownvoteGroupBy_extensions_grafast_applyPlan4 }, - UPDATED_AT: { + CREATED_AT_TRUNCATED_TO_DAY: { applyPlan: DownvoteGroupBy_extensions_grafast_applyPlan5 }, - UPDATED_AT_TRUNCATED_TO_HOUR: { + UPDATED_AT: { applyPlan: DownvoteGroupBy_extensions_grafast_applyPlan6 }, - UPDATED_AT_TRUNCATED_TO_DAY: { + UPDATED_AT_TRUNCATED_TO_HOUR: { applyPlan: DownvoteGroupBy_extensions_grafast_applyPlan7 }, - USER_ID: { + UPDATED_AT_TRUNCATED_TO_DAY: { applyPlan: DownvoteGroupBy_extensions_grafast_applyPlan8 } }, @@ -19130,11 +19130,11 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; if (true) plan.setOrderIsUnique(); } }, - CREATED_AT_ASC: { + USER_ID_ASC: { applyPlan(plan) { if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); plan.orderBy({ - attribute: "created_at", + attribute: "user_id", direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" @@ -19143,11 +19143,11 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; if (false) plan.setOrderIsUnique(); } }, - CREATED_AT_DESC: { + USER_ID_DESC: { applyPlan(plan) { if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); plan.orderBy({ - attribute: "created_at", + attribute: "user_id", direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" @@ -19156,11 +19156,11 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; if (false) plan.setOrderIsUnique(); } }, - UPDATED_AT_ASC: { + CREATED_AT_ASC: { applyPlan(plan) { if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); plan.orderBy({ - attribute: "updated_at", + attribute: "created_at", direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" @@ -19169,11 +19169,11 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; if (false) plan.setOrderIsUnique(); } }, - UPDATED_AT_DESC: { + CREATED_AT_DESC: { applyPlan(plan) { if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); plan.orderBy({ - attribute: "updated_at", + attribute: "created_at", direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" @@ -19182,11 +19182,11 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; if (false) plan.setOrderIsUnique(); } }, - USER_ID_ASC: { + UPDATED_AT_ASC: { applyPlan(plan) { if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); plan.orderBy({ - attribute: "user_id", + attribute: "updated_at", direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" @@ -19195,11 +19195,11 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; if (false) plan.setOrderIsUnique(); } }, - USER_ID_DESC: { + UPDATED_AT_DESC: { applyPlan(plan) { if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); plan.orderBy({ - attribute: "user_id", + attribute: "updated_at", direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" @@ -19248,57 +19248,57 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - createdAt: { + userId: { applyPlan($condition, val) { if (val.getRaw().evalIs(null)) $condition.where({ type: "attribute", - attribute: "created_at", + attribute: "user_id", callback(expression) { return sql`${expression} is null`; } });else $condition.where({ type: "attribute", - attribute: "created_at", + attribute: "user_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_downvote.attributes.created_at.codec)}`; + return sql`${expression} = ${$condition.placeholder(val.get(), spec_downvote.attributes.user_id.codec)}`; } }); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - updatedAt: { + createdAt: { applyPlan($condition, val) { if (val.getRaw().evalIs(null)) $condition.where({ type: "attribute", - attribute: "updated_at", + attribute: "created_at", callback(expression) { return sql`${expression} is null`; } });else $condition.where({ type: "attribute", - attribute: "updated_at", + attribute: "created_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_downvote.attributes.updated_at.codec)}`; + return sql`${expression} = ${$condition.placeholder(val.get(), spec_downvote.attributes.created_at.codec)}`; } }); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - userId: { + updatedAt: { applyPlan($condition, val) { if (val.getRaw().evalIs(null)) $condition.where({ type: "attribute", - attribute: "user_id", + attribute: "updated_at", callback(expression) { return sql`${expression} is null`; } });else $condition.where({ type: "attribute", - attribute: "user_id", + attribute: "updated_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_downvote.attributes.user_id.codec)}`; + return sql`${expression} = ${$condition.placeholder(val.get(), spec_downvote.attributes.updated_at.codec)}`; } }); }, @@ -19346,6 +19346,11 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; sqlAggregate = aggregateSpec.sqlAggregateWrap(sqlAttribute, TYPES.uuid); return $pgSelectSingle.select(sqlAggregate, TYPES.bigint); }, + userId($pgSelectSingle) { + const sqlAttribute = sql.fragment`${$pgSelectSingle.getClassStep().alias}.${sql.identifier("user_id")}`, + sqlAggregate = aggregateSpec.sqlAggregateWrap(sqlAttribute, TYPES.uuid); + return $pgSelectSingle.select(sqlAggregate, TYPES.bigint); + }, createdAt($pgSelectSingle) { const sqlAttribute = sql.fragment`${$pgSelectSingle.getClassStep().alias}.${sql.identifier("created_at")}`, sqlAggregate = aggregateSpec.sqlAggregateWrap(sqlAttribute, TYPES.timestamptz); @@ -19355,11 +19360,6 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; const sqlAttribute = sql.fragment`${$pgSelectSingle.getClassStep().alias}.${sql.identifier("updated_at")}`, sqlAggregate = aggregateSpec.sqlAggregateWrap(sqlAttribute, TYPES.timestamptz); return $pgSelectSingle.select(sqlAggregate, TYPES.bigint); - }, - userId($pgSelectSingle) { - const sqlAttribute = sql.fragment`${$pgSelectSingle.getClassStep().alias}.${sql.identifier("user_id")}`, - sqlAggregate = aggregateSpec.sqlAggregateWrap(sqlAttribute, TYPES.uuid); - return $pgSelectSingle.select(sqlAggregate, TYPES.bigint); } }, PostGroupBy: { @@ -19372,25 +19372,25 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; PROJECT_ID: { applyPlan: PostGroupBy_extensions_grafast_applyPlan3 }, - CREATED_AT: { + USER_ID: { applyPlan: PostGroupBy_extensions_grafast_applyPlan4 }, - CREATED_AT_TRUNCATED_TO_HOUR: { + CREATED_AT: { applyPlan: PostGroupBy_extensions_grafast_applyPlan5 }, - CREATED_AT_TRUNCATED_TO_DAY: { + CREATED_AT_TRUNCATED_TO_HOUR: { applyPlan: PostGroupBy_extensions_grafast_applyPlan6 }, - UPDATED_AT: { + CREATED_AT_TRUNCATED_TO_DAY: { applyPlan: PostGroupBy_extensions_grafast_applyPlan7 }, - UPDATED_AT_TRUNCATED_TO_HOUR: { + UPDATED_AT: { applyPlan: PostGroupBy_extensions_grafast_applyPlan8 }, - UPDATED_AT_TRUNCATED_TO_DAY: { + UPDATED_AT_TRUNCATED_TO_HOUR: { applyPlan: PostGroupBy_extensions_grafast_applyPlan9 }, - USER_ID: { + UPDATED_AT_TRUNCATED_TO_DAY: { applyPlan: PostGroupBy_extensions_grafast_applyPlan10 } }, @@ -20355,7 +20355,7 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); } }, - POSTS_DISTINCT_COUNT_CREATED_AT_ASC: { + POSTS_DISTINCT_COUNT_USER_ID_ASC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -20367,17 +20367,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_postPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_post.attributes.created_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_post.attributes.user_id.codec)} from ${pgResource_postPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_post.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_post.attributes.created_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_post.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_post.attributes.user_id.codec, direction: "ASC" }); } }, - POSTS_DISTINCT_COUNT_CREATED_AT_DESC: { + POSTS_DISTINCT_COUNT_USER_ID_DESC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -20389,17 +20389,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_postPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_post.attributes.created_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_post.attributes.user_id.codec)} from ${pgResource_postPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_post.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_post.attributes.created_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_post.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_post.attributes.user_id.codec, direction: "DESC" }); } }, - POSTS_DISTINCT_COUNT_UPDATED_AT_ASC: { + POSTS_DISTINCT_COUNT_CREATED_AT_ASC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -20411,17 +20411,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_postPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("updated_at")}`, spec_post.attributes.updated_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_post.attributes.created_at.codec)} from ${pgResource_postPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_post.attributes.updated_at.codec)) !== null && _b !== void 0 ? _b : spec_post.attributes.updated_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_post.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_post.attributes.created_at.codec, direction: "ASC" }); } }, - POSTS_DISTINCT_COUNT_UPDATED_AT_DESC: { + POSTS_DISTINCT_COUNT_CREATED_AT_DESC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -20433,17 +20433,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_postPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("updated_at")}`, spec_post.attributes.updated_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_post.attributes.created_at.codec)} from ${pgResource_postPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_post.attributes.updated_at.codec)) !== null && _b !== void 0 ? _b : spec_post.attributes.updated_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_post.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_post.attributes.created_at.codec, direction: "DESC" }); } }, - POSTS_DISTINCT_COUNT_USER_ID_ASC: { + POSTS_DISTINCT_COUNT_UPDATED_AT_ASC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -20455,17 +20455,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_postPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_post.attributes.user_id.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("updated_at")}`, spec_post.attributes.updated_at.codec)} from ${pgResource_postPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_post.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_post.attributes.user_id.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_post.attributes.updated_at.codec)) !== null && _b !== void 0 ? _b : spec_post.attributes.updated_at.codec, direction: "ASC" }); } }, - POSTS_DISTINCT_COUNT_USER_ID_DESC: { + POSTS_DISTINCT_COUNT_UPDATED_AT_DESC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -20477,12 +20477,12 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_postPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_post.attributes.user_id.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("updated_at")}`, spec_post.attributes.updated_at.codec)} from ${pgResource_postPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_post.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_post.attributes.user_id.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_post.attributes.updated_at.codec)) !== null && _b !== void 0 ? _b : spec_post.attributes.updated_at.codec, direction: "DESC" }); } @@ -21555,7 +21555,7 @@ where ${sql.parens(sql.join(conditions.map(c => sql.parens(c)), " AND "))}`})`; }); } }, - USER_ORGANIZATIONS_DISTINCT_COUNT_ORGANIZATION_ID_ASC: { + USER_ORGANIZATIONS_DISTINCT_COUNT_USER_ID_ASC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -21567,17 +21567,17 @@ where ${sql.parens(sql.join(conditions.map(c => sql.parens(c)), " AND "))}`})`; }); if (typeof resource_user_organizationPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("organization_id")}`, spec_userOrganization.attributes.organization_id.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_userOrganization.attributes.user_id.codec)} from ${resource_user_organizationPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_userOrganization.attributes.organization_id.codec)) !== null && _b !== void 0 ? _b : spec_userOrganization.attributes.organization_id.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_userOrganization.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_userOrganization.attributes.user_id.codec, direction: "ASC" }); } }, - USER_ORGANIZATIONS_DISTINCT_COUNT_ORGANIZATION_ID_DESC: { + USER_ORGANIZATIONS_DISTINCT_COUNT_USER_ID_DESC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -21589,17 +21589,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof resource_user_organizationPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("organization_id")}`, spec_userOrganization.attributes.organization_id.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_userOrganization.attributes.user_id.codec)} from ${resource_user_organizationPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_userOrganization.attributes.organization_id.codec)) !== null && _b !== void 0 ? _b : spec_userOrganization.attributes.organization_id.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_userOrganization.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_userOrganization.attributes.user_id.codec, direction: "DESC" }); } }, - USER_ORGANIZATIONS_DISTINCT_COUNT_CREATED_AT_ASC: { + USER_ORGANIZATIONS_DISTINCT_COUNT_ORGANIZATION_ID_ASC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -21611,17 +21611,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof resource_user_organizationPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_userOrganization.attributes.created_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("organization_id")}`, spec_userOrganization.attributes.organization_id.codec)} from ${resource_user_organizationPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_userOrganization.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_userOrganization.attributes.created_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_userOrganization.attributes.organization_id.codec)) !== null && _b !== void 0 ? _b : spec_userOrganization.attributes.organization_id.codec, direction: "ASC" }); } }, - USER_ORGANIZATIONS_DISTINCT_COUNT_CREATED_AT_DESC: { + USER_ORGANIZATIONS_DISTINCT_COUNT_ORGANIZATION_ID_DESC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -21633,17 +21633,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof resource_user_organizationPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_userOrganization.attributes.created_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("organization_id")}`, spec_userOrganization.attributes.organization_id.codec)} from ${resource_user_organizationPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_userOrganization.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_userOrganization.attributes.created_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_userOrganization.attributes.organization_id.codec)) !== null && _b !== void 0 ? _b : spec_userOrganization.attributes.organization_id.codec, direction: "DESC" }); } }, - USER_ORGANIZATIONS_DISTINCT_COUNT_USER_ID_ASC: { + USER_ORGANIZATIONS_DISTINCT_COUNT_CREATED_AT_ASC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -21655,17 +21655,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof resource_user_organizationPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_userOrganization.attributes.user_id.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_userOrganization.attributes.created_at.codec)} from ${resource_user_organizationPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_userOrganization.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_userOrganization.attributes.user_id.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_userOrganization.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_userOrganization.attributes.created_at.codec, direction: "ASC" }); } }, - USER_ORGANIZATIONS_DISTINCT_COUNT_USER_ID_DESC: { + USER_ORGANIZATIONS_DISTINCT_COUNT_CREATED_AT_DESC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -21677,12 +21677,12 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof resource_user_organizationPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_userOrganization.attributes.user_id.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_userOrganization.attributes.created_at.codec)} from ${resource_user_organizationPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_userOrganization.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_userOrganization.attributes.user_id.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_userOrganization.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_userOrganization.attributes.created_at.codec, direction: "DESC" }); } @@ -22550,7 +22550,7 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); } }, - POSTS_DISTINCT_COUNT_CREATED_AT_ASC: { + POSTS_DISTINCT_COUNT_USER_ID_ASC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -22562,17 +22562,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_postPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_post.attributes.created_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_post.attributes.user_id.codec)} from ${pgResource_postPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_post.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_post.attributes.created_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_post.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_post.attributes.user_id.codec, direction: "ASC" }); } }, - POSTS_DISTINCT_COUNT_CREATED_AT_DESC: { + POSTS_DISTINCT_COUNT_USER_ID_DESC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -22584,17 +22584,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_postPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_post.attributes.created_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_post.attributes.user_id.codec)} from ${pgResource_postPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_post.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_post.attributes.created_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_post.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_post.attributes.user_id.codec, direction: "DESC" }); } }, - POSTS_DISTINCT_COUNT_UPDATED_AT_ASC: { + POSTS_DISTINCT_COUNT_CREATED_AT_ASC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -22606,17 +22606,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_postPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("updated_at")}`, spec_post.attributes.updated_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_post.attributes.created_at.codec)} from ${pgResource_postPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_post.attributes.updated_at.codec)) !== null && _b !== void 0 ? _b : spec_post.attributes.updated_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_post.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_post.attributes.created_at.codec, direction: "ASC" }); } }, - POSTS_DISTINCT_COUNT_UPDATED_AT_DESC: { + POSTS_DISTINCT_COUNT_CREATED_AT_DESC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -22628,17 +22628,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_postPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("updated_at")}`, spec_post.attributes.updated_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_post.attributes.created_at.codec)} from ${pgResource_postPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_post.attributes.updated_at.codec)) !== null && _b !== void 0 ? _b : spec_post.attributes.updated_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_post.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_post.attributes.created_at.codec, direction: "DESC" }); } }, - POSTS_DISTINCT_COUNT_USER_ID_ASC: { + POSTS_DISTINCT_COUNT_UPDATED_AT_ASC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -22650,17 +22650,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_postPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_post.attributes.user_id.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("updated_at")}`, spec_post.attributes.updated_at.codec)} from ${pgResource_postPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_post.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_post.attributes.user_id.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_post.attributes.updated_at.codec)) !== null && _b !== void 0 ? _b : spec_post.attributes.updated_at.codec, direction: "ASC" }); } }, - POSTS_DISTINCT_COUNT_USER_ID_DESC: { + POSTS_DISTINCT_COUNT_UPDATED_AT_DESC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -22672,12 +22672,12 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_postPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_post.attributes.user_id.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("updated_at")}`, spec_post.attributes.updated_at.codec)} from ${pgResource_postPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_post.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_post.attributes.user_id.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_post.attributes.updated_at.codec)) !== null && _b !== void 0 ? _b : spec_post.attributes.updated_at.codec, direction: "DESC" }); } @@ -22810,7 +22810,7 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); } }, - UPVOTES_DISTINCT_COUNT_CREATED_AT_ASC: { + UPVOTES_DISTINCT_COUNT_USER_ID_ASC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -22822,17 +22822,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_upvotePgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_upvote.attributes.created_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_upvote.attributes.user_id.codec)} from ${pgResource_upvotePgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_upvote.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_upvote.attributes.created_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_upvote.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_upvote.attributes.user_id.codec, direction: "ASC" }); } }, - UPVOTES_DISTINCT_COUNT_CREATED_AT_DESC: { + UPVOTES_DISTINCT_COUNT_USER_ID_DESC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -22844,17 +22844,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_upvotePgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_upvote.attributes.created_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_upvote.attributes.user_id.codec)} from ${pgResource_upvotePgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_upvote.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_upvote.attributes.created_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_upvote.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_upvote.attributes.user_id.codec, direction: "DESC" }); } }, - UPVOTES_DISTINCT_COUNT_UPDATED_AT_ASC: { + UPVOTES_DISTINCT_COUNT_CREATED_AT_ASC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -22866,17 +22866,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_upvotePgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("updated_at")}`, spec_upvote.attributes.updated_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_upvote.attributes.created_at.codec)} from ${pgResource_upvotePgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_upvote.attributes.updated_at.codec)) !== null && _b !== void 0 ? _b : spec_upvote.attributes.updated_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_upvote.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_upvote.attributes.created_at.codec, direction: "ASC" }); } }, - UPVOTES_DISTINCT_COUNT_UPDATED_AT_DESC: { + UPVOTES_DISTINCT_COUNT_CREATED_AT_DESC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -22888,17 +22888,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_upvotePgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("updated_at")}`, spec_upvote.attributes.updated_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_upvote.attributes.created_at.codec)} from ${pgResource_upvotePgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_upvote.attributes.updated_at.codec)) !== null && _b !== void 0 ? _b : spec_upvote.attributes.updated_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_upvote.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_upvote.attributes.created_at.codec, direction: "DESC" }); } }, - UPVOTES_DISTINCT_COUNT_USER_ID_ASC: { + UPVOTES_DISTINCT_COUNT_UPDATED_AT_ASC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -22910,17 +22910,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_upvotePgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_upvote.attributes.user_id.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("updated_at")}`, spec_upvote.attributes.updated_at.codec)} from ${pgResource_upvotePgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_upvote.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_upvote.attributes.user_id.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_upvote.attributes.updated_at.codec)) !== null && _b !== void 0 ? _b : spec_upvote.attributes.updated_at.codec, direction: "ASC" }); } }, - UPVOTES_DISTINCT_COUNT_USER_ID_DESC: { + UPVOTES_DISTINCT_COUNT_UPDATED_AT_DESC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -22932,12 +22932,12 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_upvotePgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_upvote.attributes.user_id.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("updated_at")}`, spec_upvote.attributes.updated_at.codec)} from ${pgResource_upvotePgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_upvote.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_upvote.attributes.user_id.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_upvote.attributes.updated_at.codec)) !== null && _b !== void 0 ? _b : spec_upvote.attributes.updated_at.codec, direction: "DESC" }); } @@ -22982,7 +22982,7 @@ where ${sql.parens(sql.join(conditions.map(c => sql.parens(c)), " AND "))}`})`; }); } }, - USER_ORGANIZATIONS_DISTINCT_COUNT_ORGANIZATION_ID_ASC: { + USER_ORGANIZATIONS_DISTINCT_COUNT_USER_ID_ASC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -22994,17 +22994,17 @@ where ${sql.parens(sql.join(conditions.map(c => sql.parens(c)), " AND "))}`})`; }); if (typeof resource_user_organizationPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("organization_id")}`, spec_userOrganization.attributes.organization_id.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_userOrganization.attributes.user_id.codec)} from ${resource_user_organizationPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_userOrganization.attributes.organization_id.codec)) !== null && _b !== void 0 ? _b : spec_userOrganization.attributes.organization_id.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_userOrganization.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_userOrganization.attributes.user_id.codec, direction: "ASC" }); } }, - USER_ORGANIZATIONS_DISTINCT_COUNT_ORGANIZATION_ID_DESC: { + USER_ORGANIZATIONS_DISTINCT_COUNT_USER_ID_DESC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -23016,17 +23016,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof resource_user_organizationPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("organization_id")}`, spec_userOrganization.attributes.organization_id.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_userOrganization.attributes.user_id.codec)} from ${resource_user_organizationPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_userOrganization.attributes.organization_id.codec)) !== null && _b !== void 0 ? _b : spec_userOrganization.attributes.organization_id.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_userOrganization.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_userOrganization.attributes.user_id.codec, direction: "DESC" }); } }, - USER_ORGANIZATIONS_DISTINCT_COUNT_CREATED_AT_ASC: { + USER_ORGANIZATIONS_DISTINCT_COUNT_ORGANIZATION_ID_ASC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -23038,17 +23038,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof resource_user_organizationPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_userOrganization.attributes.created_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("organization_id")}`, spec_userOrganization.attributes.organization_id.codec)} from ${resource_user_organizationPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_userOrganization.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_userOrganization.attributes.created_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_userOrganization.attributes.organization_id.codec)) !== null && _b !== void 0 ? _b : spec_userOrganization.attributes.organization_id.codec, direction: "ASC" }); } }, - USER_ORGANIZATIONS_DISTINCT_COUNT_CREATED_AT_DESC: { + USER_ORGANIZATIONS_DISTINCT_COUNT_ORGANIZATION_ID_DESC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -23060,17 +23060,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof resource_user_organizationPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_userOrganization.attributes.created_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("organization_id")}`, spec_userOrganization.attributes.organization_id.codec)} from ${resource_user_organizationPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_userOrganization.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_userOrganization.attributes.created_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_userOrganization.attributes.organization_id.codec)) !== null && _b !== void 0 ? _b : spec_userOrganization.attributes.organization_id.codec, direction: "DESC" }); } }, - USER_ORGANIZATIONS_DISTINCT_COUNT_USER_ID_ASC: { + USER_ORGANIZATIONS_DISTINCT_COUNT_CREATED_AT_ASC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -23082,17 +23082,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof resource_user_organizationPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_userOrganization.attributes.user_id.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_userOrganization.attributes.created_at.codec)} from ${resource_user_organizationPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_userOrganization.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_userOrganization.attributes.user_id.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_userOrganization.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_userOrganization.attributes.created_at.codec, direction: "ASC" }); } }, - USER_ORGANIZATIONS_DISTINCT_COUNT_USER_ID_DESC: { + USER_ORGANIZATIONS_DISTINCT_COUNT_CREATED_AT_DESC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -23104,12 +23104,12 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof resource_user_organizationPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_userOrganization.attributes.user_id.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_userOrganization.attributes.created_at.codec)} from ${resource_user_organizationPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_userOrganization.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_userOrganization.attributes.user_id.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_userOrganization.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_userOrganization.attributes.created_at.codec, direction: "DESC" }); } @@ -23286,7 +23286,7 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); } }, - COMMENTS_DISTINCT_COUNT_CREATED_AT_ASC: { + COMMENTS_DISTINCT_COUNT_USER_ID_ASC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -23298,17 +23298,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_commentPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_comment.attributes.created_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_comment.attributes.user_id.codec)} from ${pgResource_commentPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_comment.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_comment.attributes.created_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_comment.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_comment.attributes.user_id.codec, direction: "ASC" }); } }, - COMMENTS_DISTINCT_COUNT_CREATED_AT_DESC: { + COMMENTS_DISTINCT_COUNT_USER_ID_DESC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -23320,17 +23320,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_commentPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_comment.attributes.created_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_comment.attributes.user_id.codec)} from ${pgResource_commentPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_comment.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_comment.attributes.created_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_comment.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_comment.attributes.user_id.codec, direction: "DESC" }); } }, - COMMENTS_DISTINCT_COUNT_UPDATED_AT_ASC: { + COMMENTS_DISTINCT_COUNT_CREATED_AT_ASC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -23342,17 +23342,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_commentPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("updated_at")}`, spec_comment.attributes.updated_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_comment.attributes.created_at.codec)} from ${pgResource_commentPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_comment.attributes.updated_at.codec)) !== null && _b !== void 0 ? _b : spec_comment.attributes.updated_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_comment.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_comment.attributes.created_at.codec, direction: "ASC" }); } }, - COMMENTS_DISTINCT_COUNT_UPDATED_AT_DESC: { + COMMENTS_DISTINCT_COUNT_CREATED_AT_DESC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -23364,17 +23364,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_commentPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("updated_at")}`, spec_comment.attributes.updated_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_comment.attributes.created_at.codec)} from ${pgResource_commentPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_comment.attributes.updated_at.codec)) !== null && _b !== void 0 ? _b : spec_comment.attributes.updated_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_comment.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_comment.attributes.created_at.codec, direction: "DESC" }); } }, - COMMENTS_DISTINCT_COUNT_USER_ID_ASC: { + COMMENTS_DISTINCT_COUNT_UPDATED_AT_ASC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -23386,17 +23386,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_commentPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_comment.attributes.user_id.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("updated_at")}`, spec_comment.attributes.updated_at.codec)} from ${pgResource_commentPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_comment.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_comment.attributes.user_id.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_comment.attributes.updated_at.codec)) !== null && _b !== void 0 ? _b : spec_comment.attributes.updated_at.codec, direction: "ASC" }); } }, - COMMENTS_DISTINCT_COUNT_USER_ID_DESC: { + COMMENTS_DISTINCT_COUNT_UPDATED_AT_DESC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -23408,12 +23408,12 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_commentPgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_comment.attributes.user_id.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("updated_at")}`, spec_comment.attributes.updated_at.codec)} from ${pgResource_commentPgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_comment.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_comment.attributes.user_id.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_comment.attributes.updated_at.codec)) !== null && _b !== void 0 ? _b : spec_comment.attributes.updated_at.codec, direction: "DESC" }); } @@ -23546,7 +23546,7 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); } }, - DOWNVOTES_DISTINCT_COUNT_CREATED_AT_ASC: { + DOWNVOTES_DISTINCT_COUNT_USER_ID_ASC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -23558,17 +23558,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_downvotePgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_downvote.attributes.created_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_downvote.attributes.user_id.codec)} from ${pgResource_downvotePgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_downvote.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_downvote.attributes.created_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_downvote.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_downvote.attributes.user_id.codec, direction: "ASC" }); } }, - DOWNVOTES_DISTINCT_COUNT_CREATED_AT_DESC: { + DOWNVOTES_DISTINCT_COUNT_USER_ID_DESC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -23580,17 +23580,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_downvotePgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_downvote.attributes.created_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_downvote.attributes.user_id.codec)} from ${pgResource_downvotePgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_downvote.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_downvote.attributes.created_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_downvote.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_downvote.attributes.user_id.codec, direction: "DESC" }); } }, - DOWNVOTES_DISTINCT_COUNT_UPDATED_AT_ASC: { + DOWNVOTES_DISTINCT_COUNT_CREATED_AT_ASC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -23602,17 +23602,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_downvotePgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("updated_at")}`, spec_downvote.attributes.updated_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_downvote.attributes.created_at.codec)} from ${pgResource_downvotePgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_downvote.attributes.updated_at.codec)) !== null && _b !== void 0 ? _b : spec_downvote.attributes.updated_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_downvote.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_downvote.attributes.created_at.codec, direction: "ASC" }); } }, - DOWNVOTES_DISTINCT_COUNT_UPDATED_AT_DESC: { + DOWNVOTES_DISTINCT_COUNT_CREATED_AT_DESC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -23624,17 +23624,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_downvotePgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("updated_at")}`, spec_downvote.attributes.updated_at.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("created_at")}`, spec_downvote.attributes.created_at.codec)} from ${pgResource_downvotePgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_downvote.attributes.updated_at.codec)) !== null && _b !== void 0 ? _b : spec_downvote.attributes.updated_at.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_downvote.attributes.created_at.codec)) !== null && _b !== void 0 ? _b : spec_downvote.attributes.created_at.codec, direction: "DESC" }); } }, - DOWNVOTES_DISTINCT_COUNT_USER_ID_ASC: { + DOWNVOTES_DISTINCT_COUNT_UPDATED_AT_ASC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -23646,17 +23646,17 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_downvotePgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_downvote.attributes.user_id.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("updated_at")}`, spec_downvote.attributes.updated_at.codec)} from ${pgResource_downvotePgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_downvote.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_downvote.attributes.user_id.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_downvote.attributes.updated_at.codec)) !== null && _b !== void 0 ? _b : spec_downvote.attributes.updated_at.codec, direction: "ASC" }); } }, - DOWNVOTES_DISTINCT_COUNT_USER_ID_DESC: { + DOWNVOTES_DISTINCT_COUNT_UPDATED_AT_DESC: { applyPlan($select) { var _a, _b; const foreignTableAlias = $select.alias, @@ -23668,12 +23668,12 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; }); if (typeof pgResource_downvotePgResource.from === "function") throw new Error("Function source unsupported"); const fragment = sql`(${sql.indent` -select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("user_id")}`, spec_downvote.attributes.user_id.codec)} +select ${aggregateSpec.sqlAggregateWrap(sql.fragment`${tableAlias}.${sql.identifier("updated_at")}`, spec_downvote.attributes.updated_at.codec)} from ${pgResource_downvotePgResource.from} ${tableAlias} where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; $select.orderBy({ fragment, - codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_downvote.attributes.user_id.codec)) !== null && _b !== void 0 ? _b : spec_downvote.attributes.user_id.codec, + codec: (_b = (_a = aggregateSpec.pgTypeCodecModifier) === null || _a === void 0 ? void 0 : _a.call(aggregateSpec, spec_downvote.attributes.updated_at.codec)) !== null && _b !== void 0 ? _b : spec_downvote.attributes.updated_at.codec, direction: "DESC" }); } @@ -24791,23 +24791,23 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; "__inputPlan": function UserOrganizationInput_inputPlan() { return object(Object.create(null)); }, - organizationId: { + userId: { applyPlan($insert, val) { - $insert.set("organization_id", val.get()); + $insert.set("user_id", val.get()); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - createdAt: { + organizationId: { applyPlan($insert, val) { - $insert.set("created_at", val.get()); + $insert.set("organization_id", val.get()); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - userId: { + createdAt: { applyPlan($insert, val) { - $insert.set("user_id", val.get()); + $insert.set("created_at", val.get()); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true @@ -24880,23 +24880,23 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - createdAt: { + userId: { applyPlan($insert, val) { - $insert.set("created_at", val.get()); + $insert.set("user_id", val.get()); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - updatedAt: { + createdAt: { applyPlan($insert, val) { - $insert.set("updated_at", val.get()); + $insert.set("created_at", val.get()); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - userId: { + updatedAt: { applyPlan($insert, val) { - $insert.set("user_id", val.get()); + $insert.set("updated_at", val.get()); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true @@ -24969,23 +24969,23 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - createdAt: { + userId: { applyPlan($insert, val) { - $insert.set("created_at", val.get()); + $insert.set("user_id", val.get()); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - updatedAt: { + createdAt: { applyPlan($insert, val) { - $insert.set("updated_at", val.get()); + $insert.set("created_at", val.get()); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - userId: { + updatedAt: { applyPlan($insert, val) { - $insert.set("user_id", val.get()); + $insert.set("updated_at", val.get()); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true @@ -25154,23 +25154,23 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - createdAt: { + userId: { applyPlan($insert, val) { - $insert.set("created_at", val.get()); + $insert.set("user_id", val.get()); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - updatedAt: { + createdAt: { applyPlan($insert, val) { - $insert.set("updated_at", val.get()); + $insert.set("created_at", val.get()); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - userId: { + updatedAt: { applyPlan($insert, val) { - $insert.set("user_id", val.get()); + $insert.set("updated_at", val.get()); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true @@ -25257,23 +25257,23 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - createdAt: { + userId: { applyPlan($insert, val) { - $insert.set("created_at", val.get()); + $insert.set("user_id", val.get()); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - updatedAt: { + createdAt: { applyPlan($insert, val) { - $insert.set("updated_at", val.get()); + $insert.set("created_at", val.get()); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - userId: { + updatedAt: { applyPlan($insert, val) { - $insert.set("user_id", val.get()); + $insert.set("updated_at", val.get()); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true @@ -25522,23 +25522,23 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; "__inputPlan": function UserOrganizationPatch_inputPlan() { return object(Object.create(null)); }, - organizationId: { + userId: { applyPlan($insert, val) { - $insert.set("organization_id", val.get()); + $insert.set("user_id", val.get()); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - createdAt: { + organizationId: { applyPlan($insert, val) { - $insert.set("created_at", val.get()); + $insert.set("organization_id", val.get()); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - userId: { + createdAt: { applyPlan($insert, val) { - $insert.set("user_id", val.get()); + $insert.set("created_at", val.get()); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true @@ -25610,23 +25610,23 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - createdAt: { + userId: { applyPlan($insert, val) { - $insert.set("created_at", val.get()); + $insert.set("user_id", val.get()); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - updatedAt: { + createdAt: { applyPlan($insert, val) { - $insert.set("updated_at", val.get()); + $insert.set("created_at", val.get()); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - userId: { + updatedAt: { applyPlan($insert, val) { - $insert.set("user_id", val.get()); + $insert.set("updated_at", val.get()); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true @@ -25725,23 +25725,23 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - createdAt: { + userId: { applyPlan($insert, val) { - $insert.set("created_at", val.get()); + $insert.set("user_id", val.get()); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - updatedAt: { + createdAt: { applyPlan($insert, val) { - $insert.set("updated_at", val.get()); + $insert.set("created_at", val.get()); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - userId: { + updatedAt: { applyPlan($insert, val) { - $insert.set("user_id", val.get()); + $insert.set("updated_at", val.get()); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true @@ -25974,23 +25974,23 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - createdAt: { + userId: { applyPlan($insert, val) { - $insert.set("created_at", val.get()); + $insert.set("user_id", val.get()); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - updatedAt: { + createdAt: { applyPlan($insert, val) { - $insert.set("updated_at", val.get()); + $insert.set("created_at", val.get()); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - userId: { + updatedAt: { applyPlan($insert, val) { - $insert.set("user_id", val.get()); + $insert.set("updated_at", val.get()); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true @@ -26089,23 +26089,23 @@ where ${sql.join(conditions.map(c => sql.parens(c)), " AND ")}`})`; autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - createdAt: { + userId: { applyPlan($insert, val) { - $insert.set("created_at", val.get()); + $insert.set("user_id", val.get()); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - updatedAt: { + createdAt: { applyPlan($insert, val) { - $insert.set("updated_at", val.get()); + $insert.set("created_at", val.get()); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true }, - userId: { + updatedAt: { applyPlan($insert, val) { - $insert.set("user_id", val.get()); + $insert.set("updated_at", val.get()); }, autoApplyAfterParentInputPlan: true, autoApplyAfterParentApplyPlan: true diff --git a/src/lib/drizzle/migrations/0005_nice_talkback.sql b/src/lib/drizzle/migrations/0005_nice_talkback.sql deleted file mode 100644 index d680a19..0000000 --- a/src/lib/drizzle/migrations/0005_nice_talkback.sql +++ /dev/null @@ -1,31 +0,0 @@ -ALTER TABLE "downvote" DROP CONSTRAINT "downvote_postId_userId_unique";--> statement-breakpoint -ALTER TABLE "upvote" DROP CONSTRAINT "upvote_postId_userId_unique";--> statement-breakpoint -ALTER TABLE "user_organization" DROP CONSTRAINT "user_organization_userId_organizationId_unique";--> statement-breakpoint -ALTER TABLE "comment" DROP CONSTRAINT "comment_user_id_user_id_fk"; ---> statement-breakpoint -ALTER TABLE "downvote" DROP CONSTRAINT "downvote_user_id_user_id_fk"; ---> statement-breakpoint -ALTER TABLE "post" DROP CONSTRAINT "post_user_id_user_id_fk"; ---> statement-breakpoint -ALTER TABLE "upvote" DROP CONSTRAINT "upvote_user_id_user_id_fk"; ---> statement-breakpoint -ALTER TABLE "user_organization" DROP CONSTRAINT "user_organization_user_id_user_id_fk"; ---> statement-breakpoint -ALTER TABLE "comment" ADD COLUMN "user_hidra_id" uuid NOT NULL;--> statement-breakpoint -ALTER TABLE "downvote" ADD COLUMN "user_hidra_id" uuid NOT NULL;--> statement-breakpoint -ALTER TABLE "post" ADD COLUMN "user_hidra_id" uuid NOT NULL;--> statement-breakpoint -ALTER TABLE "upvote" ADD COLUMN "user_hidra_id" uuid NOT NULL;--> statement-breakpoint -ALTER TABLE "user_organization" ADD COLUMN "user_hidra_id" uuid NOT NULL;--> statement-breakpoint -ALTER TABLE "comment" ADD CONSTRAINT "comment_user_hidra_id_user_hidra_id_fk" FOREIGN KEY ("user_hidra_id") REFERENCES "public"."user"("hidra_id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint -ALTER TABLE "downvote" ADD CONSTRAINT "downvote_user_hidra_id_user_hidra_id_fk" FOREIGN KEY ("user_hidra_id") REFERENCES "public"."user"("hidra_id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint -ALTER TABLE "post" ADD CONSTRAINT "post_user_hidra_id_user_hidra_id_fk" FOREIGN KEY ("user_hidra_id") REFERENCES "public"."user"("hidra_id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint -ALTER TABLE "upvote" ADD CONSTRAINT "upvote_user_hidra_id_user_hidra_id_fk" FOREIGN KEY ("user_hidra_id") REFERENCES "public"."user"("hidra_id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint -ALTER TABLE "user_organization" ADD CONSTRAINT "user_organization_user_hidra_id_user_hidra_id_fk" FOREIGN KEY ("user_hidra_id") REFERENCES "public"."user"("hidra_id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint -ALTER TABLE "comment" DROP COLUMN "user_id";--> statement-breakpoint -ALTER TABLE "downvote" DROP COLUMN "user_id";--> statement-breakpoint -ALTER TABLE "post" DROP COLUMN "user_id";--> statement-breakpoint -ALTER TABLE "upvote" DROP COLUMN "user_id";--> statement-breakpoint -ALTER TABLE "user_organization" DROP COLUMN "user_id";--> statement-breakpoint -ALTER TABLE "downvote" ADD CONSTRAINT "downvote_postId_userHidraId_unique" UNIQUE("post_id","user_hidra_id");--> statement-breakpoint -ALTER TABLE "upvote" ADD CONSTRAINT "upvote_postId_userHidraId_unique" UNIQUE("post_id","user_hidra_id");--> statement-breakpoint -ALTER TABLE "user_organization" ADD CONSTRAINT "user_organization_userHidraId_organizationId_unique" UNIQUE("user_hidra_id","organization_id"); \ No newline at end of file diff --git a/src/lib/drizzle/migrations/0006_goofy_harry_osborn.sql b/src/lib/drizzle/migrations/0006_goofy_harry_osborn.sql deleted file mode 100644 index 9a47b33..0000000 --- a/src/lib/drizzle/migrations/0006_goofy_harry_osborn.sql +++ /dev/null @@ -1,26 +0,0 @@ -ALTER TABLE "comment" RENAME COLUMN "user_hidra_id" TO "user_id";--> statement-breakpoint -ALTER TABLE "downvote" RENAME COLUMN "user_hidra_id" TO "user_id";--> statement-breakpoint -ALTER TABLE "post" RENAME COLUMN "user_hidra_id" TO "user_id";--> statement-breakpoint -ALTER TABLE "upvote" RENAME COLUMN "user_hidra_id" TO "user_id";--> statement-breakpoint -ALTER TABLE "user_organization" RENAME COLUMN "user_hidra_id" TO "user_id";--> statement-breakpoint -ALTER TABLE "downvote" DROP CONSTRAINT "downvote_postId_userHidraId_unique";--> statement-breakpoint -ALTER TABLE "upvote" DROP CONSTRAINT "upvote_postId_userHidraId_unique";--> statement-breakpoint -ALTER TABLE "user_organization" DROP CONSTRAINT "user_organization_userHidraId_organizationId_unique";--> statement-breakpoint -ALTER TABLE "comment" DROP CONSTRAINT "comment_user_hidra_id_user_hidra_id_fk"; ---> statement-breakpoint -ALTER TABLE "downvote" DROP CONSTRAINT "downvote_user_hidra_id_user_hidra_id_fk"; ---> statement-breakpoint -ALTER TABLE "post" DROP CONSTRAINT "post_user_hidra_id_user_hidra_id_fk"; ---> statement-breakpoint -ALTER TABLE "upvote" DROP CONSTRAINT "upvote_user_hidra_id_user_hidra_id_fk"; ---> statement-breakpoint -ALTER TABLE "user_organization" DROP CONSTRAINT "user_organization_user_hidra_id_user_hidra_id_fk"; ---> statement-breakpoint -ALTER TABLE "comment" ADD CONSTRAINT "comment_user_id_user_hidra_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."user"("hidra_id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint -ALTER TABLE "downvote" ADD CONSTRAINT "downvote_user_id_user_hidra_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."user"("hidra_id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint -ALTER TABLE "post" ADD CONSTRAINT "post_user_id_user_hidra_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."user"("hidra_id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint -ALTER TABLE "upvote" ADD CONSTRAINT "upvote_user_id_user_hidra_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."user"("hidra_id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint -ALTER TABLE "user_organization" ADD CONSTRAINT "user_organization_user_id_user_hidra_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."user"("hidra_id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint -ALTER TABLE "downvote" ADD CONSTRAINT "downvote_postId_userId_unique" UNIQUE("post_id","user_id");--> statement-breakpoint -ALTER TABLE "upvote" ADD CONSTRAINT "upvote_postId_userId_unique" UNIQUE("post_id","user_id");--> statement-breakpoint -ALTER TABLE "user_organization" ADD CONSTRAINT "user_organization_userId_organizationId_unique" UNIQUE("user_id","organization_id"); \ No newline at end of file diff --git a/src/lib/drizzle/migrations/meta/0005_snapshot.json b/src/lib/drizzle/migrations/meta/0005_snapshot.json deleted file mode 100644 index dd08dd3..0000000 --- a/src/lib/drizzle/migrations/meta/0005_snapshot.json +++ /dev/null @@ -1,643 +0,0 @@ -{ - "id": "04cae376-8860-415a-997a-a5f1c04c4577", - "prevId": "c90da68b-8e52-4d89-b142-2daccf9d974f", - "version": "7", - "dialect": "postgresql", - "tables": { - "public.comment": { - "name": "comment", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "uuid", - "primaryKey": true, - "notNull": true, - "default": "gen_random_uuid()" - }, - "message": { - "name": "message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "post_id": { - "name": "post_id", - "type": "uuid", - "primaryKey": false, - "notNull": true - }, - "user_hidra_id": { - "name": "user_hidra_id", - "type": "uuid", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp(6) with time zone", - "primaryKey": false, - "notNull": false, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(6) with time zone", - "primaryKey": false, - "notNull": false, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": { - "comment_post_id_post_id_fk": { - "name": "comment_post_id_post_id_fk", - "tableFrom": "comment", - "tableTo": "post", - "columnsFrom": [ - "post_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "comment_user_hidra_id_user_hidra_id_fk": { - "name": "comment_user_hidra_id_user_hidra_id_fk", - "tableFrom": "comment", - "tableTo": "user", - "columnsFrom": [ - "user_hidra_id" - ], - "columnsTo": [ - "hidra_id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.downvote": { - "name": "downvote", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "uuid", - "primaryKey": true, - "notNull": true, - "default": "gen_random_uuid()" - }, - "post_id": { - "name": "post_id", - "type": "uuid", - "primaryKey": false, - "notNull": true - }, - "user_hidra_id": { - "name": "user_hidra_id", - "type": "uuid", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp(6) with time zone", - "primaryKey": false, - "notNull": false, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(6) with time zone", - "primaryKey": false, - "notNull": false, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": { - "downvote_post_id_post_id_fk": { - "name": "downvote_post_id_post_id_fk", - "tableFrom": "downvote", - "tableTo": "post", - "columnsFrom": [ - "post_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "downvote_user_hidra_id_user_hidra_id_fk": { - "name": "downvote_user_hidra_id_user_hidra_id_fk", - "tableFrom": "downvote", - "tableTo": "user", - "columnsFrom": [ - "user_hidra_id" - ], - "columnsTo": [ - "hidra_id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": { - "downvote_postId_userHidraId_unique": { - "name": "downvote_postId_userHidraId_unique", - "nullsNotDistinct": false, - "columns": [ - "post_id", - "user_hidra_id" - ] - } - }, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.organization": { - "name": "organization", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "uuid", - "primaryKey": true, - "notNull": true, - "default": "gen_random_uuid()" - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "slug": { - "name": "slug", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp(6) with time zone", - "primaryKey": false, - "notNull": false, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(6) with time zone", - "primaryKey": false, - "notNull": false, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": { - "organization_name_unique": { - "name": "organization_name_unique", - "nullsNotDistinct": false, - "columns": [ - "name" - ] - }, - "organization_slug_unique": { - "name": "organization_slug_unique", - "nullsNotDistinct": false, - "columns": [ - "slug" - ] - } - }, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.post": { - "name": "post", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "uuid", - "primaryKey": true, - "notNull": true, - "default": "gen_random_uuid()" - }, - "title": { - "name": "title", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "project_id": { - "name": "project_id", - "type": "uuid", - "primaryKey": false, - "notNull": true - }, - "user_hidra_id": { - "name": "user_hidra_id", - "type": "uuid", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp(6) with time zone", - "primaryKey": false, - "notNull": false, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(6) with time zone", - "primaryKey": false, - "notNull": false, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": { - "post_project_id_project_id_fk": { - "name": "post_project_id_project_id_fk", - "tableFrom": "post", - "tableTo": "project", - "columnsFrom": [ - "project_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "post_user_hidra_id_user_hidra_id_fk": { - "name": "post_user_hidra_id_user_hidra_id_fk", - "tableFrom": "post", - "tableTo": "user", - "columnsFrom": [ - "user_hidra_id" - ], - "columnsTo": [ - "hidra_id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.project": { - "name": "project", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "uuid", - "primaryKey": true, - "notNull": true, - "default": "gen_random_uuid()" - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "image": { - "name": "image", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "slug": { - "name": "slug", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "organization_id": { - "name": "organization_id", - "type": "uuid", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp(6) with time zone", - "primaryKey": false, - "notNull": false, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(6) with time zone", - "primaryKey": false, - "notNull": false, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": { - "project_organization_id_organization_id_fk": { - "name": "project_organization_id_organization_id_fk", - "tableFrom": "project", - "tableTo": "organization", - "columnsFrom": [ - "organization_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": { - "project_name_unique": { - "name": "project_name_unique", - "nullsNotDistinct": false, - "columns": [ - "name" - ] - }, - "project_slug_organizationId_unique": { - "name": "project_slug_organizationId_unique", - "nullsNotDistinct": false, - "columns": [ - "slug", - "organization_id" - ] - } - }, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.upvote": { - "name": "upvote", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "uuid", - "primaryKey": true, - "notNull": true, - "default": "gen_random_uuid()" - }, - "post_id": { - "name": "post_id", - "type": "uuid", - "primaryKey": false, - "notNull": true - }, - "user_hidra_id": { - "name": "user_hidra_id", - "type": "uuid", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp(6) with time zone", - "primaryKey": false, - "notNull": false, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(6) with time zone", - "primaryKey": false, - "notNull": false, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": { - "upvote_post_id_post_id_fk": { - "name": "upvote_post_id_post_id_fk", - "tableFrom": "upvote", - "tableTo": "post", - "columnsFrom": [ - "post_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "upvote_user_hidra_id_user_hidra_id_fk": { - "name": "upvote_user_hidra_id_user_hidra_id_fk", - "tableFrom": "upvote", - "tableTo": "user", - "columnsFrom": [ - "user_hidra_id" - ], - "columnsTo": [ - "hidra_id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": { - "upvote_postId_userHidraId_unique": { - "name": "upvote_postId_userHidraId_unique", - "nullsNotDistinct": false, - "columns": [ - "post_id", - "user_hidra_id" - ] - } - }, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.user": { - "name": "user", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "uuid", - "primaryKey": true, - "notNull": true, - "default": "gen_random_uuid()" - }, - "hidra_id": { - "name": "hidra_id", - "type": "uuid", - "primaryKey": false, - "notNull": true - }, - "username": { - "name": "username", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "first_name": { - "name": "first_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_name": { - "name": "last_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp(6) with time zone", - "primaryKey": false, - "notNull": false, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(6) with time zone", - "primaryKey": false, - "notNull": false, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": { - "user_hidraId_unique": { - "name": "user_hidraId_unique", - "nullsNotDistinct": false, - "columns": [ - "hidra_id" - ] - }, - "user_username_unique": { - "name": "user_username_unique", - "nullsNotDistinct": false, - "columns": [ - "username" - ] - } - }, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.user_organization": { - "name": "user_organization", - "schema": "", - "columns": { - "user_hidra_id": { - "name": "user_hidra_id", - "type": "uuid", - "primaryKey": false, - "notNull": true - }, - "organization_id": { - "name": "organization_id", - "type": "uuid", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp(6) with time zone", - "primaryKey": false, - "notNull": false, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": { - "user_organization_user_hidra_id_user_hidra_id_fk": { - "name": "user_organization_user_hidra_id_user_hidra_id_fk", - "tableFrom": "user_organization", - "tableTo": "user", - "columnsFrom": [ - "user_hidra_id" - ], - "columnsTo": [ - "hidra_id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "user_organization_organization_id_organization_id_fk": { - "name": "user_organization_organization_id_organization_id_fk", - "tableFrom": "user_organization", - "tableTo": "organization", - "columnsFrom": [ - "organization_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": { - "user_organization_userHidraId_organizationId_unique": { - "name": "user_organization_userHidraId_organizationId_unique", - "nullsNotDistinct": false, - "columns": [ - "user_hidra_id", - "organization_id" - ] - } - }, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - } - }, - "enums": {}, - "schemas": {}, - "sequences": {}, - "roles": {}, - "policies": {}, - "views": {}, - "_meta": { - "columns": {}, - "schemas": {}, - "tables": {} - } -} \ No newline at end of file diff --git a/src/lib/drizzle/migrations/meta/0006_snapshot.json b/src/lib/drizzle/migrations/meta/0006_snapshot.json deleted file mode 100644 index 592a6a6..0000000 --- a/src/lib/drizzle/migrations/meta/0006_snapshot.json +++ /dev/null @@ -1,643 +0,0 @@ -{ - "id": "d17c4c68-867b-4aa6-a4be-a4403a26028f", - "prevId": "04cae376-8860-415a-997a-a5f1c04c4577", - "version": "7", - "dialect": "postgresql", - "tables": { - "public.comment": { - "name": "comment", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "uuid", - "primaryKey": true, - "notNull": true, - "default": "gen_random_uuid()" - }, - "message": { - "name": "message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "post_id": { - "name": "post_id", - "type": "uuid", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "uuid", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp(6) with time zone", - "primaryKey": false, - "notNull": false, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(6) with time zone", - "primaryKey": false, - "notNull": false, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": { - "comment_post_id_post_id_fk": { - "name": "comment_post_id_post_id_fk", - "tableFrom": "comment", - "tableTo": "post", - "columnsFrom": [ - "post_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "comment_user_id_user_hidra_id_fk": { - "name": "comment_user_id_user_hidra_id_fk", - "tableFrom": "comment", - "tableTo": "user", - "columnsFrom": [ - "user_id" - ], - "columnsTo": [ - "hidra_id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.downvote": { - "name": "downvote", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "uuid", - "primaryKey": true, - "notNull": true, - "default": "gen_random_uuid()" - }, - "post_id": { - "name": "post_id", - "type": "uuid", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "uuid", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp(6) with time zone", - "primaryKey": false, - "notNull": false, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(6) with time zone", - "primaryKey": false, - "notNull": false, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": { - "downvote_post_id_post_id_fk": { - "name": "downvote_post_id_post_id_fk", - "tableFrom": "downvote", - "tableTo": "post", - "columnsFrom": [ - "post_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "downvote_user_id_user_hidra_id_fk": { - "name": "downvote_user_id_user_hidra_id_fk", - "tableFrom": "downvote", - "tableTo": "user", - "columnsFrom": [ - "user_id" - ], - "columnsTo": [ - "hidra_id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": { - "downvote_postId_userId_unique": { - "name": "downvote_postId_userId_unique", - "nullsNotDistinct": false, - "columns": [ - "post_id", - "user_id" - ] - } - }, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.organization": { - "name": "organization", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "uuid", - "primaryKey": true, - "notNull": true, - "default": "gen_random_uuid()" - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "slug": { - "name": "slug", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp(6) with time zone", - "primaryKey": false, - "notNull": false, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(6) with time zone", - "primaryKey": false, - "notNull": false, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": { - "organization_name_unique": { - "name": "organization_name_unique", - "nullsNotDistinct": false, - "columns": [ - "name" - ] - }, - "organization_slug_unique": { - "name": "organization_slug_unique", - "nullsNotDistinct": false, - "columns": [ - "slug" - ] - } - }, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.post": { - "name": "post", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "uuid", - "primaryKey": true, - "notNull": true, - "default": "gen_random_uuid()" - }, - "title": { - "name": "title", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "project_id": { - "name": "project_id", - "type": "uuid", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "uuid", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp(6) with time zone", - "primaryKey": false, - "notNull": false, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(6) with time zone", - "primaryKey": false, - "notNull": false, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": { - "post_project_id_project_id_fk": { - "name": "post_project_id_project_id_fk", - "tableFrom": "post", - "tableTo": "project", - "columnsFrom": [ - "project_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "post_user_id_user_hidra_id_fk": { - "name": "post_user_id_user_hidra_id_fk", - "tableFrom": "post", - "tableTo": "user", - "columnsFrom": [ - "user_id" - ], - "columnsTo": [ - "hidra_id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.project": { - "name": "project", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "uuid", - "primaryKey": true, - "notNull": true, - "default": "gen_random_uuid()" - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "image": { - "name": "image", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "slug": { - "name": "slug", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "organization_id": { - "name": "organization_id", - "type": "uuid", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp(6) with time zone", - "primaryKey": false, - "notNull": false, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(6) with time zone", - "primaryKey": false, - "notNull": false, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": { - "project_organization_id_organization_id_fk": { - "name": "project_organization_id_organization_id_fk", - "tableFrom": "project", - "tableTo": "organization", - "columnsFrom": [ - "organization_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": { - "project_name_unique": { - "name": "project_name_unique", - "nullsNotDistinct": false, - "columns": [ - "name" - ] - }, - "project_slug_organizationId_unique": { - "name": "project_slug_organizationId_unique", - "nullsNotDistinct": false, - "columns": [ - "slug", - "organization_id" - ] - } - }, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.upvote": { - "name": "upvote", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "uuid", - "primaryKey": true, - "notNull": true, - "default": "gen_random_uuid()" - }, - "post_id": { - "name": "post_id", - "type": "uuid", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "uuid", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp(6) with time zone", - "primaryKey": false, - "notNull": false, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(6) with time zone", - "primaryKey": false, - "notNull": false, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": { - "upvote_post_id_post_id_fk": { - "name": "upvote_post_id_post_id_fk", - "tableFrom": "upvote", - "tableTo": "post", - "columnsFrom": [ - "post_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "upvote_user_id_user_hidra_id_fk": { - "name": "upvote_user_id_user_hidra_id_fk", - "tableFrom": "upvote", - "tableTo": "user", - "columnsFrom": [ - "user_id" - ], - "columnsTo": [ - "hidra_id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": { - "upvote_postId_userId_unique": { - "name": "upvote_postId_userId_unique", - "nullsNotDistinct": false, - "columns": [ - "post_id", - "user_id" - ] - } - }, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.user": { - "name": "user", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "uuid", - "primaryKey": true, - "notNull": true, - "default": "gen_random_uuid()" - }, - "hidra_id": { - "name": "hidra_id", - "type": "uuid", - "primaryKey": false, - "notNull": true - }, - "username": { - "name": "username", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "first_name": { - "name": "first_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_name": { - "name": "last_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp(6) with time zone", - "primaryKey": false, - "notNull": false, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(6) with time zone", - "primaryKey": false, - "notNull": false, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": { - "user_hidraId_unique": { - "name": "user_hidraId_unique", - "nullsNotDistinct": false, - "columns": [ - "hidra_id" - ] - }, - "user_username_unique": { - "name": "user_username_unique", - "nullsNotDistinct": false, - "columns": [ - "username" - ] - } - }, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.user_organization": { - "name": "user_organization", - "schema": "", - "columns": { - "user_id": { - "name": "user_id", - "type": "uuid", - "primaryKey": false, - "notNull": true - }, - "organization_id": { - "name": "organization_id", - "type": "uuid", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp(6) with time zone", - "primaryKey": false, - "notNull": false, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": { - "user_organization_user_id_user_hidra_id_fk": { - "name": "user_organization_user_id_user_hidra_id_fk", - "tableFrom": "user_organization", - "tableTo": "user", - "columnsFrom": [ - "user_id" - ], - "columnsTo": [ - "hidra_id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "user_organization_organization_id_organization_id_fk": { - "name": "user_organization_organization_id_organization_id_fk", - "tableFrom": "user_organization", - "tableTo": "organization", - "columnsFrom": [ - "organization_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": { - "user_organization_userId_organizationId_unique": { - "name": "user_organization_userId_organizationId_unique", - "nullsNotDistinct": false, - "columns": [ - "user_id", - "organization_id" - ] - } - }, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - } - }, - "enums": {}, - "schemas": {}, - "sequences": {}, - "roles": {}, - "policies": {}, - "views": {}, - "_meta": { - "columns": {}, - "schemas": {}, - "tables": {} - } -} \ No newline at end of file diff --git a/src/lib/drizzle/migrations/meta/_journal.json b/src/lib/drizzle/migrations/meta/_journal.json index 47870f4..d1329e6 100644 --- a/src/lib/drizzle/migrations/meta/_journal.json +++ b/src/lib/drizzle/migrations/meta/_journal.json @@ -36,20 +36,6 @@ "when": 1735865647094, "tag": "0004_easy_lockheed", "breakpoints": true - }, - { - "idx": 5, - "version": "7", - "when": 1735921429085, - "tag": "0005_nice_talkback", - "breakpoints": true - }, - { - "idx": 6, - "version": "7", - "when": 1735921719688, - "tag": "0006_goofy_harry_osborn", - "breakpoints": true } ] } \ No newline at end of file diff --git a/src/lib/drizzle/schema/comment.table.ts b/src/lib/drizzle/schema/comment.table.ts index ec5453d..ca9be3f 100644 --- a/src/lib/drizzle/schema/comment.table.ts +++ b/src/lib/drizzle/schema/comment.table.ts @@ -19,7 +19,7 @@ export const comments = pgTable("comment", { }), userId: uuid() .notNull() - .references(() => users.hidraId, { + .references(() => users.id, { onDelete: "cascade", }), createdAt: defaultDate(), diff --git a/src/lib/drizzle/schema/downvote.table.ts b/src/lib/drizzle/schema/downvote.table.ts index a0cf132..264af47 100644 --- a/src/lib/drizzle/schema/downvote.table.ts +++ b/src/lib/drizzle/schema/downvote.table.ts @@ -20,7 +20,7 @@ export const downvotes = pgTable( }), userId: uuid() .notNull() - .references(() => users.hidraId, { + .references(() => users.id, { onDelete: "cascade", }), createdAt: defaultDate(), diff --git a/src/lib/drizzle/schema/post.table.ts b/src/lib/drizzle/schema/post.table.ts index fe70ae6..0e9be52 100644 --- a/src/lib/drizzle/schema/post.table.ts +++ b/src/lib/drizzle/schema/post.table.ts @@ -20,7 +20,7 @@ export const posts = pgTable("post", { }), userId: uuid() .notNull() - .references(() => users.hidraId, { + .references(() => users.id, { onDelete: "cascade", }), createdAt: defaultDate(), diff --git a/src/lib/drizzle/schema/upvote.table.ts b/src/lib/drizzle/schema/upvote.table.ts index 27d7d3d..ada6cf9 100644 --- a/src/lib/drizzle/schema/upvote.table.ts +++ b/src/lib/drizzle/schema/upvote.table.ts @@ -20,7 +20,7 @@ export const upvotes = pgTable( }), userId: uuid() .notNull() - .references(() => users.hidraId, { + .references(() => users.id, { onDelete: "cascade", }), createdAt: defaultDate(), diff --git a/src/lib/drizzle/schema/userToOrganization.table.ts b/src/lib/drizzle/schema/userToOrganization.table.ts index 1ad92ee..556074b 100644 --- a/src/lib/drizzle/schema/userToOrganization.table.ts +++ b/src/lib/drizzle/schema/userToOrganization.table.ts @@ -14,7 +14,7 @@ export const usersToOrganizations = pgTable( { userId: uuid() .notNull() - .references(() => users.hidraId, { + .references(() => users.id, { onDelete: "cascade", }), organizationId: uuid() From 2887628219a9b22ad3e406492f2390bce5ba63f5 Mon Sep 17 00:00:00 2001 From: hobbescodes <87732294+hobbescodes@users.noreply.github.com> Date: Sun, 5 Jan 2025 16:27:18 -0600 Subject: [PATCH 5/5] refactor: apply migrations --- src/generated/graphql/schema.executable.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/generated/graphql/schema.executable.ts b/src/generated/graphql/schema.executable.ts index 0140a84..f365733 100644 --- a/src/generated/graphql/schema.executable.ts +++ b/src/generated/graphql/schema.executable.ts @@ -120,7 +120,7 @@ const spec_userOrganization = { }), description: undefined, extensions: { - oid: "80353", + oid: "81017", isTableLike: true, pg: { serviceName: "main", @@ -200,7 +200,7 @@ const spec_downvote = { }), description: undefined, extensions: { - oid: "80418", + oid: "81082", isTableLike: true, pg: { serviceName: "main", @@ -280,7 +280,7 @@ const spec_upvote = { }), description: undefined, extensions: { - oid: "80331", + oid: "80995", isTableLike: true, pg: { serviceName: "main", @@ -360,7 +360,7 @@ const spec_organization = { }), description: undefined, extensions: { - oid: "80293", + oid: "80957", isTableLike: true, pg: { serviceName: "main", @@ -452,7 +452,7 @@ const spec_comment = { }), description: undefined, extensions: { - oid: "80398", + oid: "81062", isTableLike: true, pg: { serviceName: "main", @@ -556,7 +556,7 @@ const spec_post = { }), description: undefined, extensions: { - oid: "80307", + oid: "80971", isTableLike: true, pg: { serviceName: "main", @@ -672,7 +672,7 @@ const spec_project = { }), description: undefined, extensions: { - oid: "80317", + oid: "80981", isTableLike: true, pg: { serviceName: "main", @@ -776,7 +776,7 @@ const spec_user = { }), description: undefined, extensions: { - oid: "80341", + oid: "81005", isTableLike: true, pg: { serviceName: "main",