From cfac68386a82cd71d3cc8e7de22025ecc90dedd1 Mon Sep 17 00:00:00 2001 From: Fernando Hurtado Date: Tue, 2 Apr 2024 15:06:31 +0200 Subject: [PATCH] refactor: drop generated code from introspect --- packages/introspect/.gitignore | 1 + packages/introspect/src/generated/db.ts | 1792 ---------- packages/introspect/src/generated/index.ts | 2 - packages/introspect/src/generated/schema.ts | 3393 ------------------- 4 files changed, 1 insertion(+), 5187 deletions(-) create mode 100644 packages/introspect/.gitignore delete mode 100644 packages/introspect/src/generated/db.ts delete mode 100644 packages/introspect/src/generated/index.ts delete mode 100644 packages/introspect/src/generated/schema.ts diff --git a/packages/introspect/.gitignore b/packages/introspect/.gitignore new file mode 100644 index 00000000..9ab870da --- /dev/null +++ b/packages/introspect/.gitignore @@ -0,0 +1 @@ +generated/ diff --git a/packages/introspect/src/generated/db.ts b/packages/introspect/src/generated/db.ts deleted file mode 100644 index e6a14af3..00000000 --- a/packages/introspect/src/generated/db.ts +++ /dev/null @@ -1,1792 +0,0 @@ -/* eslint-disable */ -/** - * This file was automatically generated by json-schema-to-typescript. - * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, - * and run json-schema-to-typescript to regenerate this file. - */ - -/** - * A PG int4 - */ -export type PgCatalogInt4 = number; -/** - * A PG text - */ -export type PgCatalogText = string; -/** - * A PG bool - */ -export type PgCatalogBool = boolean; -/** - * A PG date - */ -export type PgCatalogDate = string; -/** - * A PG timestamptz - */ -export type PgCatalogTimestamptz = string; -/** - * A PG year - */ -export type PublicYearDomain = number; -/** - * A PG int2 - */ -export type PgCatalogInt2 = number; -/** - * A PG numeric - */ -export type PgCatalogNumeric = number; -/** - * The mpaa_rating enum from the public schema - */ -export type PublicMpaaRatingEnum = 'G' | 'PG' | 'PG-13' | 'R' | 'NC-17'; -/** - * A PG tsvector - */ -export type PgCatalogTsvector = string; -/** - * A PG bpchar - */ -export type PgCatalogBpchar = string; -/** - * A PG bytea - */ -export type PgCatalogBytea = string; - -/** - * Your database's schema - */ -export interface DB { - customer: TableCustomer; - actor: TableActor; - category: TableCategory; - film: TableFilm; - film_actor: TableFilmActor; - film_category: TableFilmCategory; - address: TableAddress; - city: TableCity; - country: TableCountry; - inventory: TableInventory; - language: TableLanguage; - payment: TablePayment; - rental: TableRental; - staff: TableStaff; - store: TableStore; -} -/** - * Table details: - * - * - Schema: public - * - Table: customer - */ -export interface TableCustomer { - columns: { - /** - * Column details: - * - * - Schema: public - * - Table: customer - * - Column: customer_id - * - PG type: pg_catalog.int4 - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - customer_id: { - type: PgCatalogInt4; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: true; - }; - /** - * Column details: - * - * - Schema: public - * - Table: customer - * - Column: store_id - * - PG type: pg_catalog.int4 - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - store_id: { - type: PgCatalogInt4; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: false; - }; - /** - * Column details: - * - * - Schema: public - * - Table: customer - * - Column: first_name - * - PG type: pg_catalog.text - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - first_name: { - type: PgCatalogText; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: false; - }; - /** - * Column details: - * - * - Schema: public - * - Table: customer - * - Column: last_name - * - PG type: pg_catalog.text - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - last_name: { - type: PgCatalogText; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: false; - }; - /** - * Column details: - * - * - Schema: public - * - Table: customer - * - Column: email - * - PG type: pg_catalog.text - * - PG kind: base - * - Nullable: true - * - Generated: NEVER - */ - email?: { - type: PgCatalogText; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: false; - }; - /** - * Column details: - * - * - Schema: public - * - Table: customer - * - Column: address_id - * - PG type: pg_catalog.int4 - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - address_id: { - type: PgCatalogInt4; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: false; - }; - /** - * Column details: - * - * - Schema: public - * - Table: customer - * - Column: activebool - * - PG type: pg_catalog.bool - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - activebool: { - type: PgCatalogBool; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: false; - }; - /** - * Column details: - * - * - Schema: public - * - Table: customer - * - Column: create_date - * - PG type: pg_catalog.date - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - create_date: { - type: PgCatalogDate; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: false; - }; - /** - * Column details: - * - * - Schema: public - * - Table: customer - * - Column: last_update - * - PG type: pg_catalog.timestamptz - * - PG kind: base - * - Nullable: true - * - Generated: NEVER - */ - last_update?: { - type: PgCatalogTimestamptz; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: false; - }; - /** - * Column details: - * - * - Schema: public - * - Table: customer - * - Column: active - * - PG type: pg_catalog.int4 - * - PG kind: base - * - Nullable: true - * - Generated: NEVER - */ - active?: { - type: PgCatalogInt4; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: false; - }; - }; -} -/** - * Table details: - * - * - Schema: public - * - Table: actor - */ -export interface TableActor { - columns: { - /** - * Column details: - * - * - Schema: public - * - Table: actor - * - Column: actor_id - * - PG type: pg_catalog.int4 - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - actor_id: { - type: PgCatalogInt4; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: true; - }; - /** - * Column details: - * - * - Schema: public - * - Table: actor - * - Column: first_name - * - PG type: pg_catalog.text - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - first_name: { - type: PgCatalogText; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: false; - }; - /** - * Column details: - * - * - Schema: public - * - Table: actor - * - Column: last_name - * - PG type: pg_catalog.text - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - last_name: { - type: PgCatalogText; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: false; - }; - /** - * Column details: - * - * - Schema: public - * - Table: actor - * - Column: last_update - * - PG type: pg_catalog.timestamptz - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - last_update: { - type: PgCatalogTimestamptz; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: false; - }; - }; -} -/** - * Table details: - * - * - Schema: public - * - Table: category - */ -export interface TableCategory { - columns: { - /** - * Column details: - * - * - Schema: public - * - Table: category - * - Column: category_id - * - PG type: pg_catalog.int4 - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - category_id: { - type: PgCatalogInt4; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: true; - }; - /** - * Column details: - * - * - Schema: public - * - Table: category - * - Column: name - * - PG type: pg_catalog.text - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - name: { - type: PgCatalogText; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: false; - }; - /** - * Column details: - * - * - Schema: public - * - Table: category - * - Column: last_update - * - PG type: pg_catalog.timestamptz - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - last_update: { - type: PgCatalogTimestamptz; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: false; - }; - }; -} -/** - * Table details: - * - * - Schema: public - * - Table: film - */ -export interface TableFilm { - columns: { - /** - * Column details: - * - * - Schema: public - * - Table: film - * - Column: film_id - * - PG type: pg_catalog.int4 - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - film_id: { - type: PgCatalogInt4; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: true; - }; - /** - * Column details: - * - * - Schema: public - * - Table: film - * - Column: title - * - PG type: pg_catalog.text - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - title: { - type: PgCatalogText; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: false; - }; - /** - * Column details: - * - * - Schema: public - * - Table: film - * - Column: description - * - PG type: pg_catalog.text - * - PG kind: base - * - Nullable: true - * - Generated: NEVER - */ - description?: { - type: PgCatalogText; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: false; - }; - /** - * Column details: - * - * - Schema: public - * - Table: film - * - Column: release_year - * - PG type: public.year - * - PG kind: domain - * - Nullable: true - * - Generated: NEVER - */ - release_year?: { - type: PublicYearDomain; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: false; - }; - /** - * Column details: - * - * - Schema: public - * - Table: film - * - Column: language_id - * - PG type: pg_catalog.int4 - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - language_id: { - type: PgCatalogInt4; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: false; - }; - /** - * Column details: - * - * - Schema: public - * - Table: film - * - Column: original_language_id - * - PG type: pg_catalog.int4 - * - PG kind: base - * - Nullable: true - * - Generated: NEVER - */ - original_language_id?: { - type: PgCatalogInt4; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: false; - }; - /** - * Column details: - * - * - Schema: public - * - Table: film - * - Column: rental_duration - * - PG type: pg_catalog.int2 - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - rental_duration: { - type: PgCatalogInt2; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: false; - }; - /** - * Column details: - * - * - Schema: public - * - Table: film - * - Column: rental_rate - * - PG type: pg_catalog.numeric - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - rental_rate: { - type: PgCatalogNumeric; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: false; - }; - /** - * Column details: - * - * - Schema: public - * - Table: film - * - Column: length - * - PG type: pg_catalog.int2 - * - PG kind: base - * - Nullable: true - * - Generated: NEVER - */ - length?: { - type: PgCatalogInt2; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: false; - }; - /** - * Column details: - * - * - Schema: public - * - Table: film - * - Column: replacement_cost - * - PG type: pg_catalog.numeric - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - replacement_cost: { - type: PgCatalogNumeric; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: false; - }; - /** - * Column details: - * - * - Schema: public - * - Table: film - * - Column: rating - * - PG type: public.mpaa_rating - * - PG kind: enum - * - Nullable: true - * - Generated: NEVER - */ - rating?: { - type: PublicMpaaRatingEnum; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: false; - }; - /** - * Column details: - * - * - Schema: public - * - Table: film - * - Column: last_update - * - PG type: pg_catalog.timestamptz - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - last_update: { - type: PgCatalogTimestamptz; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: false; - }; - /** - * Column details: - * - * - Schema: public - * - Table: film - * - Column: special_features - * - PG type: pg_catalog.text - * - PG kind: base - * - Nullable: true - * - Generated: NEVER - */ - special_features?: { - type: PgCatalogText; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: false; - }; - /** - * Column details: - * - * - Schema: public - * - Table: film - * - Column: fulltext - * - PG type: pg_catalog.tsvector - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - fulltext: { - type: PgCatalogTsvector; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: false; - }; - }; -} -/** - * Table details: - * - * - Schema: public - * - Table: film_actor - */ -export interface TableFilmActor { - columns: { - /** - * Column details: - * - * - Schema: public - * - Table: film_actor - * - Column: actor_id - * - PG type: pg_catalog.int4 - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - actor_id: { - type: PgCatalogInt4; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: true; - }; - /** - * Column details: - * - * - Schema: public - * - Table: film_actor - * - Column: film_id - * - PG type: pg_catalog.int4 - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - film_id: { - type: PgCatalogInt4; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: true; - }; - /** - * Column details: - * - * - Schema: public - * - Table: film_actor - * - Column: last_update - * - PG type: pg_catalog.timestamptz - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - last_update: { - type: PgCatalogTimestamptz; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: false; - }; - }; -} -/** - * Table details: - * - * - Schema: public - * - Table: film_category - */ -export interface TableFilmCategory { - columns: { - /** - * Column details: - * - * - Schema: public - * - Table: film_category - * - Column: film_id - * - PG type: pg_catalog.int4 - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - film_id: { - type: PgCatalogInt4; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: true; - }; - /** - * Column details: - * - * - Schema: public - * - Table: film_category - * - Column: category_id - * - PG type: pg_catalog.int4 - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - category_id: { - type: PgCatalogInt4; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: true; - }; - /** - * Column details: - * - * - Schema: public - * - Table: film_category - * - Column: last_update - * - PG type: pg_catalog.timestamptz - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - last_update: { - type: PgCatalogTimestamptz; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: false; - }; - }; -} -/** - * Table details: - * - * - Schema: public - * - Table: address - */ -export interface TableAddress { - columns: { - /** - * Column details: - * - * - Schema: public - * - Table: address - * - Column: address_id - * - PG type: pg_catalog.int4 - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - address_id: { - type: PgCatalogInt4; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: true; - }; - /** - * Column details: - * - * - Schema: public - * - Table: address - * - Column: address - * - PG type: pg_catalog.text - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - address: { - type: PgCatalogText; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: false; - }; - /** - * Column details: - * - * - Schema: public - * - Table: address - * - Column: address2 - * - PG type: pg_catalog.text - * - PG kind: base - * - Nullable: true - * - Generated: NEVER - */ - address2?: { - type: PgCatalogText; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: false; - }; - /** - * Column details: - * - * - Schema: public - * - Table: address - * - Column: district - * - PG type: pg_catalog.text - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - district: { - type: PgCatalogText; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: false; - }; - /** - * Column details: - * - * - Schema: public - * - Table: address - * - Column: city_id - * - PG type: pg_catalog.int4 - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - city_id: { - type: PgCatalogInt4; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: false; - }; - /** - * Column details: - * - * - Schema: public - * - Table: address - * - Column: postal_code - * - PG type: pg_catalog.text - * - PG kind: base - * - Nullable: true - * - Generated: NEVER - */ - postal_code?: { - type: PgCatalogText; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: false; - }; - /** - * Column details: - * - * - Schema: public - * - Table: address - * - Column: phone - * - PG type: pg_catalog.text - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - phone: { - type: PgCatalogText; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: false; - }; - /** - * Column details: - * - * - Schema: public - * - Table: address - * - Column: last_update - * - PG type: pg_catalog.timestamptz - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - last_update: { - type: PgCatalogTimestamptz; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: false; - }; - }; -} -/** - * Table details: - * - * - Schema: public - * - Table: city - */ -export interface TableCity { - columns: { - /** - * Column details: - * - * - Schema: public - * - Table: city - * - Column: city_id - * - PG type: pg_catalog.int4 - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - city_id: { - type: PgCatalogInt4; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: true; - }; - /** - * Column details: - * - * - Schema: public - * - Table: city - * - Column: city - * - PG type: pg_catalog.text - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - city: { - type: PgCatalogText; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: false; - }; - /** - * Column details: - * - * - Schema: public - * - Table: city - * - Column: country_id - * - PG type: pg_catalog.int4 - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - country_id: { - type: PgCatalogInt4; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: false; - }; - /** - * Column details: - * - * - Schema: public - * - Table: city - * - Column: last_update - * - PG type: pg_catalog.timestamptz - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - last_update: { - type: PgCatalogTimestamptz; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: false; - }; - }; -} -/** - * Table details: - * - * - Schema: public - * - Table: country - */ -export interface TableCountry { - columns: { - /** - * Column details: - * - * - Schema: public - * - Table: country - * - Column: country_id - * - PG type: pg_catalog.int4 - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - country_id: { - type: PgCatalogInt4; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: true; - }; - /** - * Column details: - * - * - Schema: public - * - Table: country - * - Column: country - * - PG type: pg_catalog.text - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - country: { - type: PgCatalogText; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: false; - }; - /** - * Column details: - * - * - Schema: public - * - Table: country - * - Column: last_update - * - PG type: pg_catalog.timestamptz - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - last_update: { - type: PgCatalogTimestamptz; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: false; - }; - }; -} -/** - * Table details: - * - * - Schema: public - * - Table: inventory - */ -export interface TableInventory { - columns: { - /** - * Column details: - * - * - Schema: public - * - Table: inventory - * - Column: inventory_id - * - PG type: pg_catalog.int4 - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - inventory_id: { - type: PgCatalogInt4; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: true; - }; - /** - * Column details: - * - * - Schema: public - * - Table: inventory - * - Column: film_id - * - PG type: pg_catalog.int4 - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - film_id: { - type: PgCatalogInt4; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: false; - }; - /** - * Column details: - * - * - Schema: public - * - Table: inventory - * - Column: store_id - * - PG type: pg_catalog.int4 - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - store_id: { - type: PgCatalogInt4; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: false; - }; - /** - * Column details: - * - * - Schema: public - * - Table: inventory - * - Column: last_update - * - PG type: pg_catalog.timestamptz - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - last_update: { - type: PgCatalogTimestamptz; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: false; - }; - }; -} -/** - * Table details: - * - * - Schema: public - * - Table: language - */ -export interface TableLanguage { - columns: { - /** - * Column details: - * - * - Schema: public - * - Table: language - * - Column: language_id - * - PG type: pg_catalog.int4 - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - language_id: { - type: PgCatalogInt4; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: true; - }; - /** - * Column details: - * - * - Schema: public - * - Table: language - * - Column: name - * - PG type: pg_catalog.bpchar - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - name: { - type: PgCatalogBpchar; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: false; - }; - /** - * Column details: - * - * - Schema: public - * - Table: language - * - Column: last_update - * - PG type: pg_catalog.timestamptz - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - last_update: { - type: PgCatalogTimestamptz; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: false; - }; - }; -} -/** - * Table details: - * - * - Schema: public - * - Table: payment - */ -export interface TablePayment { - columns: { - /** - * Column details: - * - * - Schema: public - * - Table: payment - * - Column: payment_id - * - PG type: pg_catalog.int4 - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - payment_id: { - type: PgCatalogInt4; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: false; - }; - /** - * Column details: - * - * - Schema: public - * - Table: payment - * - Column: customer_id - * - PG type: pg_catalog.int4 - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - customer_id: { - type: PgCatalogInt4; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: false; - }; - /** - * Column details: - * - * - Schema: public - * - Table: payment - * - Column: staff_id - * - PG type: pg_catalog.int4 - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - staff_id: { - type: PgCatalogInt4; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: false; - }; - /** - * Column details: - * - * - Schema: public - * - Table: payment - * - Column: rental_id - * - PG type: pg_catalog.int4 - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - rental_id: { - type: PgCatalogInt4; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: false; - }; - /** - * Column details: - * - * - Schema: public - * - Table: payment - * - Column: amount - * - PG type: pg_catalog.numeric - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - amount: { - type: PgCatalogNumeric; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: false; - }; - /** - * Column details: - * - * - Schema: public - * - Table: payment - * - Column: payment_date - * - PG type: pg_catalog.timestamptz - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - payment_date: { - type: PgCatalogTimestamptz; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: false; - }; - }; -} -/** - * Table details: - * - * - Schema: public - * - Table: rental - */ -export interface TableRental { - columns: { - /** - * Column details: - * - * - Schema: public - * - Table: rental - * - Column: rental_id - * - PG type: pg_catalog.int4 - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - rental_id: { - type: PgCatalogInt4; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: true; - }; - /** - * Column details: - * - * - Schema: public - * - Table: rental - * - Column: rental_date - * - PG type: pg_catalog.timestamptz - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - rental_date: { - type: PgCatalogTimestamptz; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: false; - }; - /** - * Column details: - * - * - Schema: public - * - Table: rental - * - Column: inventory_id - * - PG type: pg_catalog.int4 - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - inventory_id: { - type: PgCatalogInt4; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: false; - }; - /** - * Column details: - * - * - Schema: public - * - Table: rental - * - Column: customer_id - * - PG type: pg_catalog.int4 - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - customer_id: { - type: PgCatalogInt4; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: false; - }; - /** - * Column details: - * - * - Schema: public - * - Table: rental - * - Column: return_date - * - PG type: pg_catalog.timestamptz - * - PG kind: base - * - Nullable: true - * - Generated: NEVER - */ - return_date?: { - type: PgCatalogTimestamptz; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: false; - }; - /** - * Column details: - * - * - Schema: public - * - Table: rental - * - Column: staff_id - * - PG type: pg_catalog.int4 - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - staff_id: { - type: PgCatalogInt4; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: false; - }; - /** - * Column details: - * - * - Schema: public - * - Table: rental - * - Column: last_update - * - PG type: pg_catalog.timestamptz - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - last_update: { - type: PgCatalogTimestamptz; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: false; - }; - }; -} -/** - * Table details: - * - * - Schema: public - * - Table: staff - */ -export interface TableStaff { - columns: { - /** - * Column details: - * - * - Schema: public - * - Table: staff - * - Column: staff_id - * - PG type: pg_catalog.int4 - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - staff_id: { - type: PgCatalogInt4; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: true; - }; - /** - * Column details: - * - * - Schema: public - * - Table: staff - * - Column: first_name - * - PG type: pg_catalog.text - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - first_name: { - type: PgCatalogText; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: false; - }; - /** - * Column details: - * - * - Schema: public - * - Table: staff - * - Column: last_name - * - PG type: pg_catalog.text - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - last_name: { - type: PgCatalogText; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: false; - }; - /** - * Column details: - * - * - Schema: public - * - Table: staff - * - Column: address_id - * - PG type: pg_catalog.int4 - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - address_id: { - type: PgCatalogInt4; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: false; - }; - /** - * Column details: - * - * - Schema: public - * - Table: staff - * - Column: email - * - PG type: pg_catalog.text - * - PG kind: base - * - Nullable: true - * - Generated: NEVER - */ - email?: { - type: PgCatalogText; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: false; - }; - /** - * Column details: - * - * - Schema: public - * - Table: staff - * - Column: store_id - * - PG type: pg_catalog.int4 - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - store_id: { - type: PgCatalogInt4; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: false; - }; - /** - * Column details: - * - * - Schema: public - * - Table: staff - * - Column: active - * - PG type: pg_catalog.bool - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - active: { - type: PgCatalogBool; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: false; - }; - /** - * Column details: - * - * - Schema: public - * - Table: staff - * - Column: username - * - PG type: pg_catalog.text - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - username: { - type: PgCatalogText; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: false; - }; - /** - * Column details: - * - * - Schema: public - * - Table: staff - * - Column: password - * - PG type: pg_catalog.text - * - PG kind: base - * - Nullable: true - * - Generated: NEVER - */ - password?: { - type: PgCatalogText; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: false; - }; - /** - * Column details: - * - * - Schema: public - * - Table: staff - * - Column: last_update - * - PG type: pg_catalog.timestamptz - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - last_update: { - type: PgCatalogTimestamptz; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: false; - }; - /** - * Column details: - * - * - Schema: public - * - Table: staff - * - Column: picture - * - PG type: pg_catalog.bytea - * - PG kind: base - * - Nullable: true - * - Generated: NEVER - */ - picture?: { - type: PgCatalogBytea; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: false; - }; - }; -} -/** - * Table details: - * - * - Schema: public - * - Table: store - */ -export interface TableStore { - columns: { - /** - * Column details: - * - * - Schema: public - * - Table: store - * - Column: store_id - * - PG type: pg_catalog.int4 - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - store_id: { - type: PgCatalogInt4; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: true; - }; - /** - * Column details: - * - * - Schema: public - * - Table: store - * - Column: manager_staff_id - * - PG type: pg_catalog.int4 - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - manager_staff_id: { - type: PgCatalogInt4; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: false; - }; - /** - * Column details: - * - * - Schema: public - * - Table: store - * - Column: address_id - * - PG type: pg_catalog.int4 - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - address_id: { - type: PgCatalogInt4; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: false; - }; - /** - * Column details: - * - * - Schema: public - * - Table: store - * - Column: last_update - * - PG type: pg_catalog.timestamptz - * - PG kind: base - * - Nullable: false - * - Generated: NEVER - */ - last_update: { - type: PgCatalogTimestamptz; - selectable: true; - includable: true; - whereable: true; - isPrimaryKey: false; - }; - }; -} diff --git a/packages/introspect/src/generated/index.ts b/packages/introspect/src/generated/index.ts deleted file mode 100644 index 8768760b..00000000 --- a/packages/introspect/src/generated/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { DB } from './db'; -export { schema } from './schema'; diff --git a/packages/introspect/src/generated/schema.ts b/packages/introspect/src/generated/schema.ts deleted file mode 100644 index 9b190fc2..00000000 --- a/packages/introspect/src/generated/schema.ts +++ /dev/null @@ -1,3393 +0,0 @@ -export const schema = { - $schema: 'https://json-schema.org/draft/2020-12/schema', - description: "Your database's schema", - type: 'object', - properties: { - customer: { - $ref: '#/$defs/table_customer', - }, - actor: { - $ref: '#/$defs/table_actor', - }, - category: { - $ref: '#/$defs/table_category', - }, - film: { - $ref: '#/$defs/table_film', - }, - film_actor: { - $ref: '#/$defs/table_film_actor', - }, - film_category: { - $ref: '#/$defs/table_film_category', - }, - address: { - $ref: '#/$defs/table_address', - }, - city: { - $ref: '#/$defs/table_city', - }, - country: { - $ref: '#/$defs/table_country', - }, - inventory: { - $ref: '#/$defs/table_inventory', - }, - language: { - $ref: '#/$defs/table_language', - }, - payment: { - $ref: '#/$defs/table_payment', - }, - rental: { - $ref: '#/$defs/table_rental', - }, - staff: { - $ref: '#/$defs/table_staff', - }, - store: { - $ref: '#/$defs/table_store', - }, - }, - required: [ - 'customer', - 'actor', - 'category', - 'film', - 'film_actor', - 'film_category', - 'address', - 'city', - 'country', - 'inventory', - 'language', - 'payment', - 'rental', - 'staff', - 'store', - ], - additionalProperties: false, - $defs: { - 'table_customer': { - type: 'object', - description: - 'Table details:\n\n- Schema: public\n- Table: customer', - properties: { - columns: { - type: 'object', - properties: { - customer_id: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: customer\n- Column: customer_id\n- PG type: pg_catalog.int4\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.int4', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: true, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - store_id: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: customer\n- Column: store_id\n- PG type: pg_catalog.int4\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.int4', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: false, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - first_name: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: customer\n- Column: first_name\n- PG type: pg_catalog.text\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.text', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: false, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - last_name: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: customer\n- Column: last_name\n- PG type: pg_catalog.text\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.text', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: false, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - email: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: customer\n- Column: email\n- PG type: pg_catalog.text\n- PG kind: base\n- Nullable: true\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.text', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: false, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - address_id: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: customer\n- Column: address_id\n- PG type: pg_catalog.int4\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.int4', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: false, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - activebool: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: customer\n- Column: activebool\n- PG type: pg_catalog.bool\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.bool', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: false, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - create_date: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: customer\n- Column: create_date\n- PG type: pg_catalog.date\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.date', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: false, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - last_update: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: customer\n- Column: last_update\n- PG type: pg_catalog.timestamptz\n- PG kind: base\n- Nullable: true\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.timestamptz', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: false, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - active: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: customer\n- Column: active\n- PG type: pg_catalog.int4\n- PG kind: base\n- Nullable: true\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.int4', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: false, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - }, - required: [ - 'customer_id', - 'store_id', - 'first_name', - 'last_name', - 'address_id', - 'activebool', - 'create_date', - ], - additionalProperties: false, - }, - }, - required: ['columns'], - additionalProperties: false, - }, - 'table_actor': { - type: 'object', - description: 'Table details:\n\n- Schema: public\n- Table: actor', - properties: { - columns: { - type: 'object', - properties: { - actor_id: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: actor\n- Column: actor_id\n- PG type: pg_catalog.int4\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.int4', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: true, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - first_name: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: actor\n- Column: first_name\n- PG type: pg_catalog.text\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.text', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: false, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - last_name: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: actor\n- Column: last_name\n- PG type: pg_catalog.text\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.text', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: false, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - last_update: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: actor\n- Column: last_update\n- PG type: pg_catalog.timestamptz\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.timestamptz', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: false, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - }, - required: [ - 'actor_id', - 'first_name', - 'last_name', - 'last_update', - ], - additionalProperties: false, - }, - }, - required: ['columns'], - additionalProperties: false, - }, - 'table_category': { - type: 'object', - description: - 'Table details:\n\n- Schema: public\n- Table: category', - properties: { - columns: { - type: 'object', - properties: { - category_id: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: category\n- Column: category_id\n- PG type: pg_catalog.int4\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.int4', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: true, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - name: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: category\n- Column: name\n- PG type: pg_catalog.text\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.text', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: false, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - last_update: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: category\n- Column: last_update\n- PG type: pg_catalog.timestamptz\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.timestamptz', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: false, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - }, - required: ['category_id', 'name', 'last_update'], - additionalProperties: false, - }, - }, - required: ['columns'], - additionalProperties: false, - }, - 'table_film': { - type: 'object', - description: 'Table details:\n\n- Schema: public\n- Table: film', - properties: { - columns: { - type: 'object', - properties: { - film_id: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: film\n- Column: film_id\n- PG type: pg_catalog.int4\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.int4', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: true, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - title: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: film\n- Column: title\n- PG type: pg_catalog.text\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.text', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: false, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - description: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: film\n- Column: description\n- PG type: pg_catalog.text\n- PG kind: base\n- Nullable: true\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.text', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: false, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - release_year: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: film\n- Column: release_year\n- PG type: public.year\n- PG kind: domain\n- Nullable: true\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/public.year.domain', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: false, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - language_id: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: film\n- Column: language_id\n- PG type: pg_catalog.int4\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.int4', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: false, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - original_language_id: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: film\n- Column: original_language_id\n- PG type: pg_catalog.int4\n- PG kind: base\n- Nullable: true\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.int4', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: false, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - rental_duration: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: film\n- Column: rental_duration\n- PG type: pg_catalog.int2\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.int2', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: false, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - rental_rate: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: film\n- Column: rental_rate\n- PG type: pg_catalog.numeric\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.numeric', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: false, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - length: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: film\n- Column: length\n- PG type: pg_catalog.int2\n- PG kind: base\n- Nullable: true\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.int2', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: false, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - replacement_cost: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: film\n- Column: replacement_cost\n- PG type: pg_catalog.numeric\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.numeric', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: false, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - rating: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: film\n- Column: rating\n- PG type: public.mpaa_rating\n- PG kind: enum\n- Nullable: true\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/public.mpaa_rating.enum', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: false, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - last_update: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: film\n- Column: last_update\n- PG type: pg_catalog.timestamptz\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.timestamptz', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: false, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - special_features: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: film\n- Column: special_features\n- PG type: pg_catalog.text\n- PG kind: base\n- Nullable: true\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.text', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: false, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - fulltext: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: film\n- Column: fulltext\n- PG type: pg_catalog.tsvector\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.tsvector', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: false, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - }, - required: [ - 'film_id', - 'title', - 'language_id', - 'rental_duration', - 'rental_rate', - 'replacement_cost', - 'last_update', - 'fulltext', - ], - additionalProperties: false, - }, - }, - required: ['columns'], - additionalProperties: false, - }, - 'table_film_actor': { - type: 'object', - description: - 'Table details:\n\n- Schema: public\n- Table: film_actor', - properties: { - columns: { - type: 'object', - properties: { - actor_id: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: film_actor\n- Column: actor_id\n- PG type: pg_catalog.int4\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.int4', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: true, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - film_id: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: film_actor\n- Column: film_id\n- PG type: pg_catalog.int4\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.int4', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: true, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - last_update: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: film_actor\n- Column: last_update\n- PG type: pg_catalog.timestamptz\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.timestamptz', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: false, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - }, - required: ['actor_id', 'film_id', 'last_update'], - additionalProperties: false, - }, - }, - required: ['columns'], - additionalProperties: false, - }, - 'table_film_category': { - type: 'object', - description: - 'Table details:\n\n- Schema: public\n- Table: film_category', - properties: { - columns: { - type: 'object', - properties: { - film_id: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: film_category\n- Column: film_id\n- PG type: pg_catalog.int4\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.int4', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: true, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - category_id: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: film_category\n- Column: category_id\n- PG type: pg_catalog.int4\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.int4', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: true, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - last_update: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: film_category\n- Column: last_update\n- PG type: pg_catalog.timestamptz\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.timestamptz', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: false, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - }, - required: ['film_id', 'category_id', 'last_update'], - additionalProperties: false, - }, - }, - required: ['columns'], - additionalProperties: false, - }, - 'table_address': { - type: 'object', - description: 'Table details:\n\n- Schema: public\n- Table: address', - properties: { - columns: { - type: 'object', - properties: { - address_id: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: address\n- Column: address_id\n- PG type: pg_catalog.int4\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.int4', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: true, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - address: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: address\n- Column: address\n- PG type: pg_catalog.text\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.text', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: false, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - address2: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: address\n- Column: address2\n- PG type: pg_catalog.text\n- PG kind: base\n- Nullable: true\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.text', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: false, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - district: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: address\n- Column: district\n- PG type: pg_catalog.text\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.text', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: false, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - city_id: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: address\n- Column: city_id\n- PG type: pg_catalog.int4\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.int4', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: false, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - postal_code: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: address\n- Column: postal_code\n- PG type: pg_catalog.text\n- PG kind: base\n- Nullable: true\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.text', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: false, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - phone: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: address\n- Column: phone\n- PG type: pg_catalog.text\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.text', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: false, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - last_update: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: address\n- Column: last_update\n- PG type: pg_catalog.timestamptz\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.timestamptz', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: false, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - }, - required: [ - 'address_id', - 'address', - 'district', - 'city_id', - 'phone', - 'last_update', - ], - additionalProperties: false, - }, - }, - required: ['columns'], - additionalProperties: false, - }, - 'table_city': { - type: 'object', - description: 'Table details:\n\n- Schema: public\n- Table: city', - properties: { - columns: { - type: 'object', - properties: { - city_id: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: city\n- Column: city_id\n- PG type: pg_catalog.int4\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.int4', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: true, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - city: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: city\n- Column: city\n- PG type: pg_catalog.text\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.text', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: false, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - country_id: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: city\n- Column: country_id\n- PG type: pg_catalog.int4\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.int4', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: false, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - last_update: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: city\n- Column: last_update\n- PG type: pg_catalog.timestamptz\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.timestamptz', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: false, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - }, - required: ['city_id', 'city', 'country_id', 'last_update'], - additionalProperties: false, - }, - }, - required: ['columns'], - additionalProperties: false, - }, - 'table_country': { - type: 'object', - description: 'Table details:\n\n- Schema: public\n- Table: country', - properties: { - columns: { - type: 'object', - properties: { - country_id: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: country\n- Column: country_id\n- PG type: pg_catalog.int4\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.int4', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: true, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - country: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: country\n- Column: country\n- PG type: pg_catalog.text\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.text', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: false, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - last_update: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: country\n- Column: last_update\n- PG type: pg_catalog.timestamptz\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.timestamptz', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: false, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - }, - required: ['country_id', 'country', 'last_update'], - additionalProperties: false, - }, - }, - required: ['columns'], - additionalProperties: false, - }, - 'table_inventory': { - type: 'object', - description: - 'Table details:\n\n- Schema: public\n- Table: inventory', - properties: { - columns: { - type: 'object', - properties: { - inventory_id: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: inventory\n- Column: inventory_id\n- PG type: pg_catalog.int4\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.int4', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: true, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - film_id: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: inventory\n- Column: film_id\n- PG type: pg_catalog.int4\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.int4', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: false, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - store_id: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: inventory\n- Column: store_id\n- PG type: pg_catalog.int4\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.int4', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: false, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - last_update: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: inventory\n- Column: last_update\n- PG type: pg_catalog.timestamptz\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.timestamptz', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: false, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - }, - required: [ - 'inventory_id', - 'film_id', - 'store_id', - 'last_update', - ], - additionalProperties: false, - }, - }, - required: ['columns'], - additionalProperties: false, - }, - 'table_language': { - type: 'object', - description: - 'Table details:\n\n- Schema: public\n- Table: language', - properties: { - columns: { - type: 'object', - properties: { - language_id: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: language\n- Column: language_id\n- PG type: pg_catalog.int4\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.int4', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: true, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - name: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: language\n- Column: name\n- PG type: pg_catalog.bpchar\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.bpchar', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: false, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - last_update: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: language\n- Column: last_update\n- PG type: pg_catalog.timestamptz\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.timestamptz', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: false, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - }, - required: ['language_id', 'name', 'last_update'], - additionalProperties: false, - }, - }, - required: ['columns'], - additionalProperties: false, - }, - 'table_payment': { - type: 'object', - description: 'Table details:\n\n- Schema: public\n- Table: payment', - properties: { - columns: { - type: 'object', - properties: { - payment_id: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: payment\n- Column: payment_id\n- PG type: pg_catalog.int4\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.int4', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: false, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - customer_id: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: payment\n- Column: customer_id\n- PG type: pg_catalog.int4\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.int4', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: false, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - staff_id: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: payment\n- Column: staff_id\n- PG type: pg_catalog.int4\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.int4', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: false, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - rental_id: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: payment\n- Column: rental_id\n- PG type: pg_catalog.int4\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.int4', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: false, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - amount: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: payment\n- Column: amount\n- PG type: pg_catalog.numeric\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.numeric', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: false, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - payment_date: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: payment\n- Column: payment_date\n- PG type: pg_catalog.timestamptz\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.timestamptz', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: false, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - }, - required: [ - 'payment_id', - 'customer_id', - 'staff_id', - 'rental_id', - 'amount', - 'payment_date', - ], - additionalProperties: false, - }, - }, - required: ['columns'], - additionalProperties: false, - }, - 'table_rental': { - type: 'object', - description: 'Table details:\n\n- Schema: public\n- Table: rental', - properties: { - columns: { - type: 'object', - properties: { - rental_id: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: rental\n- Column: rental_id\n- PG type: pg_catalog.int4\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.int4', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: true, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - rental_date: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: rental\n- Column: rental_date\n- PG type: pg_catalog.timestamptz\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.timestamptz', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: false, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - inventory_id: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: rental\n- Column: inventory_id\n- PG type: pg_catalog.int4\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.int4', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: false, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - customer_id: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: rental\n- Column: customer_id\n- PG type: pg_catalog.int4\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.int4', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: false, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - return_date: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: rental\n- Column: return_date\n- PG type: pg_catalog.timestamptz\n- PG kind: base\n- Nullable: true\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.timestamptz', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: false, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - staff_id: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: rental\n- Column: staff_id\n- PG type: pg_catalog.int4\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.int4', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: false, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - last_update: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: rental\n- Column: last_update\n- PG type: pg_catalog.timestamptz\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.timestamptz', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: false, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - }, - required: [ - 'rental_id', - 'rental_date', - 'inventory_id', - 'customer_id', - 'staff_id', - 'last_update', - ], - additionalProperties: false, - }, - }, - required: ['columns'], - additionalProperties: false, - }, - 'table_staff': { - type: 'object', - description: 'Table details:\n\n- Schema: public\n- Table: staff', - properties: { - columns: { - type: 'object', - properties: { - staff_id: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: staff\n- Column: staff_id\n- PG type: pg_catalog.int4\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.int4', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: true, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - first_name: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: staff\n- Column: first_name\n- PG type: pg_catalog.text\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.text', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: false, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - last_name: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: staff\n- Column: last_name\n- PG type: pg_catalog.text\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.text', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: false, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - address_id: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: staff\n- Column: address_id\n- PG type: pg_catalog.int4\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.int4', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: false, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - email: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: staff\n- Column: email\n- PG type: pg_catalog.text\n- PG kind: base\n- Nullable: true\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.text', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: false, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - store_id: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: staff\n- Column: store_id\n- PG type: pg_catalog.int4\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.int4', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: false, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - active: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: staff\n- Column: active\n- PG type: pg_catalog.bool\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.bool', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: false, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - username: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: staff\n- Column: username\n- PG type: pg_catalog.text\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.text', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: false, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - password: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: staff\n- Column: password\n- PG type: pg_catalog.text\n- PG kind: base\n- Nullable: true\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.text', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: false, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - last_update: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: staff\n- Column: last_update\n- PG type: pg_catalog.timestamptz\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.timestamptz', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: false, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - picture: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: staff\n- Column: picture\n- PG type: pg_catalog.bytea\n- PG kind: base\n- Nullable: true\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.bytea', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: false, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - }, - required: [ - 'staff_id', - 'first_name', - 'last_name', - 'address_id', - 'store_id', - 'active', - 'username', - 'last_update', - ], - additionalProperties: false, - }, - }, - required: ['columns'], - additionalProperties: false, - }, - 'table_store': { - type: 'object', - description: 'Table details:\n\n- Schema: public\n- Table: store', - properties: { - columns: { - type: 'object', - properties: { - store_id: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: store\n- Column: store_id\n- PG type: pg_catalog.int4\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.int4', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: true, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - manager_staff_id: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: store\n- Column: manager_staff_id\n- PG type: pg_catalog.int4\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.int4', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: false, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - address_id: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: store\n- Column: address_id\n- PG type: pg_catalog.int4\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.int4', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: false, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - last_update: { - type: 'object', - description: - 'Column details:\n\n- Schema: public\n- Table: store\n- Column: last_update\n- PG type: pg_catalog.timestamptz\n- PG kind: base\n- Nullable: false\n- Generated: NEVER', - properties: { - type: { - $ref: '#/$defs/pg_catalog.timestamptz', - }, - selectable: { - type: 'boolean', - const: true, - }, - includable: { - type: 'boolean', - const: true, - }, - whereable: { - type: 'boolean', - const: true, - }, - isPrimaryKey: { - type: 'boolean', - const: false, - }, - }, - required: [ - 'type', - 'selectable', - 'includable', - 'whereable', - 'isPrimaryKey', - ], - additionalProperties: false, - }, - }, - required: [ - 'store_id', - 'manager_staff_id', - 'address_id', - 'last_update', - ], - additionalProperties: false, - }, - }, - required: ['columns'], - additionalProperties: false, - }, - 'pg_catalog.int4': { - type: 'integer', - minimum: -2147483648, - maximum: 2147483647, - description: 'A PG int4', - }, - 'pg_catalog.text': { - type: 'string', - description: 'A PG text', - }, - 'pg_catalog.bool': { - type: 'boolean', - description: 'A PG bool', - }, - 'pg_catalog.date': { - type: 'string', - format: 'date', - description: 'A PG date', - }, - 'pg_catalog.timestamptz': { - type: 'string', - format: 'date-time', - description: 'A PG timestamptz', - }, - 'pg_catalog.int2': { - type: 'integer', - minimum: -32768, - maximum: 32767, - description: 'A PG int2', - }, - 'pg_catalog.numeric': { - type: 'number', - description: 'A PG numeric', - }, - 'pg_catalog.tsvector': { - type: 'string', - description: 'A PG tsvector', - }, - 'pg_catalog.bpchar': { - type: 'string', - description: 'A PG bpchar', - }, - 'pg_catalog.bytea': { - type: 'string', - description: 'A PG bytea', - }, - 'public.year.domain': { - type: 'integer', - minimum: 1900, - maximum: 2155, - description: 'A PG year', - }, - 'pg_catalog.uuid': { - type: 'string', - format: 'uuid', - description: 'A PG uuid', - }, - 'pg_catalog.jsonb': { - type: 'object', - description: 'A PG jsonb', - }, - 'pg_catalog.json': { - type: 'object', - description: 'A PG json', - }, - 'public.mpaa_rating.enum': { - type: 'string', - enum: ['G', 'PG', 'PG-13', 'R', 'NC-17'], - description: 'The mpaa_rating enum from the public schema', - }, - }, -} as const;