From 15ce2d0751603180afe174afa2ee0a856e330c00 Mon Sep 17 00:00:00 2001 From: Nick Visutsithiwong <2823112+nickvisut@users.noreply.github.com> Date: Tue, 10 Dec 2024 18:40:38 -0800 Subject: [PATCH] rerun db reset after package update --- src/backend/db/zapatos/schema.d.ts | 2016 ++++++++++++++-------------- 1 file changed, 1008 insertions(+), 1008 deletions(-) diff --git a/src/backend/db/zapatos/schema.d.ts b/src/backend/db/zapatos/schema.d.ts index 37f1d972..b49ab1f6 100644 --- a/src/backend/db/zapatos/schema.d.ts +++ b/src/backend/db/zapatos/schema.d.ts @@ -3,7 +3,7 @@ It's been generated by Zapatos, and is liable to be overwritten Zapatos: https://jawj.github.io/zapatos/ -Copyright (C) 2020 - 2022 George MacKerron +Copyright (C) 2020 - 2023 George MacKerron Released under the MIT licence: see LICENCE file */ @@ -29,6 +29,12 @@ declare module 'zapatos/schema' { export namespace account { export type Table = 'account'; export interface Selectable { + /** + * **account.access_token** + * - `text` in database + * - Nullable, no default + */ + access_token: string | null; /** * **account.account_id** * - `uuid` in database @@ -36,17 +42,17 @@ declare module 'zapatos/schema' { */ account_id: string; /** - * **account.user_id** - * - `uuid` in database + * **account.expires_at** + * - `int4` in database * - Nullable, no default */ - user_id: string | null; + expires_at: number | null; /** - * **account.provider_name** + * **account.id_token** * - `text` in database - * - `NOT NULL`, no default + * - Nullable, no default */ - provider_name: string; + id_token: string | null; /** * **account.provider_account_id** * - `text` in database @@ -54,11 +60,11 @@ declare module 'zapatos/schema' { */ provider_account_id: string; /** - * **account.access_token** + * **account.provider_name** * - `text` in database - * - Nullable, no default + * - `NOT NULL`, no default */ - access_token: string | null; + provider_name: string; /** * **account.refresh_token** * - `text` in database @@ -66,37 +72,37 @@ declare module 'zapatos/schema' { */ refresh_token: string | null; /** - * **account.expires_at** - * - `int4` in database + * **account.scope** + * - `text` in database * - Nullable, no default */ - expires_at: number | null; + scope: string | null; /** - * **account.token_type** + * **account.session_state** * - `text` in database * - Nullable, no default */ - token_type: string | null; + session_state: string | null; /** - * **account.scope** + * **account.token_type** * - `text` in database * - Nullable, no default */ - scope: string | null; + token_type: string | null; /** - * **account.id_token** - * - `text` in database + * **account.user_id** + * - `uuid` in database * - Nullable, no default */ - id_token: string | null; + user_id: string | null; + } + export interface JSONSelectable { /** - * **account.session_state** + * **account.access_token** * - `text` in database * - Nullable, no default */ - session_state: string | null; - } - export interface JSONSelectable { + access_token: string | null; /** * **account.account_id** * - `uuid` in database @@ -104,17 +110,17 @@ declare module 'zapatos/schema' { */ account_id: string; /** - * **account.user_id** - * - `uuid` in database + * **account.expires_at** + * - `int4` in database * - Nullable, no default */ - user_id: string | null; + expires_at: number | null; /** - * **account.provider_name** + * **account.id_token** * - `text` in database - * - `NOT NULL`, no default + * - Nullable, no default */ - provider_name: string; + id_token: string | null; /** * **account.provider_account_id** * - `text` in database @@ -122,11 +128,11 @@ declare module 'zapatos/schema' { */ provider_account_id: string; /** - * **account.access_token** + * **account.provider_name** * - `text` in database - * - Nullable, no default + * - `NOT NULL`, no default */ - access_token: string | null; + provider_name: string; /** * **account.refresh_token** * - `text` in database @@ -134,37 +140,37 @@ declare module 'zapatos/schema' { */ refresh_token: string | null; /** - * **account.expires_at** - * - `int4` in database + * **account.scope** + * - `text` in database * - Nullable, no default */ - expires_at: number | null; + scope: string | null; /** - * **account.token_type** + * **account.session_state** * - `text` in database * - Nullable, no default */ - token_type: string | null; + session_state: string | null; /** - * **account.scope** + * **account.token_type** * - `text` in database * - Nullable, no default */ - scope: string | null; + token_type: string | null; /** - * **account.id_token** - * - `text` in database + * **account.user_id** + * - `uuid` in database * - Nullable, no default */ - id_token: string | null; + user_id: string | null; + } + export interface Whereable { /** - * **account.session_state** + * **account.access_token** * - `text` in database * - Nullable, no default */ - session_state: string | null; - } - export interface Whereable { + access_token?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; /** * **account.account_id** * - `uuid` in database @@ -172,17 +178,17 @@ declare module 'zapatos/schema' { */ account_id?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; /** - * **account.user_id** - * - `uuid` in database + * **account.expires_at** + * - `int4` in database * - Nullable, no default */ - user_id?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; + expires_at?: number | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; /** - * **account.provider_name** + * **account.id_token** * - `text` in database - * - `NOT NULL`, no default + * - Nullable, no default */ - provider_name?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; + id_token?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; /** * **account.provider_account_id** * - `text` in database @@ -190,11 +196,11 @@ declare module 'zapatos/schema' { */ provider_account_id?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; /** - * **account.access_token** + * **account.provider_name** * - `text` in database - * - Nullable, no default + * - `NOT NULL`, no default */ - access_token?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; + provider_name?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; /** * **account.refresh_token** * - `text` in database @@ -202,37 +208,37 @@ declare module 'zapatos/schema' { */ refresh_token?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; /** - * **account.expires_at** - * - `int4` in database + * **account.scope** + * - `text` in database * - Nullable, no default */ - expires_at?: number | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; + scope?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; /** - * **account.token_type** + * **account.session_state** * - `text` in database * - Nullable, no default */ - token_type?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; + session_state?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; /** - * **account.scope** + * **account.token_type** * - `text` in database * - Nullable, no default */ - scope?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; + token_type?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; /** - * **account.id_token** - * - `text` in database + * **account.user_id** + * - `uuid` in database * - Nullable, no default */ - id_token?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; + user_id?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; + } + export interface Insertable { /** - * **account.session_state** + * **account.access_token** * - `text` in database * - Nullable, no default */ - session_state?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; - } - export interface Insertable { + access_token?: string | db.Parameter | null | db.DefaultType | db.SQLFragment; /** * **account.account_id** * - `uuid` in database @@ -240,17 +246,17 @@ declare module 'zapatos/schema' { */ account_id?: string | db.Parameter | db.DefaultType | db.SQLFragment; /** - * **account.user_id** - * - `uuid` in database + * **account.expires_at** + * - `int4` in database * - Nullable, no default */ - user_id?: string | db.Parameter | null | db.DefaultType | db.SQLFragment; + expires_at?: number | db.Parameter | null | db.DefaultType | db.SQLFragment; /** - * **account.provider_name** + * **account.id_token** * - `text` in database - * - `NOT NULL`, no default + * - Nullable, no default */ - provider_name: string | db.Parameter | db.SQLFragment; + id_token?: string | db.Parameter | null | db.DefaultType | db.SQLFragment; /** * **account.provider_account_id** * - `text` in database @@ -258,11 +264,11 @@ declare module 'zapatos/schema' { */ provider_account_id: string | db.Parameter | db.SQLFragment; /** - * **account.access_token** + * **account.provider_name** * - `text` in database - * - Nullable, no default + * - `NOT NULL`, no default */ - access_token?: string | db.Parameter | null | db.DefaultType | db.SQLFragment; + provider_name: string | db.Parameter | db.SQLFragment; /** * **account.refresh_token** * - `text` in database @@ -270,37 +276,37 @@ declare module 'zapatos/schema' { */ refresh_token?: string | db.Parameter | null | db.DefaultType | db.SQLFragment; /** - * **account.expires_at** - * - `int4` in database + * **account.scope** + * - `text` in database * - Nullable, no default */ - expires_at?: number | db.Parameter | null | db.DefaultType | db.SQLFragment; + scope?: string | db.Parameter | null | db.DefaultType | db.SQLFragment; /** - * **account.token_type** + * **account.session_state** * - `text` in database * - Nullable, no default */ - token_type?: string | db.Parameter | null | db.DefaultType | db.SQLFragment; + session_state?: string | db.Parameter | null | db.DefaultType | db.SQLFragment; /** - * **account.scope** + * **account.token_type** * - `text` in database * - Nullable, no default */ - scope?: string | db.Parameter | null | db.DefaultType | db.SQLFragment; + token_type?: string | db.Parameter | null | db.DefaultType | db.SQLFragment; /** - * **account.id_token** - * - `text` in database + * **account.user_id** + * - `uuid` in database * - Nullable, no default */ - id_token?: string | db.Parameter | null | db.DefaultType | db.SQLFragment; + user_id?: string | db.Parameter | null | db.DefaultType | db.SQLFragment; + } + export interface Updatable { /** - * **account.session_state** + * **account.access_token** * - `text` in database * - Nullable, no default */ - session_state?: string | db.Parameter | null | db.DefaultType | db.SQLFragment; - } - export interface Updatable { + access_token?: string | db.Parameter | null | db.DefaultType | db.SQLFragment | db.SQLFragment | null | db.DefaultType | db.SQLFragment>; /** * **account.account_id** * - `uuid` in database @@ -308,17 +314,17 @@ declare module 'zapatos/schema' { */ account_id?: string | db.Parameter | db.DefaultType | db.SQLFragment | db.SQLFragment | db.DefaultType | db.SQLFragment>; /** - * **account.user_id** - * - `uuid` in database + * **account.expires_at** + * - `int4` in database * - Nullable, no default */ - user_id?: string | db.Parameter | null | db.DefaultType | db.SQLFragment | db.SQLFragment | null | db.DefaultType | db.SQLFragment>; + expires_at?: number | db.Parameter | null | db.DefaultType | db.SQLFragment | db.SQLFragment | null | db.DefaultType | db.SQLFragment>; /** - * **account.provider_name** + * **account.id_token** * - `text` in database - * - `NOT NULL`, no default + * - Nullable, no default */ - provider_name?: string | db.Parameter | db.SQLFragment | db.SQLFragment | db.SQLFragment>; + id_token?: string | db.Parameter | null | db.DefaultType | db.SQLFragment | db.SQLFragment | null | db.DefaultType | db.SQLFragment>; /** * **account.provider_account_id** * - `text` in database @@ -326,11 +332,11 @@ declare module 'zapatos/schema' { */ provider_account_id?: string | db.Parameter | db.SQLFragment | db.SQLFragment | db.SQLFragment>; /** - * **account.access_token** + * **account.provider_name** * - `text` in database - * - Nullable, no default + * - `NOT NULL`, no default */ - access_token?: string | db.Parameter | null | db.DefaultType | db.SQLFragment | db.SQLFragment | null | db.DefaultType | db.SQLFragment>; + provider_name?: string | db.Parameter | db.SQLFragment | db.SQLFragment | db.SQLFragment>; /** * **account.refresh_token** * - `text` in database @@ -338,35 +344,29 @@ declare module 'zapatos/schema' { */ refresh_token?: string | db.Parameter | null | db.DefaultType | db.SQLFragment | db.SQLFragment | null | db.DefaultType | db.SQLFragment>; /** - * **account.expires_at** - * - `int4` in database - * - Nullable, no default - */ - expires_at?: number | db.Parameter | null | db.DefaultType | db.SQLFragment | db.SQLFragment | null | db.DefaultType | db.SQLFragment>; - /** - * **account.token_type** + * **account.scope** * - `text` in database * - Nullable, no default */ - token_type?: string | db.Parameter | null | db.DefaultType | db.SQLFragment | db.SQLFragment | null | db.DefaultType | db.SQLFragment>; + scope?: string | db.Parameter | null | db.DefaultType | db.SQLFragment | db.SQLFragment | null | db.DefaultType | db.SQLFragment>; /** - * **account.scope** + * **account.session_state** * - `text` in database * - Nullable, no default */ - scope?: string | db.Parameter | null | db.DefaultType | db.SQLFragment | db.SQLFragment | null | db.DefaultType | db.SQLFragment>; + session_state?: string | db.Parameter | null | db.DefaultType | db.SQLFragment | db.SQLFragment | null | db.DefaultType | db.SQLFragment>; /** - * **account.id_token** + * **account.token_type** * - `text` in database * - Nullable, no default */ - id_token?: string | db.Parameter | null | db.DefaultType | db.SQLFragment | db.SQLFragment | null | db.DefaultType | db.SQLFragment>; + token_type?: string | db.Parameter | null | db.DefaultType | db.SQLFragment | db.SQLFragment | null | db.DefaultType | db.SQLFragment>; /** - * **account.session_state** - * - `text` in database + * **account.user_id** + * - `uuid` in database * - Nullable, no default */ - session_state?: string | db.Parameter | null | db.DefaultType | db.SQLFragment | db.SQLFragment | null | db.DefaultType | db.SQLFragment>; + user_id?: string | db.Parameter | null | db.DefaultType | db.SQLFragment | db.SQLFragment | null | db.DefaultType | db.SQLFragment>; } export type UniqueIndex = 'account_pkey' | 'account_provider_name_provider_account_id_key'; export type Column = keyof Selectable; @@ -382,6 +382,18 @@ declare module 'zapatos/schema' { export namespace benchmark { export type Table = 'benchmark'; export interface Selectable { + /** + * **benchmark.attempts_per_trial** + * - `int2` in database + * - Nullable, no default + */ + attempts_per_trial: number | null; + /** + * **benchmark.baseline_level** + * - `int2` in database + * - `NOT NULL`, no default + */ + baseline_level: number; /** * **benchmark.benchmark_id** * - `uuid` in database @@ -389,17 +401,17 @@ declare module 'zapatos/schema' { */ benchmark_id: string; /** - * **benchmark.goal_id** - * - `uuid` in database + * **benchmark.created_at** + * - `timestamptz` in database + * - `NOT NULL`, default: `now()` + */ + created_at: Date; + /** + * **benchmark.current_level** + * - `int2` in database * - Nullable, no default */ - goal_id: string | null; - /** - * **benchmark.status** - * - `text` in database - * - `NOT NULL`, default: `'In Progress'::text` - */ - status: string; + current_level: number | null; /** * **benchmark.description** * - `text` in database @@ -407,11 +419,17 @@ declare module 'zapatos/schema' { */ description: string; /** - * **benchmark.setup** + * **benchmark.frequency** * - `text` in database - * - `NOT NULL`, no default + * - `NOT NULL`, default: `''::text` */ - setup: string; + frequency: string; + /** + * **benchmark.goal_id** + * - `uuid` in database + * - Nullable, no default + */ + goal_id: string | null; /** * **benchmark.instructions** * - `text` in database @@ -425,35 +443,37 @@ declare module 'zapatos/schema' { */ materials: string; /** - * **benchmark.frequency** + * **benchmark.metric_name** * - `text` in database - * - `NOT NULL`, default: `''::text` + * - `NOT NULL`, no default */ - frequency: string; + metric_name: string; /** - * **benchmark.target_level** + * **benchmark.number_of_trials** * - `int2` in database - * - `NOT NULL`, no default + * - Nullable, no default */ - target_level: number; + number_of_trials: number | null; /** - * **benchmark.baseline_level** - * - `int2` in database + * **benchmark.setup** + * - `text` in database * - `NOT NULL`, no default */ - baseline_level: number; + setup: string; /** - * **benchmark.current_level** - * - `int2` in database - * - Nullable, no default + * **benchmark.status** + * - `text` in database + * - `NOT NULL`, default: `'In Progress'::text` */ - current_level: number | null; + status: string; /** - * **benchmark.metric_name** - * - `text` in database + * **benchmark.target_level** + * - `int2` in database * - `NOT NULL`, no default */ - metric_name: string; + target_level: number; + } + export interface JSONSelectable { /** * **benchmark.attempts_per_trial** * - `int2` in database @@ -461,19 +481,11 @@ declare module 'zapatos/schema' { */ attempts_per_trial: number | null; /** - * **benchmark.number_of_trials** + * **benchmark.baseline_level** * - `int2` in database - * - Nullable, no default - */ - number_of_trials: number | null; - /** - * **benchmark.created_at** - * - `timestamptz` in database - * - `NOT NULL`, default: `now()` + * - `NOT NULL`, no default */ - created_at: Date; - } - export interface JSONSelectable { + baseline_level: number; /** * **benchmark.benchmark_id** * - `uuid` in database @@ -481,17 +493,17 @@ declare module 'zapatos/schema' { */ benchmark_id: string; /** - * **benchmark.goal_id** - * - `uuid` in database - * - Nullable, no default + * **benchmark.created_at** + * - `timestamptz` in database + * - `NOT NULL`, default: `now()` */ - goal_id: string | null; + created_at: db.TimestampTzString; /** - * **benchmark.status** - * - `text` in database - * - `NOT NULL`, default: `'In Progress'::text` + * **benchmark.current_level** + * - `int2` in database + * - Nullable, no default */ - status: string; + current_level: number | null; /** * **benchmark.description** * - `text` in database @@ -499,11 +511,17 @@ declare module 'zapatos/schema' { */ description: string; /** - * **benchmark.setup** + * **benchmark.frequency** * - `text` in database - * - `NOT NULL`, no default + * - `NOT NULL`, default: `''::text` */ - setup: string; + frequency: string; + /** + * **benchmark.goal_id** + * - `uuid` in database + * - Nullable, no default + */ + goal_id: string | null; /** * **benchmark.instructions** * - `text` in database @@ -517,55 +535,49 @@ declare module 'zapatos/schema' { */ materials: string; /** - * **benchmark.frequency** + * **benchmark.metric_name** * - `text` in database - * - `NOT NULL`, default: `''::text` + * - `NOT NULL`, no default */ - frequency: string; + metric_name: string; /** - * **benchmark.target_level** + * **benchmark.number_of_trials** * - `int2` in database - * - `NOT NULL`, no default + * - Nullable, no default */ - target_level: number; + number_of_trials: number | null; /** - * **benchmark.baseline_level** - * - `int2` in database + * **benchmark.setup** + * - `text` in database * - `NOT NULL`, no default */ - baseline_level: number; + setup: string; /** - * **benchmark.current_level** - * - `int2` in database - * - Nullable, no default + * **benchmark.status** + * - `text` in database + * - `NOT NULL`, default: `'In Progress'::text` */ - current_level: number | null; + status: string; /** - * **benchmark.metric_name** - * - `text` in database + * **benchmark.target_level** + * - `int2` in database * - `NOT NULL`, no default */ - metric_name: string; + target_level: number; + } + export interface Whereable { /** * **benchmark.attempts_per_trial** * - `int2` in database * - Nullable, no default */ - attempts_per_trial: number | null; + attempts_per_trial?: number | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; /** - * **benchmark.number_of_trials** + * **benchmark.baseline_level** * - `int2` in database - * - Nullable, no default - */ - number_of_trials: number | null; - /** - * **benchmark.created_at** - * - `timestamptz` in database - * - `NOT NULL`, default: `now()` + * - `NOT NULL`, no default */ - created_at: db.TimestampTzString; - } - export interface Whereable { + baseline_level?: number | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; /** * **benchmark.benchmark_id** * - `uuid` in database @@ -573,17 +585,17 @@ declare module 'zapatos/schema' { */ benchmark_id?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; /** - * **benchmark.goal_id** - * - `uuid` in database - * - Nullable, no default + * **benchmark.created_at** + * - `timestamptz` in database + * - `NOT NULL`, default: `now()` */ - goal_id?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; + created_at?: (db.TimestampTzString | Date) | db.Parameter<(db.TimestampTzString | Date)> | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; /** - * **benchmark.status** - * - `text` in database - * - `NOT NULL`, default: `'In Progress'::text` + * **benchmark.current_level** + * - `int2` in database + * - Nullable, no default */ - status?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; + current_level?: number | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; /** * **benchmark.description** * - `text` in database @@ -591,11 +603,17 @@ declare module 'zapatos/schema' { */ description?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; /** - * **benchmark.setup** + * **benchmark.frequency** * - `text` in database - * - `NOT NULL`, no default + * - `NOT NULL`, default: `''::text` */ - setup?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; + frequency?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; + /** + * **benchmark.goal_id** + * - `uuid` in database + * - Nullable, no default + */ + goal_id?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; /** * **benchmark.instructions** * - `text` in database @@ -609,55 +627,49 @@ declare module 'zapatos/schema' { */ materials?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; /** - * **benchmark.frequency** + * **benchmark.metric_name** * - `text` in database - * - `NOT NULL`, default: `''::text` + * - `NOT NULL`, no default */ - frequency?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; + metric_name?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; /** - * **benchmark.target_level** + * **benchmark.number_of_trials** * - `int2` in database - * - `NOT NULL`, no default + * - Nullable, no default */ - target_level?: number | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; + number_of_trials?: number | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; /** - * **benchmark.baseline_level** - * - `int2` in database + * **benchmark.setup** + * - `text` in database * - `NOT NULL`, no default */ - baseline_level?: number | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; + setup?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; /** - * **benchmark.current_level** - * - `int2` in database - * - Nullable, no default + * **benchmark.status** + * - `text` in database + * - `NOT NULL`, default: `'In Progress'::text` */ - current_level?: number | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; + status?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; /** - * **benchmark.metric_name** - * - `text` in database + * **benchmark.target_level** + * - `int2` in database * - `NOT NULL`, no default */ - metric_name?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; + target_level?: number | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; + } + export interface Insertable { /** * **benchmark.attempts_per_trial** * - `int2` in database * - Nullable, no default */ - attempts_per_trial?: number | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; + attempts_per_trial?: number | db.Parameter | null | db.DefaultType | db.SQLFragment; /** - * **benchmark.number_of_trials** + * **benchmark.baseline_level** * - `int2` in database - * - Nullable, no default - */ - number_of_trials?: number | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; - /** - * **benchmark.created_at** - * - `timestamptz` in database - * - `NOT NULL`, default: `now()` + * - `NOT NULL`, no default */ - created_at?: (db.TimestampTzString | Date) | db.Parameter<(db.TimestampTzString | Date)> | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; - } - export interface Insertable { + baseline_level: number | db.Parameter | db.SQLFragment; /** * **benchmark.benchmark_id** * - `uuid` in database @@ -665,17 +677,17 @@ declare module 'zapatos/schema' { */ benchmark_id?: string | db.Parameter | db.DefaultType | db.SQLFragment; /** - * **benchmark.goal_id** - * - `uuid` in database - * - Nullable, no default + * **benchmark.created_at** + * - `timestamptz` in database + * - `NOT NULL`, default: `now()` */ - goal_id?: string | db.Parameter | null | db.DefaultType | db.SQLFragment; + created_at?: (db.TimestampTzString | Date) | db.Parameter<(db.TimestampTzString | Date)> | db.DefaultType | db.SQLFragment; /** - * **benchmark.status** - * - `text` in database - * - `NOT NULL`, default: `'In Progress'::text` + * **benchmark.current_level** + * - `int2` in database + * - Nullable, no default */ - status?: string | db.Parameter | db.DefaultType | db.SQLFragment; + current_level?: number | db.Parameter | null | db.DefaultType | db.SQLFragment; /** * **benchmark.description** * - `text` in database @@ -683,11 +695,17 @@ declare module 'zapatos/schema' { */ description: string | db.Parameter | db.SQLFragment; /** - * **benchmark.setup** + * **benchmark.frequency** * - `text` in database - * - `NOT NULL`, no default + * - `NOT NULL`, default: `''::text` */ - setup: string | db.Parameter | db.SQLFragment; + frequency?: string | db.Parameter | db.DefaultType | db.SQLFragment; + /** + * **benchmark.goal_id** + * - `uuid` in database + * - Nullable, no default + */ + goal_id?: string | db.Parameter | null | db.DefaultType | db.SQLFragment; /** * **benchmark.instructions** * - `text` in database @@ -701,55 +719,49 @@ declare module 'zapatos/schema' { */ materials?: string | db.Parameter | db.DefaultType | db.SQLFragment; /** - * **benchmark.frequency** + * **benchmark.metric_name** * - `text` in database - * - `NOT NULL`, default: `''::text` + * - `NOT NULL`, no default */ - frequency?: string | db.Parameter | db.DefaultType | db.SQLFragment; + metric_name: string | db.Parameter | db.SQLFragment; /** - * **benchmark.target_level** + * **benchmark.number_of_trials** * - `int2` in database - * - `NOT NULL`, no default + * - Nullable, no default */ - target_level: number | db.Parameter | db.SQLFragment; + number_of_trials?: number | db.Parameter | null | db.DefaultType | db.SQLFragment; /** - * **benchmark.baseline_level** - * - `int2` in database + * **benchmark.setup** + * - `text` in database * - `NOT NULL`, no default */ - baseline_level: number | db.Parameter | db.SQLFragment; + setup: string | db.Parameter | db.SQLFragment; /** - * **benchmark.current_level** - * - `int2` in database - * - Nullable, no default + * **benchmark.status** + * - `text` in database + * - `NOT NULL`, default: `'In Progress'::text` */ - current_level?: number | db.Parameter | null | db.DefaultType | db.SQLFragment; + status?: string | db.Parameter | db.DefaultType | db.SQLFragment; /** - * **benchmark.metric_name** - * - `text` in database + * **benchmark.target_level** + * - `int2` in database * - `NOT NULL`, no default */ - metric_name: string | db.Parameter | db.SQLFragment; + target_level: number | db.Parameter | db.SQLFragment; + } + export interface Updatable { /** * **benchmark.attempts_per_trial** * - `int2` in database * - Nullable, no default */ - attempts_per_trial?: number | db.Parameter | null | db.DefaultType | db.SQLFragment; + attempts_per_trial?: number | db.Parameter | null | db.DefaultType | db.SQLFragment | db.SQLFragment | null | db.DefaultType | db.SQLFragment>; /** - * **benchmark.number_of_trials** + * **benchmark.baseline_level** * - `int2` in database - * - Nullable, no default - */ - number_of_trials?: number | db.Parameter | null | db.DefaultType | db.SQLFragment; - /** - * **benchmark.created_at** - * - `timestamptz` in database - * - `NOT NULL`, default: `now()` + * - `NOT NULL`, no default */ - created_at?: (db.TimestampTzString | Date) | db.Parameter<(db.TimestampTzString | Date)> | db.DefaultType | db.SQLFragment; - } - export interface Updatable { + baseline_level?: number | db.Parameter | db.SQLFragment | db.SQLFragment | db.SQLFragment>; /** * **benchmark.benchmark_id** * - `uuid` in database @@ -757,17 +769,17 @@ declare module 'zapatos/schema' { */ benchmark_id?: string | db.Parameter | db.DefaultType | db.SQLFragment | db.SQLFragment | db.DefaultType | db.SQLFragment>; /** - * **benchmark.goal_id** - * - `uuid` in database - * - Nullable, no default + * **benchmark.created_at** + * - `timestamptz` in database + * - `NOT NULL`, default: `now()` */ - goal_id?: string | db.Parameter | null | db.DefaultType | db.SQLFragment | db.SQLFragment | null | db.DefaultType | db.SQLFragment>; + created_at?: (db.TimestampTzString | Date) | db.Parameter<(db.TimestampTzString | Date)> | db.DefaultType | db.SQLFragment | db.SQLFragment | db.DefaultType | db.SQLFragment>; /** - * **benchmark.status** - * - `text` in database - * - `NOT NULL`, default: `'In Progress'::text` + * **benchmark.current_level** + * - `int2` in database + * - Nullable, no default */ - status?: string | db.Parameter | db.DefaultType | db.SQLFragment | db.SQLFragment | db.DefaultType | db.SQLFragment>; + current_level?: number | db.Parameter | null | db.DefaultType | db.SQLFragment | db.SQLFragment | null | db.DefaultType | db.SQLFragment>; /** * **benchmark.description** * - `text` in database @@ -775,11 +787,17 @@ declare module 'zapatos/schema' { */ description?: string | db.Parameter | db.SQLFragment | db.SQLFragment | db.SQLFragment>; /** - * **benchmark.setup** + * **benchmark.frequency** * - `text` in database - * - `NOT NULL`, no default + * - `NOT NULL`, default: `''::text` */ - setup?: string | db.Parameter | db.SQLFragment | db.SQLFragment | db.SQLFragment>; + frequency?: string | db.Parameter | db.DefaultType | db.SQLFragment | db.SQLFragment | db.DefaultType | db.SQLFragment>; + /** + * **benchmark.goal_id** + * - `uuid` in database + * - Nullable, no default + */ + goal_id?: string | db.Parameter | null | db.DefaultType | db.SQLFragment | db.SQLFragment | null | db.DefaultType | db.SQLFragment>; /** * **benchmark.instructions** * - `text` in database @@ -793,53 +811,35 @@ declare module 'zapatos/schema' { */ materials?: string | db.Parameter | db.DefaultType | db.SQLFragment | db.SQLFragment | db.DefaultType | db.SQLFragment>; /** - * **benchmark.frequency** + * **benchmark.metric_name** * - `text` in database - * - `NOT NULL`, default: `''::text` - */ - frequency?: string | db.Parameter | db.DefaultType | db.SQLFragment | db.SQLFragment | db.DefaultType | db.SQLFragment>; - /** - * **benchmark.target_level** - * - `int2` in database * - `NOT NULL`, no default */ - target_level?: number | db.Parameter | db.SQLFragment | db.SQLFragment | db.SQLFragment>; - /** - * **benchmark.baseline_level** - * - `int2` in database - * - `NOT NULL`, no default - */ - baseline_level?: number | db.Parameter | db.SQLFragment | db.SQLFragment | db.SQLFragment>; + metric_name?: string | db.Parameter | db.SQLFragment | db.SQLFragment | db.SQLFragment>; /** - * **benchmark.current_level** + * **benchmark.number_of_trials** * - `int2` in database * - Nullable, no default */ - current_level?: number | db.Parameter | null | db.DefaultType | db.SQLFragment | db.SQLFragment | null | db.DefaultType | db.SQLFragment>; + number_of_trials?: number | db.Parameter | null | db.DefaultType | db.SQLFragment | db.SQLFragment | null | db.DefaultType | db.SQLFragment>; /** - * **benchmark.metric_name** + * **benchmark.setup** * - `text` in database * - `NOT NULL`, no default */ - metric_name?: string | db.Parameter | db.SQLFragment | db.SQLFragment | db.SQLFragment>; + setup?: string | db.Parameter | db.SQLFragment | db.SQLFragment | db.SQLFragment>; /** - * **benchmark.attempts_per_trial** - * - `int2` in database - * - Nullable, no default + * **benchmark.status** + * - `text` in database + * - `NOT NULL`, default: `'In Progress'::text` */ - attempts_per_trial?: number | db.Parameter | null | db.DefaultType | db.SQLFragment | db.SQLFragment | null | db.DefaultType | db.SQLFragment>; + status?: string | db.Parameter | db.DefaultType | db.SQLFragment | db.SQLFragment | db.DefaultType | db.SQLFragment>; /** - * **benchmark.number_of_trials** + * **benchmark.target_level** * - `int2` in database - * - Nullable, no default - */ - number_of_trials?: number | db.Parameter | null | db.DefaultType | db.SQLFragment | db.SQLFragment | null | db.DefaultType | db.SQLFragment>; - /** - * **benchmark.created_at** - * - `timestamptz` in database - * - `NOT NULL`, default: `now()` + * - `NOT NULL`, no default */ - created_at?: (db.TimestampTzString | Date) | db.Parameter<(db.TimestampTzString | Date)> | db.DefaultType | db.SQLFragment | db.SQLFragment | db.DefaultType | db.SQLFragment>; + target_level?: number | db.Parameter | db.SQLFragment | db.SQLFragment | db.SQLFragment>; } export type UniqueIndex = 'benchmark_pkey'; export type Column = keyof Selectable; @@ -855,18 +855,6 @@ declare module 'zapatos/schema' { export namespace file { export type Table = 'file'; export interface Selectable { - /** - * **file.file_id** - * - `uuid` in database - * - `NOT NULL`, default: `uuid_generate_v4()` - */ - file_id: string; - /** - * **file.name** - * - `text` in database - * - `NOT NULL`, no default - */ - name: string; /** * **file.content_type** * - `text` in database @@ -874,25 +862,17 @@ declare module 'zapatos/schema' { */ content_type: string; /** - * **file.ext_s3_path** - * - `text` in database - * - `NOT NULL`, no default - */ - ext_s3_path: string; - /** - * **file.uploaded_by_user_id** - * - `uuid` in database - * - Nullable, no default - */ - uploaded_by_user_id: string | null; - /** * **file.created_at** * - `timestamptz` in database * - `NOT NULL`, default: `now()` */ created_at: Date; - } - export interface JSONSelectable { + /** + * **file.ext_s3_path** + * - `text` in database + * - `NOT NULL`, no default + */ + ext_s3_path: string; /** * **file.file_id** * - `uuid` in database @@ -905,6 +885,14 @@ declare module 'zapatos/schema' { * - `NOT NULL`, no default */ name: string; + /** + * **file.uploaded_by_user_id** + * - `uuid` in database + * - Nullable, no default + */ + uploaded_by_user_id: string | null; + } + export interface JSONSelectable { /** * **file.content_type** * - `text` in database @@ -912,25 +900,55 @@ declare module 'zapatos/schema' { */ content_type: string; /** + * **file.created_at** + * - `timestamptz` in database + * - `NOT NULL`, default: `now()` + */ + created_at: db.TimestampTzString; + /** * **file.ext_s3_path** * - `text` in database * - `NOT NULL`, no default */ ext_s3_path: string; /** + * **file.file_id** + * - `uuid` in database + * - `NOT NULL`, default: `uuid_generate_v4()` + */ + file_id: string; + /** + * **file.name** + * - `text` in database + * - `NOT NULL`, no default + */ + name: string; + /** * **file.uploaded_by_user_id** * - `uuid` in database * - Nullable, no default */ uploaded_by_user_id: string | null; + } + export interface Whereable { + /** + * **file.content_type** + * - `text` in database + * - `NOT NULL`, no default + */ + content_type?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; /** * **file.created_at** * - `timestamptz` in database * - `NOT NULL`, default: `now()` */ - created_at: db.TimestampTzString; - } - export interface Whereable { + created_at?: (db.TimestampTzString | Date) | db.Parameter<(db.TimestampTzString | Date)> | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; + /** + * **file.ext_s3_path** + * - `text` in database + * - `NOT NULL`, no default + */ + ext_s3_path?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; /** * **file.file_id** * - `uuid` in database @@ -944,31 +962,31 @@ declare module 'zapatos/schema' { */ name?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; /** - * **file.content_type** - * - `text` in database - * - `NOT NULL`, no default - */ - content_type?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; - /** - * **file.ext_s3_path** - * - `text` in database - * - `NOT NULL`, no default - */ - ext_s3_path?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; - /** * **file.uploaded_by_user_id** * - `uuid` in database * - Nullable, no default */ uploaded_by_user_id?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; + } + export interface Insertable { + /** + * **file.content_type** + * - `text` in database + * - `NOT NULL`, no default + */ + content_type: string | db.Parameter | db.SQLFragment; /** * **file.created_at** * - `timestamptz` in database * - `NOT NULL`, default: `now()` */ - created_at?: (db.TimestampTzString | Date) | db.Parameter<(db.TimestampTzString | Date)> | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; - } - export interface Insertable { + created_at?: (db.TimestampTzString | Date) | db.Parameter<(db.TimestampTzString | Date)> | db.DefaultType | db.SQLFragment; + /** + * **file.ext_s3_path** + * - `text` in database + * - `NOT NULL`, no default + */ + ext_s3_path: string | db.Parameter | db.SQLFragment; /** * **file.file_id** * - `uuid` in database @@ -982,31 +1000,31 @@ declare module 'zapatos/schema' { */ name: string | db.Parameter | db.SQLFragment; /** - * **file.content_type** - * - `text` in database - * - `NOT NULL`, no default - */ - content_type: string | db.Parameter | db.SQLFragment; - /** - * **file.ext_s3_path** - * - `text` in database - * - `NOT NULL`, no default - */ - ext_s3_path: string | db.Parameter | db.SQLFragment; - /** * **file.uploaded_by_user_id** * - `uuid` in database * - Nullable, no default */ uploaded_by_user_id?: string | db.Parameter | null | db.DefaultType | db.SQLFragment; + } + export interface Updatable { + /** + * **file.content_type** + * - `text` in database + * - `NOT NULL`, no default + */ + content_type?: string | db.Parameter | db.SQLFragment | db.SQLFragment | db.SQLFragment>; /** * **file.created_at** * - `timestamptz` in database * - `NOT NULL`, default: `now()` */ - created_at?: (db.TimestampTzString | Date) | db.Parameter<(db.TimestampTzString | Date)> | db.DefaultType | db.SQLFragment; - } - export interface Updatable { + created_at?: (db.TimestampTzString | Date) | db.Parameter<(db.TimestampTzString | Date)> | db.DefaultType | db.SQLFragment | db.SQLFragment | db.DefaultType | db.SQLFragment>; + /** + * **file.ext_s3_path** + * - `text` in database + * - `NOT NULL`, no default + */ + ext_s3_path?: string | db.Parameter | db.SQLFragment | db.SQLFragment | db.SQLFragment>; /** * **file.file_id** * - `uuid` in database @@ -1020,29 +1038,11 @@ declare module 'zapatos/schema' { */ name?: string | db.Parameter | db.SQLFragment | db.SQLFragment | db.SQLFragment>; /** - * **file.content_type** - * - `text` in database - * - `NOT NULL`, no default - */ - content_type?: string | db.Parameter | db.SQLFragment | db.SQLFragment | db.SQLFragment>; - /** - * **file.ext_s3_path** - * - `text` in database - * - `NOT NULL`, no default - */ - ext_s3_path?: string | db.Parameter | db.SQLFragment | db.SQLFragment | db.SQLFragment>; - /** * **file.uploaded_by_user_id** * - `uuid` in database * - Nullable, no default */ uploaded_by_user_id?: string | db.Parameter | null | db.DefaultType | db.SQLFragment | db.SQLFragment | null | db.DefaultType | db.SQLFragment>; - /** - * **file.created_at** - * - `timestamptz` in database - * - `NOT NULL`, default: `now()` - */ - created_at?: (db.TimestampTzString | Date) | db.Parameter<(db.TimestampTzString | Date)> | db.DefaultType | db.SQLFragment | db.SQLFragment | db.DefaultType | db.SQLFragment>; } export type UniqueIndex = 'file_ext_s3_path_key' | 'file_pkey'; export type Column = keyof Selectable; @@ -1058,24 +1058,6 @@ declare module 'zapatos/schema' { export namespace goal { export type Table = 'goal'; export interface Selectable { - /** - * **goal.goal_id** - * - `uuid` in database - * - `NOT NULL`, default: `uuid_generate_v4()` - */ - goal_id: string; - /** - * **goal.iep_id** - * - `uuid` in database - * - Nullable, no default - */ - iep_id: string | null; - /** - * **goal.description** - * - `text` in database - * - `NOT NULL`, no default - */ - description: string; /** * **goal.category** * - `text` in database @@ -1088,8 +1070,12 @@ declare module 'zapatos/schema' { * - `NOT NULL`, default: `now()` */ created_at: Date; - } - export interface JSONSelectable { + /** + * **goal.description** + * - `text` in database + * - `NOT NULL`, no default + */ + description: string; /** * **goal.goal_id** * - `uuid` in database @@ -1102,12 +1088,8 @@ declare module 'zapatos/schema' { * - Nullable, no default */ iep_id: string | null; - /** - * **goal.description** - * - `text` in database - * - `NOT NULL`, no default - */ - description: string; + } + export interface JSONSelectable { /** * **goal.category** * - `text` in database @@ -1120,26 +1102,26 @@ declare module 'zapatos/schema' { * - `NOT NULL`, default: `now()` */ created_at: db.TimestampTzString; - } - export interface Whereable { + /** + * **goal.description** + * - `text` in database + * - `NOT NULL`, no default + */ + description: string; /** * **goal.goal_id** * - `uuid` in database * - `NOT NULL`, default: `uuid_generate_v4()` */ - goal_id?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; + goal_id: string; /** * **goal.iep_id** * - `uuid` in database * - Nullable, no default */ - iep_id?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; - /** - * **goal.description** - * - `text` in database - * - `NOT NULL`, no default - */ - description?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; + iep_id: string | null; + } + export interface Whereable { /** * **goal.category** * - `text` in database @@ -1152,26 +1134,26 @@ declare module 'zapatos/schema' { * - `NOT NULL`, default: `now()` */ created_at?: (db.TimestampTzString | Date) | db.Parameter<(db.TimestampTzString | Date)> | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; - } - export interface Insertable { + /** + * **goal.description** + * - `text` in database + * - `NOT NULL`, no default + */ + description?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; /** * **goal.goal_id** * - `uuid` in database * - `NOT NULL`, default: `uuid_generate_v4()` */ - goal_id?: string | db.Parameter | db.DefaultType | db.SQLFragment; + goal_id?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; /** * **goal.iep_id** * - `uuid` in database * - Nullable, no default */ - iep_id?: string | db.Parameter | null | db.DefaultType | db.SQLFragment; - /** - * **goal.description** - * - `text` in database - * - `NOT NULL`, no default - */ - description: string | db.Parameter | db.SQLFragment; + iep_id?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; + } + export interface Insertable { /** * **goal.category** * - `text` in database @@ -1184,26 +1166,26 @@ declare module 'zapatos/schema' { * - `NOT NULL`, default: `now()` */ created_at?: (db.TimestampTzString | Date) | db.Parameter<(db.TimestampTzString | Date)> | db.DefaultType | db.SQLFragment; - } - export interface Updatable { + /** + * **goal.description** + * - `text` in database + * - `NOT NULL`, no default + */ + description: string | db.Parameter | db.SQLFragment; /** * **goal.goal_id** * - `uuid` in database * - `NOT NULL`, default: `uuid_generate_v4()` */ - goal_id?: string | db.Parameter | db.DefaultType | db.SQLFragment | db.SQLFragment | db.DefaultType | db.SQLFragment>; + goal_id?: string | db.Parameter | db.DefaultType | db.SQLFragment; /** * **goal.iep_id** * - `uuid` in database * - Nullable, no default */ - iep_id?: string | db.Parameter | null | db.DefaultType | db.SQLFragment | db.SQLFragment | null | db.DefaultType | db.SQLFragment>; - /** - * **goal.description** - * - `text` in database - * - `NOT NULL`, no default - */ - description?: string | db.Parameter | db.SQLFragment | db.SQLFragment | db.SQLFragment>; + iep_id?: string | db.Parameter | null | db.DefaultType | db.SQLFragment; + } + export interface Updatable { /** * **goal.category** * - `text` in database @@ -1216,6 +1198,24 @@ declare module 'zapatos/schema' { * - `NOT NULL`, default: `now()` */ created_at?: (db.TimestampTzString | Date) | db.Parameter<(db.TimestampTzString | Date)> | db.DefaultType | db.SQLFragment | db.SQLFragment | db.DefaultType | db.SQLFragment>; + /** + * **goal.description** + * - `text` in database + * - `NOT NULL`, no default + */ + description?: string | db.Parameter | db.SQLFragment | db.SQLFragment | db.SQLFragment>; + /** + * **goal.goal_id** + * - `uuid` in database + * - `NOT NULL`, default: `uuid_generate_v4()` + */ + goal_id?: string | db.Parameter | db.DefaultType | db.SQLFragment | db.SQLFragment | db.DefaultType | db.SQLFragment>; + /** + * **goal.iep_id** + * - `uuid` in database + * - Nullable, no default + */ + iep_id?: string | db.Parameter | null | db.DefaultType | db.SQLFragment | db.SQLFragment | null | db.DefaultType | db.SQLFragment>; } export type UniqueIndex = 'goal_pkey'; export type Column = keyof Selectable; @@ -1231,18 +1231,6 @@ declare module 'zapatos/schema' { export namespace iep { export type Table = 'iep'; export interface Selectable { - /** - * **iep.iep_id** - * - `uuid` in database - * - `NOT NULL`, default: `uuid_generate_v4()` - */ - iep_id: string; - /** - * **iep.student_id** - * - `uuid` in database - * - Nullable, no default - */ - student_id: string | null; /** * **iep.case_manager_id** * - `uuid` in database @@ -1250,25 +1238,17 @@ declare module 'zapatos/schema' { */ case_manager_id: string | null; /** - * **iep.start_date** - * - `date` in database - * - `NOT NULL`, no default + * **iep.created_at** + * - `timestamptz` in database + * - `NOT NULL`, default: `now()` */ - start_date: Date; + created_at: Date; /** * **iep.end_date** * - `date` in database * - `NOT NULL`, no default */ end_date: Date; - /** - * **iep.created_at** - * - `timestamptz` in database - * - `NOT NULL`, default: `now()` - */ - created_at: Date; - } - export interface JSONSelectable { /** * **iep.iep_id** * - `uuid` in database @@ -1276,11 +1256,19 @@ declare module 'zapatos/schema' { */ iep_id: string; /** + * **iep.start_date** + * - `date` in database + * - `NOT NULL`, no default + */ + start_date: Date; + /** * **iep.student_id** * - `uuid` in database * - Nullable, no default */ student_id: string | null; + } + export interface JSONSelectable { /** * **iep.case_manager_id** * - `uuid` in database @@ -1288,37 +1276,37 @@ declare module 'zapatos/schema' { */ case_manager_id: string | null; /** - * **iep.start_date** - * - `date` in database - * - `NOT NULL`, no default + * **iep.created_at** + * - `timestamptz` in database + * - `NOT NULL`, default: `now()` */ - start_date: db.DateString; + created_at: db.TimestampTzString; /** * **iep.end_date** * - `date` in database * - `NOT NULL`, no default */ end_date: db.DateString; - /** - * **iep.created_at** - * - `timestamptz` in database - * - `NOT NULL`, default: `now()` - */ - created_at: db.TimestampTzString; - } - export interface Whereable { /** * **iep.iep_id** * - `uuid` in database * - `NOT NULL`, default: `uuid_generate_v4()` */ - iep_id?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; + iep_id: string; + /** + * **iep.start_date** + * - `date` in database + * - `NOT NULL`, no default + */ + start_date: db.DateString; /** * **iep.student_id** * - `uuid` in database * - Nullable, no default */ - student_id?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; + student_id: string | null; + } + export interface Whereable { /** * **iep.case_manager_id** * - `uuid` in database @@ -1326,37 +1314,37 @@ declare module 'zapatos/schema' { */ case_manager_id?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; /** - * **iep.start_date** - * - `date` in database - * - `NOT NULL`, no default + * **iep.created_at** + * - `timestamptz` in database + * - `NOT NULL`, default: `now()` */ - start_date?: (db.DateString | Date) | db.Parameter<(db.DateString | Date)> | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; + created_at?: (db.TimestampTzString | Date) | db.Parameter<(db.TimestampTzString | Date)> | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; /** * **iep.end_date** * - `date` in database * - `NOT NULL`, no default */ end_date?: (db.DateString | Date) | db.Parameter<(db.DateString | Date)> | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; - /** - * **iep.created_at** - * - `timestamptz` in database - * - `NOT NULL`, default: `now()` - */ - created_at?: (db.TimestampTzString | Date) | db.Parameter<(db.TimestampTzString | Date)> | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; - } - export interface Insertable { /** * **iep.iep_id** * - `uuid` in database * - `NOT NULL`, default: `uuid_generate_v4()` */ - iep_id?: string | db.Parameter | db.DefaultType | db.SQLFragment; + iep_id?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; + /** + * **iep.start_date** + * - `date` in database + * - `NOT NULL`, no default + */ + start_date?: (db.DateString | Date) | db.Parameter<(db.DateString | Date)> | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; /** * **iep.student_id** * - `uuid` in database * - Nullable, no default */ - student_id?: string | db.Parameter | null | db.DefaultType | db.SQLFragment; + student_id?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; + } + export interface Insertable { /** * **iep.case_manager_id** * - `uuid` in database @@ -1364,37 +1352,37 @@ declare module 'zapatos/schema' { */ case_manager_id?: string | db.Parameter | null | db.DefaultType | db.SQLFragment; /** - * **iep.start_date** - * - `date` in database - * - `NOT NULL`, no default + * **iep.created_at** + * - `timestamptz` in database + * - `NOT NULL`, default: `now()` */ - start_date: (db.DateString | Date) | db.Parameter<(db.DateString | Date)> | db.SQLFragment; + created_at?: (db.TimestampTzString | Date) | db.Parameter<(db.TimestampTzString | Date)> | db.DefaultType | db.SQLFragment; /** * **iep.end_date** * - `date` in database * - `NOT NULL`, no default */ end_date: (db.DateString | Date) | db.Parameter<(db.DateString | Date)> | db.SQLFragment; - /** - * **iep.created_at** - * - `timestamptz` in database - * - `NOT NULL`, default: `now()` - */ - created_at?: (db.TimestampTzString | Date) | db.Parameter<(db.TimestampTzString | Date)> | db.DefaultType | db.SQLFragment; - } - export interface Updatable { /** * **iep.iep_id** * - `uuid` in database * - `NOT NULL`, default: `uuid_generate_v4()` */ - iep_id?: string | db.Parameter | db.DefaultType | db.SQLFragment | db.SQLFragment | db.DefaultType | db.SQLFragment>; + iep_id?: string | db.Parameter | db.DefaultType | db.SQLFragment; + /** + * **iep.start_date** + * - `date` in database + * - `NOT NULL`, no default + */ + start_date: (db.DateString | Date) | db.Parameter<(db.DateString | Date)> | db.SQLFragment; /** * **iep.student_id** * - `uuid` in database * - Nullable, no default */ - student_id?: string | db.Parameter | null | db.DefaultType | db.SQLFragment | db.SQLFragment | null | db.DefaultType | db.SQLFragment>; + student_id?: string | db.Parameter | null | db.DefaultType | db.SQLFragment; + } + export interface Updatable { /** * **iep.case_manager_id** * - `uuid` in database @@ -1402,11 +1390,11 @@ declare module 'zapatos/schema' { */ case_manager_id?: string | db.Parameter | null | db.DefaultType | db.SQLFragment | db.SQLFragment | null | db.DefaultType | db.SQLFragment>; /** - * **iep.start_date** - * - `date` in database - * - `NOT NULL`, no default + * **iep.created_at** + * - `timestamptz` in database + * - `NOT NULL`, default: `now()` */ - start_date?: (db.DateString | Date) | db.Parameter<(db.DateString | Date)> | db.SQLFragment | db.SQLFragment | db.SQLFragment>; + created_at?: (db.TimestampTzString | Date) | db.Parameter<(db.TimestampTzString | Date)> | db.DefaultType | db.SQLFragment | db.SQLFragment | db.DefaultType | db.SQLFragment>; /** * **iep.end_date** * - `date` in database @@ -1414,11 +1402,23 @@ declare module 'zapatos/schema' { */ end_date?: (db.DateString | Date) | db.Parameter<(db.DateString | Date)> | db.SQLFragment | db.SQLFragment | db.SQLFragment>; /** - * **iep.created_at** - * - `timestamptz` in database - * - `NOT NULL`, default: `now()` + * **iep.iep_id** + * - `uuid` in database + * - `NOT NULL`, default: `uuid_generate_v4()` */ - created_at?: (db.TimestampTzString | Date) | db.Parameter<(db.TimestampTzString | Date)> | db.DefaultType | db.SQLFragment | db.SQLFragment | db.DefaultType | db.SQLFragment>; + iep_id?: string | db.Parameter | db.DefaultType | db.SQLFragment | db.SQLFragment | db.DefaultType | db.SQLFragment>; + /** + * **iep.start_date** + * - `date` in database + * - `NOT NULL`, no default + */ + start_date?: (db.DateString | Date) | db.Parameter<(db.DateString | Date)> | db.SQLFragment | db.SQLFragment | db.SQLFragment>; + /** + * **iep.student_id** + * - `uuid` in database + * - Nullable, no default + */ + student_id?: string | db.Parameter | null | db.DefaultType | db.SQLFragment | db.SQLFragment | null | db.DefaultType | db.SQLFragment>; } export type UniqueIndex = 'iep_pkey'; export type Column = keyof Selectable; @@ -1434,6 +1434,18 @@ declare module 'zapatos/schema' { export namespace migrations { export type Table = 'migrations'; export interface Selectable { + /** + * **migrations.executed_at** + * - `timestamp` in database + * - Nullable, default: `CURRENT_TIMESTAMP` + */ + executed_at: Date | null; + /** + * **migrations.hash** + * - `varchar` in database + * - `NOT NULL`, no default + */ + hash: string; /** * **migrations.id** * - `int4` in database @@ -1446,20 +1458,20 @@ declare module 'zapatos/schema' { * - `NOT NULL`, no default */ name: string; + } + export interface JSONSelectable { + /** + * **migrations.executed_at** + * - `timestamp` in database + * - Nullable, default: `CURRENT_TIMESTAMP` + */ + executed_at: db.TimestampString | null; /** * **migrations.hash** * - `varchar` in database * - `NOT NULL`, no default */ hash: string; - /** - * **migrations.executed_at** - * - `timestamp` in database - * - Nullable, default: `CURRENT_TIMESTAMP` - */ - executed_at: Date | null; - } - export interface JSONSelectable { /** * **migrations.id** * - `int4` in database @@ -1472,20 +1484,20 @@ declare module 'zapatos/schema' { * - `NOT NULL`, no default */ name: string; - /** - * **migrations.hash** - * - `varchar` in database - * - `NOT NULL`, no default - */ - hash: string; + } + export interface Whereable { /** * **migrations.executed_at** * - `timestamp` in database * - Nullable, default: `CURRENT_TIMESTAMP` */ - executed_at: db.TimestampString | null; - } - export interface Whereable { + executed_at?: (db.TimestampString | Date) | db.Parameter<(db.TimestampString | Date)> | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; + /** + * **migrations.hash** + * - `varchar` in database + * - `NOT NULL`, no default + */ + hash?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; /** * **migrations.id** * - `int4` in database @@ -1498,20 +1510,20 @@ declare module 'zapatos/schema' { * - `NOT NULL`, no default */ name?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; - /** - * **migrations.hash** - * - `varchar` in database - * - `NOT NULL`, no default - */ - hash?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; + } + export interface Insertable { /** * **migrations.executed_at** * - `timestamp` in database * - Nullable, default: `CURRENT_TIMESTAMP` */ - executed_at?: (db.TimestampString | Date) | db.Parameter<(db.TimestampString | Date)> | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; - } - export interface Insertable { + executed_at?: (db.TimestampString | Date) | db.Parameter<(db.TimestampString | Date)> | null | db.DefaultType | db.SQLFragment; + /** + * **migrations.hash** + * - `varchar` in database + * - `NOT NULL`, no default + */ + hash: string | db.Parameter | db.SQLFragment; /** * **migrations.id** * - `int4` in database @@ -1524,20 +1536,20 @@ declare module 'zapatos/schema' { * - `NOT NULL`, no default */ name: string | db.Parameter | db.SQLFragment; - /** - * **migrations.hash** - * - `varchar` in database - * - `NOT NULL`, no default - */ - hash: string | db.Parameter | db.SQLFragment; + } + export interface Updatable { /** * **migrations.executed_at** * - `timestamp` in database * - Nullable, default: `CURRENT_TIMESTAMP` */ - executed_at?: (db.TimestampString | Date) | db.Parameter<(db.TimestampString | Date)> | null | db.DefaultType | db.SQLFragment; - } - export interface Updatable { + executed_at?: (db.TimestampString | Date) | db.Parameter<(db.TimestampString | Date)> | null | db.DefaultType | db.SQLFragment | db.SQLFragment | null | db.DefaultType | db.SQLFragment>; + /** + * **migrations.hash** + * - `varchar` in database + * - `NOT NULL`, no default + */ + hash?: string | db.Parameter | db.SQLFragment | db.SQLFragment | db.SQLFragment>; /** * **migrations.id** * - `int4` in database @@ -1550,18 +1562,6 @@ declare module 'zapatos/schema' { * - `NOT NULL`, no default */ name?: string | db.Parameter | db.SQLFragment | db.SQLFragment | db.SQLFragment>; - /** - * **migrations.hash** - * - `varchar` in database - * - `NOT NULL`, no default - */ - hash?: string | db.Parameter | db.SQLFragment | db.SQLFragment | db.SQLFragment>; - /** - * **migrations.executed_at** - * - `timestamp` in database - * - Nullable, default: `CURRENT_TIMESTAMP` - */ - executed_at?: (db.TimestampString | Date) | db.Parameter<(db.TimestampString | Date)> | null | db.DefaultType | db.SQLFragment | db.SQLFragment | null | db.DefaultType | db.SQLFragment>; } export type UniqueIndex = 'migrations_name_key' | 'migrations_pkey'; export type Column = keyof Selectable; @@ -1660,6 +1660,12 @@ declare module 'zapatos/schema' { export namespace session { export type Table = 'session'; export interface Selectable { + /** + * **session.expires_at** + * - `timestamptz` in database + * - `NOT NULL`, no default + */ + expires_at: Date; /** * **session.session_id** * - `uuid` in database @@ -1678,14 +1684,14 @@ declare module 'zapatos/schema' { * - `NOT NULL`, no default */ user_id: string; + } + export interface JSONSelectable { /** * **session.expires_at** * - `timestamptz` in database * - `NOT NULL`, no default */ - expires_at: Date; - } - export interface JSONSelectable { + expires_at: db.TimestampTzString; /** * **session.session_id** * - `uuid` in database @@ -1704,14 +1710,14 @@ declare module 'zapatos/schema' { * - `NOT NULL`, no default */ user_id: string; + } + export interface Whereable { /** * **session.expires_at** * - `timestamptz` in database * - `NOT NULL`, no default */ - expires_at: db.TimestampTzString; - } - export interface Whereable { + expires_at?: (db.TimestampTzString | Date) | db.Parameter<(db.TimestampTzString | Date)> | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; /** * **session.session_id** * - `uuid` in database @@ -1730,14 +1736,14 @@ declare module 'zapatos/schema' { * - `NOT NULL`, no default */ user_id?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; + } + export interface Insertable { /** * **session.expires_at** * - `timestamptz` in database * - `NOT NULL`, no default */ - expires_at?: (db.TimestampTzString | Date) | db.Parameter<(db.TimestampTzString | Date)> | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; - } - export interface Insertable { + expires_at: (db.TimestampTzString | Date) | db.Parameter<(db.TimestampTzString | Date)> | db.SQLFragment; /** * **session.session_id** * - `uuid` in database @@ -1756,14 +1762,14 @@ declare module 'zapatos/schema' { * - `NOT NULL`, no default */ user_id: string | db.Parameter | db.SQLFragment; + } + export interface Updatable { /** * **session.expires_at** * - `timestamptz` in database * - `NOT NULL`, no default */ - expires_at: (db.TimestampTzString | Date) | db.Parameter<(db.TimestampTzString | Date)> | db.SQLFragment; - } - export interface Updatable { + expires_at?: (db.TimestampTzString | Date) | db.Parameter<(db.TimestampTzString | Date)> | db.SQLFragment | db.SQLFragment | db.SQLFragment>; /** * **session.session_id** * - `uuid` in database @@ -1782,12 +1788,6 @@ declare module 'zapatos/schema' { * - `NOT NULL`, no default */ user_id?: string | db.Parameter | db.SQLFragment | db.SQLFragment | db.SQLFragment>; - /** - * **session.expires_at** - * - `timestamptz` in database - * - `NOT NULL`, no default - */ - expires_at?: (db.TimestampTzString | Date) | db.Parameter<(db.TimestampTzString | Date)> | db.SQLFragment | db.SQLFragment | db.SQLFragment>; } export type UniqueIndex = 'session_pkey' | 'session_session_token_key'; export type Column = keyof Selectable; @@ -1804,11 +1804,17 @@ declare module 'zapatos/schema' { export type Table = 'student'; export interface Selectable { /** - * **student.student_id** + * **student.assigned_case_manager_id** * - `uuid` in database - * - `NOT NULL`, default: `uuid_generate_v4()` + * - Nullable, no default */ - student_id: string; + assigned_case_manager_id: string | null; + /** + * **student.email** + * - `text` in database + * - `NOT NULL`, no default + */ + email: string; /** * **student.first_name** * - `text` in database @@ -1816,17 +1822,25 @@ declare module 'zapatos/schema' { */ first_name: string; /** + * **student.grade** + * - `int2` in database + * - `NOT NULL`, no default + */ + grade: number; + /** * **student.last_name** * - `text` in database * - `NOT NULL`, no default */ last_name: string; /** - * **student.email** - * - `text` in database - * - `NOT NULL`, no default + * **student.student_id** + * - `uuid` in database + * - `NOT NULL`, default: `uuid_generate_v4()` */ - email: string; + student_id: string; + } + export interface JSONSelectable { /** * **student.assigned_case_manager_id** * - `uuid` in database @@ -1834,19 +1848,11 @@ declare module 'zapatos/schema' { */ assigned_case_manager_id: string | null; /** - * **student.grade** - * - `int2` in database + * **student.email** + * - `text` in database * - `NOT NULL`, no default */ - grade: number; - } - export interface JSONSelectable { - /** - * **student.student_id** - * - `uuid` in database - * - `NOT NULL`, default: `uuid_generate_v4()` - */ - student_id: string; + email: string; /** * **student.first_name** * - `text` in database @@ -1854,37 +1860,37 @@ declare module 'zapatos/schema' { */ first_name: string; /** + * **student.grade** + * - `int2` in database + * - `NOT NULL`, no default + */ + grade: number; + /** * **student.last_name** * - `text` in database * - `NOT NULL`, no default */ last_name: string; /** - * **student.email** - * - `text` in database - * - `NOT NULL`, no default + * **student.student_id** + * - `uuid` in database + * - `NOT NULL`, default: `uuid_generate_v4()` */ - email: string; + student_id: string; + } + export interface Whereable { /** * **student.assigned_case_manager_id** * - `uuid` in database * - Nullable, no default */ - assigned_case_manager_id: string | null; + assigned_case_manager_id?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; /** - * **student.grade** - * - `int2` in database + * **student.email** + * - `text` in database * - `NOT NULL`, no default */ - grade: number; - } - export interface Whereable { - /** - * **student.student_id** - * - `uuid` in database - * - `NOT NULL`, default: `uuid_generate_v4()` - */ - student_id?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; + email?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; /** * **student.first_name** * - `text` in database @@ -1892,75 +1898,75 @@ declare module 'zapatos/schema' { */ first_name?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; /** - * **student.last_name** - * - `text` in database + * **student.grade** + * - `int2` in database * - `NOT NULL`, no default */ - last_name?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; + grade?: number | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; /** - * **student.email** + * **student.last_name** * - `text` in database * - `NOT NULL`, no default */ - email?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; + last_name?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; /** - * **student.assigned_case_manager_id** + * **student.student_id** * - `uuid` in database - * - Nullable, no default - */ - assigned_case_manager_id?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; - /** - * **student.grade** - * - `int2` in database - * - `NOT NULL`, no default + * - `NOT NULL`, default: `uuid_generate_v4()` */ - grade?: number | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; + student_id?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; } export interface Insertable { /** - * **student.student_id** + * **student.assigned_case_manager_id** * - `uuid` in database - * - `NOT NULL`, default: `uuid_generate_v4()` + * - Nullable, no default */ - student_id?: string | db.Parameter | db.DefaultType | db.SQLFragment; + assigned_case_manager_id?: string | db.Parameter | null | db.DefaultType | db.SQLFragment; /** - * **student.first_name** + * **student.email** * - `text` in database * - `NOT NULL`, no default */ - first_name: string | db.Parameter | db.SQLFragment; + email: string | db.Parameter | db.SQLFragment; /** - * **student.last_name** + * **student.first_name** * - `text` in database * - `NOT NULL`, no default */ - last_name: string | db.Parameter | db.SQLFragment; + first_name: string | db.Parameter | db.SQLFragment; /** - * **student.email** - * - `text` in database + * **student.grade** + * - `int2` in database * - `NOT NULL`, no default */ - email: string | db.Parameter | db.SQLFragment; + grade: number | db.Parameter | db.SQLFragment; /** - * **student.assigned_case_manager_id** - * - `uuid` in database - * - Nullable, no default + * **student.last_name** + * - `text` in database + * - `NOT NULL`, no default */ - assigned_case_manager_id?: string | db.Parameter | null | db.DefaultType | db.SQLFragment; + last_name: string | db.Parameter | db.SQLFragment; /** - * **student.grade** - * - `int2` in database - * - `NOT NULL`, no default + * **student.student_id** + * - `uuid` in database + * - `NOT NULL`, default: `uuid_generate_v4()` */ - grade: number | db.Parameter | db.SQLFragment; + student_id?: string | db.Parameter | db.DefaultType | db.SQLFragment; } export interface Updatable { /** - * **student.student_id** + * **student.assigned_case_manager_id** * - `uuid` in database - * - `NOT NULL`, default: `uuid_generate_v4()` + * - Nullable, no default */ - student_id?: string | db.Parameter | db.DefaultType | db.SQLFragment | db.SQLFragment | db.DefaultType | db.SQLFragment>; + assigned_case_manager_id?: string | db.Parameter | null | db.DefaultType | db.SQLFragment | db.SQLFragment | null | db.DefaultType | db.SQLFragment>; + /** + * **student.email** + * - `text` in database + * - `NOT NULL`, no default + */ + email?: string | db.Parameter | db.SQLFragment | db.SQLFragment | db.SQLFragment>; /** * **student.first_name** * - `text` in database @@ -1968,29 +1974,23 @@ declare module 'zapatos/schema' { */ first_name?: string | db.Parameter | db.SQLFragment | db.SQLFragment | db.SQLFragment>; /** - * **student.last_name** - * - `text` in database + * **student.grade** + * - `int2` in database * - `NOT NULL`, no default */ - last_name?: string | db.Parameter | db.SQLFragment | db.SQLFragment | db.SQLFragment>; + grade?: number | db.Parameter | db.SQLFragment | db.SQLFragment | db.SQLFragment>; /** - * **student.email** + * **student.last_name** * - `text` in database * - `NOT NULL`, no default */ - email?: string | db.Parameter | db.SQLFragment | db.SQLFragment | db.SQLFragment>; + last_name?: string | db.Parameter | db.SQLFragment | db.SQLFragment | db.SQLFragment>; /** - * **student.assigned_case_manager_id** + * **student.student_id** * - `uuid` in database - * - Nullable, no default - */ - assigned_case_manager_id?: string | db.Parameter | null | db.DefaultType | db.SQLFragment | db.SQLFragment | null | db.DefaultType | db.SQLFragment>; - /** - * **student.grade** - * - `int2` in database - * - `NOT NULL`, no default + * - `NOT NULL`, default: `uuid_generate_v4()` */ - grade?: number | db.Parameter | db.SQLFragment | db.SQLFragment | db.SQLFragment>; + student_id?: string | db.Parameter | db.DefaultType | db.SQLFragment | db.SQLFragment | db.DefaultType | db.SQLFragment>; } export type UniqueIndex = 'student_email_key' | 'student_pkey'; export type Column = keyof Selectable; @@ -2007,11 +2007,11 @@ declare module 'zapatos/schema' { export type Table = 'task'; export interface Selectable { /** - * **task.task_id** + * **task.assignee_id** * - `uuid` in database - * - `NOT NULL`, default: `uuid_generate_v4()` + * - Nullable, no default */ - task_id: string; + assignee_id: string | null; /** * **task.benchmark_id** * - `uuid` in database @@ -2019,11 +2019,11 @@ declare module 'zapatos/schema' { */ benchmark_id: string | null; /** - * **task.assignee_id** - * - `uuid` in database - * - Nullable, no default + * **task.created_at** + * - `timestamptz` in database + * - `NOT NULL`, default: `now()` */ - assignee_id: string | null; + created_at: Date; /** * **task.due_date** * - `timestamptz` in database @@ -2031,25 +2031,11 @@ declare module 'zapatos/schema' { */ due_date: Date | null; /** - * **task.trial_count** - * - `int4` in database - * - Nullable, no default - */ - trial_count: number | null; - /** * **task.seen** * - `bool` in database * - `NOT NULL`, default: `false` */ seen: boolean; - /** - * **task.created_at** - * - `timestamptz` in database - * - `NOT NULL`, default: `now()` - */ - created_at: Date; - } - export interface JSONSelectable { /** * **task.task_id** * - `uuid` in database @@ -2057,11 +2043,13 @@ declare module 'zapatos/schema' { */ task_id: string; /** - * **task.benchmark_id** - * - `uuid` in database + * **task.trial_count** + * - `int4` in database * - Nullable, no default */ - benchmark_id: string | null; + trial_count: number | null; + } + export interface JSONSelectable { /** * **task.assignee_id** * - `uuid` in database @@ -2069,17 +2057,23 @@ declare module 'zapatos/schema' { */ assignee_id: string | null; /** - * **task.due_date** - * - `timestamptz` in database + * **task.benchmark_id** + * - `uuid` in database * - Nullable, no default */ - due_date: db.TimestampTzString | null; + benchmark_id: string | null; /** - * **task.trial_count** - * - `int4` in database + * **task.created_at** + * - `timestamptz` in database + * - `NOT NULL`, default: `now()` + */ + created_at: db.TimestampTzString; + /** + * **task.due_date** + * - `timestamptz` in database * - Nullable, no default */ - trial_count: number | null; + due_date: db.TimestampTzString | null; /** * **task.seen** * - `bool` in database @@ -2087,19 +2081,25 @@ declare module 'zapatos/schema' { */ seen: boolean; /** - * **task.created_at** - * - `timestamptz` in database - * - `NOT NULL`, default: `now()` + * **task.task_id** + * - `uuid` in database + * - `NOT NULL`, default: `uuid_generate_v4()` */ - created_at: db.TimestampTzString; + task_id: string; + /** + * **task.trial_count** + * - `int4` in database + * - Nullable, no default + */ + trial_count: number | null; } export interface Whereable { /** - * **task.task_id** + * **task.assignee_id** * - `uuid` in database - * - `NOT NULL`, default: `uuid_generate_v4()` + * - Nullable, no default */ - task_id?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; + assignee_id?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; /** * **task.benchmark_id** * - `uuid` in database @@ -2107,11 +2107,11 @@ declare module 'zapatos/schema' { */ benchmark_id?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; /** - * **task.assignee_id** - * - `uuid` in database - * - Nullable, no default + * **task.created_at** + * - `timestamptz` in database + * - `NOT NULL`, default: `now()` */ - assignee_id?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; + created_at?: (db.TimestampTzString | Date) | db.Parameter<(db.TimestampTzString | Date)> | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; /** * **task.due_date** * - `timestamptz` in database @@ -2119,31 +2119,31 @@ declare module 'zapatos/schema' { */ due_date?: (db.TimestampTzString | Date) | db.Parameter<(db.TimestampTzString | Date)> | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; /** - * **task.trial_count** - * - `int4` in database - * - Nullable, no default - */ - trial_count?: number | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; - /** * **task.seen** * - `bool` in database * - `NOT NULL`, default: `false` */ seen?: boolean | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; /** - * **task.created_at** - * - `timestamptz` in database - * - `NOT NULL`, default: `now()` + * **task.task_id** + * - `uuid` in database + * - `NOT NULL`, default: `uuid_generate_v4()` */ - created_at?: (db.TimestampTzString | Date) | db.Parameter<(db.TimestampTzString | Date)> | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; + task_id?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; + /** + * **task.trial_count** + * - `int4` in database + * - Nullable, no default + */ + trial_count?: number | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; } export interface Insertable { /** - * **task.task_id** + * **task.assignee_id** * - `uuid` in database - * - `NOT NULL`, default: `uuid_generate_v4()` + * - Nullable, no default */ - task_id?: string | db.Parameter | db.DefaultType | db.SQLFragment; + assignee_id?: string | db.Parameter | null | db.DefaultType | db.SQLFragment; /** * **task.benchmark_id** * - `uuid` in database @@ -2151,11 +2151,11 @@ declare module 'zapatos/schema' { */ benchmark_id?: string | db.Parameter | null | db.DefaultType | db.SQLFragment; /** - * **task.assignee_id** - * - `uuid` in database - * - Nullable, no default + * **task.created_at** + * - `timestamptz` in database + * - `NOT NULL`, default: `now()` */ - assignee_id?: string | db.Parameter | null | db.DefaultType | db.SQLFragment; + created_at?: (db.TimestampTzString | Date) | db.Parameter<(db.TimestampTzString | Date)> | db.DefaultType | db.SQLFragment; /** * **task.due_date** * - `timestamptz` in database @@ -2163,31 +2163,31 @@ declare module 'zapatos/schema' { */ due_date?: (db.TimestampTzString | Date) | db.Parameter<(db.TimestampTzString | Date)> | null | db.DefaultType | db.SQLFragment; /** - * **task.trial_count** - * - `int4` in database - * - Nullable, no default - */ - trial_count?: number | db.Parameter | null | db.DefaultType | db.SQLFragment; - /** * **task.seen** * - `bool` in database * - `NOT NULL`, default: `false` */ seen?: boolean | db.Parameter | db.DefaultType | db.SQLFragment; /** - * **task.created_at** - * - `timestamptz` in database - * - `NOT NULL`, default: `now()` + * **task.task_id** + * - `uuid` in database + * - `NOT NULL`, default: `uuid_generate_v4()` */ - created_at?: (db.TimestampTzString | Date) | db.Parameter<(db.TimestampTzString | Date)> | db.DefaultType | db.SQLFragment; + task_id?: string | db.Parameter | db.DefaultType | db.SQLFragment; + /** + * **task.trial_count** + * - `int4` in database + * - Nullable, no default + */ + trial_count?: number | db.Parameter | null | db.DefaultType | db.SQLFragment; } export interface Updatable { /** - * **task.task_id** + * **task.assignee_id** * - `uuid` in database - * - `NOT NULL`, default: `uuid_generate_v4()` + * - Nullable, no default */ - task_id?: string | db.Parameter | db.DefaultType | db.SQLFragment | db.SQLFragment | db.DefaultType | db.SQLFragment>; + assignee_id?: string | db.Parameter | null | db.DefaultType | db.SQLFragment | db.SQLFragment | null | db.DefaultType | db.SQLFragment>; /** * **task.benchmark_id** * - `uuid` in database @@ -2195,11 +2195,11 @@ declare module 'zapatos/schema' { */ benchmark_id?: string | db.Parameter | null | db.DefaultType | db.SQLFragment | db.SQLFragment | null | db.DefaultType | db.SQLFragment>; /** - * **task.assignee_id** - * - `uuid` in database - * - Nullable, no default + * **task.created_at** + * - `timestamptz` in database + * - `NOT NULL`, default: `now()` */ - assignee_id?: string | db.Parameter | null | db.DefaultType | db.SQLFragment | db.SQLFragment | null | db.DefaultType | db.SQLFragment>; + created_at?: (db.TimestampTzString | Date) | db.Parameter<(db.TimestampTzString | Date)> | db.DefaultType | db.SQLFragment | db.SQLFragment | db.DefaultType | db.SQLFragment>; /** * **task.due_date** * - `timestamptz` in database @@ -2207,23 +2207,23 @@ declare module 'zapatos/schema' { */ due_date?: (db.TimestampTzString | Date) | db.Parameter<(db.TimestampTzString | Date)> | null | db.DefaultType | db.SQLFragment | db.SQLFragment | null | db.DefaultType | db.SQLFragment>; /** - * **task.trial_count** - * - `int4` in database - * - Nullable, no default - */ - trial_count?: number | db.Parameter | null | db.DefaultType | db.SQLFragment | db.SQLFragment | null | db.DefaultType | db.SQLFragment>; - /** * **task.seen** * - `bool` in database * - `NOT NULL`, default: `false` */ seen?: boolean | db.Parameter | db.DefaultType | db.SQLFragment | db.SQLFragment | db.DefaultType | db.SQLFragment>; /** - * **task.created_at** - * - `timestamptz` in database - * - `NOT NULL`, default: `now()` + * **task.task_id** + * - `uuid` in database + * - `NOT NULL`, default: `uuid_generate_v4()` */ - created_at?: (db.TimestampTzString | Date) | db.Parameter<(db.TimestampTzString | Date)> | db.DefaultType | db.SQLFragment | db.SQLFragment | db.DefaultType | db.SQLFragment>; + task_id?: string | db.Parameter | db.DefaultType | db.SQLFragment | db.SQLFragment | db.DefaultType | db.SQLFragment>; + /** + * **task.trial_count** + * - `int4` in database + * - Nullable, no default + */ + trial_count?: number | db.Parameter | null | db.DefaultType | db.SQLFragment | db.SQLFragment | null | db.DefaultType | db.SQLFragment>; } export type UniqueIndex = 'benchmark_assignee_unique' | 'task_pkey'; export type Column = keyof Selectable; @@ -2240,23 +2240,29 @@ declare module 'zapatos/schema' { export type Table = 'trial_data'; export interface Selectable { /** - * **trial_data.trial_data_id** - * - `uuid` in database - * - `NOT NULL`, default: `uuid_generate_v4()` + * **trial_data.created_at** + * - `timestamptz` in database + * - `NOT NULL`, default: `now()` */ - trial_data_id: string; + created_at: Date; /** - * **trial_data.task_id** + * **trial_data.created_by_user_id** * - `uuid` in database * - Nullable, no default */ - task_id: string | null; + created_by_user_id: string | null; /** - * **trial_data.created_by_user_id** - * - `uuid` in database + * **trial_data.notes** + * - `text` in database * - Nullable, no default */ - created_by_user_id: string | null; + notes: string | null; + /** + * **trial_data.submitted** + * - `bool` in database + * - `NOT NULL`, default: `false` + */ + submitted: boolean; /** * **trial_data.success** * - `int4` in database @@ -2264,17 +2270,37 @@ declare module 'zapatos/schema' { */ success: number; /** + * **trial_data.task_id** + * - `uuid` in database + * - Nullable, no default + */ + task_id: string | null; + /** + * **trial_data.trial_data_id** + * - `uuid` in database + * - `NOT NULL`, default: `uuid_generate_v4()` + */ + trial_data_id: string; + /** * **trial_data.unsuccess** * - `int4` in database * - `NOT NULL`, no default */ unsuccess: number; + } + export interface JSONSelectable { /** - * **trial_data.submitted** - * - `bool` in database - * - `NOT NULL`, default: `false` + * **trial_data.created_at** + * - `timestamptz` in database + * - `NOT NULL`, default: `now()` */ - submitted: boolean; + created_at: db.TimestampTzString; + /** + * **trial_data.created_by_user_id** + * - `uuid` in database + * - Nullable, no default + */ + created_by_user_id: string | null; /** * **trial_data.notes** * - `text` in database @@ -2282,19 +2308,17 @@ declare module 'zapatos/schema' { */ notes: string | null; /** - * **trial_data.created_at** - * - `timestamptz` in database - * - `NOT NULL`, default: `now()` + * **trial_data.submitted** + * - `bool` in database + * - `NOT NULL`, default: `false` */ - created_at: Date; - } - export interface JSONSelectable { + submitted: boolean; /** - * **trial_data.trial_data_id** - * - `uuid` in database - * - `NOT NULL`, default: `uuid_generate_v4()` + * **trial_data.success** + * - `int4` in database + * - `NOT NULL`, no default */ - trial_data_id: string; + success: number; /** * **trial_data.task_id** * - `uuid` in database @@ -2302,49 +2326,49 @@ declare module 'zapatos/schema' { */ task_id: string | null; /** - * **trial_data.created_by_user_id** + * **trial_data.trial_data_id** * - `uuid` in database - * - Nullable, no default - */ - created_by_user_id: string | null; - /** - * **trial_data.success** - * - `int4` in database - * - `NOT NULL`, no default + * - `NOT NULL`, default: `uuid_generate_v4()` */ - success: number; + trial_data_id: string; /** * **trial_data.unsuccess** * - `int4` in database * - `NOT NULL`, no default */ unsuccess: number; + } + export interface Whereable { /** - * **trial_data.submitted** - * - `bool` in database - * - `NOT NULL`, default: `false` + * **trial_data.created_at** + * - `timestamptz` in database + * - `NOT NULL`, default: `now()` */ - submitted: boolean; + created_at?: (db.TimestampTzString | Date) | db.Parameter<(db.TimestampTzString | Date)> | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; + /** + * **trial_data.created_by_user_id** + * - `uuid` in database + * - Nullable, no default + */ + created_by_user_id?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; /** * **trial_data.notes** * - `text` in database * - Nullable, no default */ - notes: string | null; + notes?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; /** - * **trial_data.created_at** - * - `timestamptz` in database - * - `NOT NULL`, default: `now()` + * **trial_data.submitted** + * - `bool` in database + * - `NOT NULL`, default: `false` */ - created_at: db.TimestampTzString; - } - export interface Whereable { + submitted?: boolean | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; /** - * **trial_data.trial_data_id** - * - `uuid` in database - * - `NOT NULL`, default: `uuid_generate_v4()` + * **trial_data.success** + * - `int4` in database + * - `NOT NULL`, no default */ - trial_data_id?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; + success?: number | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; /** * **trial_data.task_id** * - `uuid` in database @@ -2352,49 +2376,49 @@ declare module 'zapatos/schema' { */ task_id?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; /** - * **trial_data.created_by_user_id** + * **trial_data.trial_data_id** * - `uuid` in database - * - Nullable, no default - */ - created_by_user_id?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; - /** - * **trial_data.success** - * - `int4` in database - * - `NOT NULL`, no default + * - `NOT NULL`, default: `uuid_generate_v4()` */ - success?: number | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; + trial_data_id?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; /** * **trial_data.unsuccess** * - `int4` in database * - `NOT NULL`, no default */ unsuccess?: number | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; + } + export interface Insertable { /** - * **trial_data.submitted** - * - `bool` in database - * - `NOT NULL`, default: `false` + * **trial_data.created_at** + * - `timestamptz` in database + * - `NOT NULL`, default: `now()` */ - submitted?: boolean | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; + created_at?: (db.TimestampTzString | Date) | db.Parameter<(db.TimestampTzString | Date)> | db.DefaultType | db.SQLFragment; + /** + * **trial_data.created_by_user_id** + * - `uuid` in database + * - Nullable, no default + */ + created_by_user_id?: string | db.Parameter | null | db.DefaultType | db.SQLFragment; /** * **trial_data.notes** * - `text` in database * - Nullable, no default */ - notes?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; + notes?: string | db.Parameter | null | db.DefaultType | db.SQLFragment; /** - * **trial_data.created_at** - * - `timestamptz` in database - * - `NOT NULL`, default: `now()` + * **trial_data.submitted** + * - `bool` in database + * - `NOT NULL`, default: `false` */ - created_at?: (db.TimestampTzString | Date) | db.Parameter<(db.TimestampTzString | Date)> | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; - } - export interface Insertable { + submitted?: boolean | db.Parameter | db.DefaultType | db.SQLFragment; /** - * **trial_data.trial_data_id** - * - `uuid` in database - * - `NOT NULL`, default: `uuid_generate_v4()` + * **trial_data.success** + * - `int4` in database + * - `NOT NULL`, no default */ - trial_data_id?: string | db.Parameter | db.DefaultType | db.SQLFragment; + success: number | db.Parameter | db.SQLFragment; /** * **trial_data.task_id** * - `uuid` in database @@ -2402,49 +2426,49 @@ declare module 'zapatos/schema' { */ task_id?: string | db.Parameter | null | db.DefaultType | db.SQLFragment; /** - * **trial_data.created_by_user_id** + * **trial_data.trial_data_id** * - `uuid` in database - * - Nullable, no default - */ - created_by_user_id?: string | db.Parameter | null | db.DefaultType | db.SQLFragment; - /** - * **trial_data.success** - * - `int4` in database - * - `NOT NULL`, no default + * - `NOT NULL`, default: `uuid_generate_v4()` */ - success: number | db.Parameter | db.SQLFragment; + trial_data_id?: string | db.Parameter | db.DefaultType | db.SQLFragment; /** * **trial_data.unsuccess** * - `int4` in database * - `NOT NULL`, no default */ unsuccess: number | db.Parameter | db.SQLFragment; + } + export interface Updatable { /** - * **trial_data.submitted** - * - `bool` in database - * - `NOT NULL`, default: `false` + * **trial_data.created_at** + * - `timestamptz` in database + * - `NOT NULL`, default: `now()` */ - submitted?: boolean | db.Parameter | db.DefaultType | db.SQLFragment; + created_at?: (db.TimestampTzString | Date) | db.Parameter<(db.TimestampTzString | Date)> | db.DefaultType | db.SQLFragment | db.SQLFragment | db.DefaultType | db.SQLFragment>; + /** + * **trial_data.created_by_user_id** + * - `uuid` in database + * - Nullable, no default + */ + created_by_user_id?: string | db.Parameter | null | db.DefaultType | db.SQLFragment | db.SQLFragment | null | db.DefaultType | db.SQLFragment>; /** * **trial_data.notes** * - `text` in database * - Nullable, no default */ - notes?: string | db.Parameter | null | db.DefaultType | db.SQLFragment; + notes?: string | db.Parameter | null | db.DefaultType | db.SQLFragment | db.SQLFragment | null | db.DefaultType | db.SQLFragment>; /** - * **trial_data.created_at** - * - `timestamptz` in database - * - `NOT NULL`, default: `now()` + * **trial_data.submitted** + * - `bool` in database + * - `NOT NULL`, default: `false` */ - created_at?: (db.TimestampTzString | Date) | db.Parameter<(db.TimestampTzString | Date)> | db.DefaultType | db.SQLFragment; - } - export interface Updatable { + submitted?: boolean | db.Parameter | db.DefaultType | db.SQLFragment | db.SQLFragment | db.DefaultType | db.SQLFragment>; /** - * **trial_data.trial_data_id** - * - `uuid` in database - * - `NOT NULL`, default: `uuid_generate_v4()` + * **trial_data.success** + * - `int4` in database + * - `NOT NULL`, no default */ - trial_data_id?: string | db.Parameter | db.DefaultType | db.SQLFragment | db.SQLFragment | db.DefaultType | db.SQLFragment>; + success?: number | db.Parameter | db.SQLFragment | db.SQLFragment | db.SQLFragment>; /** * **trial_data.task_id** * - `uuid` in database @@ -2452,41 +2476,17 @@ declare module 'zapatos/schema' { */ task_id?: string | db.Parameter | null | db.DefaultType | db.SQLFragment | db.SQLFragment | null | db.DefaultType | db.SQLFragment>; /** - * **trial_data.created_by_user_id** + * **trial_data.trial_data_id** * - `uuid` in database - * - Nullable, no default - */ - created_by_user_id?: string | db.Parameter | null | db.DefaultType | db.SQLFragment | db.SQLFragment | null | db.DefaultType | db.SQLFragment>; - /** - * **trial_data.success** - * - `int4` in database - * - `NOT NULL`, no default + * - `NOT NULL`, default: `uuid_generate_v4()` */ - success?: number | db.Parameter | db.SQLFragment | db.SQLFragment | db.SQLFragment>; + trial_data_id?: string | db.Parameter | db.DefaultType | db.SQLFragment | db.SQLFragment | db.DefaultType | db.SQLFragment>; /** * **trial_data.unsuccess** * - `int4` in database * - `NOT NULL`, no default */ unsuccess?: number | db.Parameter | db.SQLFragment | db.SQLFragment | db.SQLFragment>; - /** - * **trial_data.submitted** - * - `bool` in database - * - `NOT NULL`, default: `false` - */ - submitted?: boolean | db.Parameter | db.DefaultType | db.SQLFragment | db.SQLFragment | db.DefaultType | db.SQLFragment>; - /** - * **trial_data.notes** - * - `text` in database - * - Nullable, no default - */ - notes?: string | db.Parameter | null | db.DefaultType | db.SQLFragment | db.SQLFragment | null | db.DefaultType | db.SQLFragment>; - /** - * **trial_data.created_at** - * - `timestamptz` in database - * - `NOT NULL`, default: `now()` - */ - created_at?: (db.TimestampTzString | Date) | db.Parameter<(db.TimestampTzString | Date)> | db.DefaultType | db.SQLFragment | db.SQLFragment | db.DefaultType | db.SQLFragment>; } export type UniqueIndex = 'trial_data_pkey'; export type Column = keyof Selectable; @@ -2503,11 +2503,17 @@ declare module 'zapatos/schema' { export type Table = 'trial_data_file'; export interface Selectable { /** - * **trial_data_file.trial_file_id** + * **trial_data_file.created_at** + * - `timestamptz` in database + * - `NOT NULL`, default: `now()` + */ + created_at: Date; + /** + * **trial_data_file.file_id** * - `uuid` in database - * - `NOT NULL`, default: `uuid_generate_v4()` + * - Nullable, no default */ - trial_file_id: string; + file_id: string | null; /** * **trial_data_file.trial_data_id** * - `uuid` in database @@ -2515,25 +2521,25 @@ declare module 'zapatos/schema' { */ trial_data_id: string | null; /** - * **trial_data_file.file_id** + * **trial_data_file.trial_file_id** * - `uuid` in database - * - Nullable, no default + * - `NOT NULL`, default: `uuid_generate_v4()` */ - file_id: string | null; + trial_file_id: string; + } + export interface JSONSelectable { /** * **trial_data_file.created_at** * - `timestamptz` in database * - `NOT NULL`, default: `now()` */ - created_at: Date; - } - export interface JSONSelectable { + created_at: db.TimestampTzString; /** - * **trial_data_file.trial_file_id** + * **trial_data_file.file_id** * - `uuid` in database - * - `NOT NULL`, default: `uuid_generate_v4()` + * - Nullable, no default */ - trial_file_id: string; + file_id: string | null; /** * **trial_data_file.trial_data_id** * - `uuid` in database @@ -2541,25 +2547,25 @@ declare module 'zapatos/schema' { */ trial_data_id: string | null; /** - * **trial_data_file.file_id** + * **trial_data_file.trial_file_id** * - `uuid` in database - * - Nullable, no default + * - `NOT NULL`, default: `uuid_generate_v4()` */ - file_id: string | null; + trial_file_id: string; + } + export interface Whereable { /** * **trial_data_file.created_at** * - `timestamptz` in database * - `NOT NULL`, default: `now()` */ - created_at: db.TimestampTzString; - } - export interface Whereable { + created_at?: (db.TimestampTzString | Date) | db.Parameter<(db.TimestampTzString | Date)> | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; /** - * **trial_data_file.trial_file_id** + * **trial_data_file.file_id** * - `uuid` in database - * - `NOT NULL`, default: `uuid_generate_v4()` + * - Nullable, no default */ - trial_file_id?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; + file_id?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; /** * **trial_data_file.trial_data_id** * - `uuid` in database @@ -2567,25 +2573,25 @@ declare module 'zapatos/schema' { */ trial_data_id?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; /** - * **trial_data_file.file_id** + * **trial_data_file.trial_file_id** * - `uuid` in database - * - Nullable, no default + * - `NOT NULL`, default: `uuid_generate_v4()` */ - file_id?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; + trial_file_id?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; + } + export interface Insertable { /** * **trial_data_file.created_at** * - `timestamptz` in database * - `NOT NULL`, default: `now()` */ - created_at?: (db.TimestampTzString | Date) | db.Parameter<(db.TimestampTzString | Date)> | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; - } - export interface Insertable { + created_at?: (db.TimestampTzString | Date) | db.Parameter<(db.TimestampTzString | Date)> | db.DefaultType | db.SQLFragment; /** - * **trial_data_file.trial_file_id** + * **trial_data_file.file_id** * - `uuid` in database - * - `NOT NULL`, default: `uuid_generate_v4()` + * - Nullable, no default */ - trial_file_id?: string | db.Parameter | db.DefaultType | db.SQLFragment; + file_id?: string | db.Parameter | null | db.DefaultType | db.SQLFragment; /** * **trial_data_file.trial_data_id** * - `uuid` in database @@ -2593,25 +2599,25 @@ declare module 'zapatos/schema' { */ trial_data_id?: string | db.Parameter | null | db.DefaultType | db.SQLFragment; /** - * **trial_data_file.file_id** + * **trial_data_file.trial_file_id** * - `uuid` in database - * - Nullable, no default + * - `NOT NULL`, default: `uuid_generate_v4()` */ - file_id?: string | db.Parameter | null | db.DefaultType | db.SQLFragment; + trial_file_id?: string | db.Parameter | db.DefaultType | db.SQLFragment; + } + export interface Updatable { /** * **trial_data_file.created_at** * - `timestamptz` in database * - `NOT NULL`, default: `now()` */ - created_at?: (db.TimestampTzString | Date) | db.Parameter<(db.TimestampTzString | Date)> | db.DefaultType | db.SQLFragment; - } - export interface Updatable { + created_at?: (db.TimestampTzString | Date) | db.Parameter<(db.TimestampTzString | Date)> | db.DefaultType | db.SQLFragment | db.SQLFragment | db.DefaultType | db.SQLFragment>; /** - * **trial_data_file.trial_file_id** + * **trial_data_file.file_id** * - `uuid` in database - * - `NOT NULL`, default: `uuid_generate_v4()` + * - Nullable, no default */ - trial_file_id?: string | db.Parameter | db.DefaultType | db.SQLFragment | db.SQLFragment | db.DefaultType | db.SQLFragment>; + file_id?: string | db.Parameter | null | db.DefaultType | db.SQLFragment | db.SQLFragment | null | db.DefaultType | db.SQLFragment>; /** * **trial_data_file.trial_data_id** * - `uuid` in database @@ -2619,17 +2625,11 @@ declare module 'zapatos/schema' { */ trial_data_id?: string | db.Parameter | null | db.DefaultType | db.SQLFragment | db.SQLFragment | null | db.DefaultType | db.SQLFragment>; /** - * **trial_data_file.file_id** + * **trial_data_file.trial_file_id** * - `uuid` in database - * - Nullable, no default - */ - file_id?: string | db.Parameter | null | db.DefaultType | db.SQLFragment | db.SQLFragment | null | db.DefaultType | db.SQLFragment>; - /** - * **trial_data_file.created_at** - * - `timestamptz` in database - * - `NOT NULL`, default: `now()` + * - `NOT NULL`, default: `uuid_generate_v4()` */ - created_at?: (db.TimestampTzString | Date) | db.Parameter<(db.TimestampTzString | Date)> | db.DefaultType | db.SQLFragment | db.SQLFragment | db.DefaultType | db.SQLFragment>; + trial_file_id?: string | db.Parameter | db.DefaultType | db.SQLFragment | db.SQLFragment | db.DefaultType | db.SQLFragment>; } export type UniqueIndex = 'trial_data_file_pkey' | 'trial_data_file_trial_data_id_file_id_key'; export type Column = keyof Selectable; @@ -2646,11 +2646,17 @@ declare module 'zapatos/schema' { export type Table = 'user'; export interface Selectable { /** - * **user.user_id** - * - `uuid` in database - * - `NOT NULL`, default: `uuid_generate_v4()` + * **user.email** + * - `text` in database + * - `NOT NULL`, no default */ - user_id: string; + email: string; + /** + * **user.email_verified_at** + * - `timestamptz` in database + * - Nullable, no default + */ + email_verified_at: Date | null; /** * **user.first_name** * - `text` in database @@ -2658,6 +2664,12 @@ declare module 'zapatos/schema' { */ first_name: string; /** + * **user.image_url** + * - `text` in database + * - Nullable, no default + */ + image_url: string | null; + /** * **user.last_name** * - `text` in database * - `NOT NULL`, no default @@ -2671,6 +2683,14 @@ declare module 'zapatos/schema' { * - `NOT NULL`, no default */ role: string; + /** + * **user.user_id** + * - `uuid` in database + * - `NOT NULL`, default: `uuid_generate_v4()` + */ + user_id: string; + } + export interface JSONSelectable { /** * **user.email** * - `text` in database @@ -2682,21 +2702,7 @@ declare module 'zapatos/schema' { * - `timestamptz` in database * - Nullable, no default */ - email_verified_at: Date | null; - /** - * **user.image_url** - * - `text` in database - * - Nullable, no default - */ - image_url: string | null; - } - export interface JSONSelectable { - /** - * **user.user_id** - * - `uuid` in database - * - `NOT NULL`, default: `uuid_generate_v4()` - */ - user_id: string; + email_verified_at: db.TimestampTzString | null; /** * **user.first_name** * - `text` in database @@ -2704,6 +2710,12 @@ declare module 'zapatos/schema' { */ first_name: string; /** + * **user.image_url** + * - `text` in database + * - Nullable, no default + */ + image_url: string | null; + /** * **user.last_name** * - `text` in database * - `NOT NULL`, no default @@ -2717,32 +2729,26 @@ declare module 'zapatos/schema' { * - `NOT NULL`, no default */ role: string; + /** + * **user.user_id** + * - `uuid` in database + * - `NOT NULL`, default: `uuid_generate_v4()` + */ + user_id: string; + } + export interface Whereable { /** * **user.email** * - `text` in database * - `NOT NULL`, no default */ - email: string; + email?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; /** * **user.email_verified_at** * - `timestamptz` in database * - Nullable, no default */ - email_verified_at: db.TimestampTzString | null; - /** - * **user.image_url** - * - `text` in database - * - Nullable, no default - */ - image_url: string | null; - } - export interface Whereable { - /** - * **user.user_id** - * - `uuid` in database - * - `NOT NULL`, default: `uuid_generate_v4()` - */ - user_id?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; + email_verified_at?: (db.TimestampTzString | Date) | db.Parameter<(db.TimestampTzString | Date)> | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; /** * **user.first_name** * - `text` in database @@ -2750,6 +2756,12 @@ declare module 'zapatos/schema' { */ first_name?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; /** + * **user.image_url** + * - `text` in database + * - Nullable, no default + */ + image_url?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; + /** * **user.last_name** * - `text` in database * - `NOT NULL`, no default @@ -2763,32 +2775,26 @@ declare module 'zapatos/schema' { * - `NOT NULL`, no default */ role?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; + /** + * **user.user_id** + * - `uuid` in database + * - `NOT NULL`, default: `uuid_generate_v4()` + */ + user_id?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; + } + export interface Insertable { /** * **user.email** * - `text` in database * - `NOT NULL`, no default */ - email?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; + email: string | db.Parameter | db.SQLFragment; /** * **user.email_verified_at** * - `timestamptz` in database * - Nullable, no default */ - email_verified_at?: (db.TimestampTzString | Date) | db.Parameter<(db.TimestampTzString | Date)> | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; - /** - * **user.image_url** - * - `text` in database - * - Nullable, no default - */ - image_url?: string | db.Parameter | db.SQLFragment | db.ParentColumn | db.SQLFragment | db.SQLFragment | db.ParentColumn>; - } - export interface Insertable { - /** - * **user.user_id** - * - `uuid` in database - * - `NOT NULL`, default: `uuid_generate_v4()` - */ - user_id?: string | db.Parameter | db.DefaultType | db.SQLFragment; + email_verified_at?: (db.TimestampTzString | Date) | db.Parameter<(db.TimestampTzString | Date)> | null | db.DefaultType | db.SQLFragment; /** * **user.first_name** * - `text` in database @@ -2796,6 +2802,12 @@ declare module 'zapatos/schema' { */ first_name: string | db.Parameter | db.SQLFragment; /** + * **user.image_url** + * - `text` in database + * - Nullable, no default + */ + image_url?: string | db.Parameter | null | db.DefaultType | db.SQLFragment; + /** * **user.last_name** * - `text` in database * - `NOT NULL`, no default @@ -2809,32 +2821,26 @@ declare module 'zapatos/schema' { * - `NOT NULL`, no default */ role: string | db.Parameter | db.SQLFragment; + /** + * **user.user_id** + * - `uuid` in database + * - `NOT NULL`, default: `uuid_generate_v4()` + */ + user_id?: string | db.Parameter | db.DefaultType | db.SQLFragment; + } + export interface Updatable { /** * **user.email** * - `text` in database * - `NOT NULL`, no default */ - email: string | db.Parameter | db.SQLFragment; + email?: string | db.Parameter | db.SQLFragment | db.SQLFragment | db.SQLFragment>; /** * **user.email_verified_at** * - `timestamptz` in database * - Nullable, no default */ - email_verified_at?: (db.TimestampTzString | Date) | db.Parameter<(db.TimestampTzString | Date)> | null | db.DefaultType | db.SQLFragment; - /** - * **user.image_url** - * - `text` in database - * - Nullable, no default - */ - image_url?: string | db.Parameter | null | db.DefaultType | db.SQLFragment; - } - export interface Updatable { - /** - * **user.user_id** - * - `uuid` in database - * - `NOT NULL`, default: `uuid_generate_v4()` - */ - user_id?: string | db.Parameter | db.DefaultType | db.SQLFragment | db.SQLFragment | db.DefaultType | db.SQLFragment>; + email_verified_at?: (db.TimestampTzString | Date) | db.Parameter<(db.TimestampTzString | Date)> | null | db.DefaultType | db.SQLFragment | db.SQLFragment | null | db.DefaultType | db.SQLFragment>; /** * **user.first_name** * - `text` in database @@ -2842,6 +2848,12 @@ declare module 'zapatos/schema' { */ first_name?: string | db.Parameter | db.SQLFragment | db.SQLFragment | db.SQLFragment>; /** + * **user.image_url** + * - `text` in database + * - Nullable, no default + */ + image_url?: string | db.Parameter | null | db.DefaultType | db.SQLFragment | db.SQLFragment | null | db.DefaultType | db.SQLFragment>; + /** * **user.last_name** * - `text` in database * - `NOT NULL`, no default @@ -2856,23 +2868,11 @@ declare module 'zapatos/schema' { */ role?: string | db.Parameter | db.SQLFragment | db.SQLFragment | db.SQLFragment>; /** - * **user.email** - * - `text` in database - * - `NOT NULL`, no default - */ - email?: string | db.Parameter | db.SQLFragment | db.SQLFragment | db.SQLFragment>; - /** - * **user.email_verified_at** - * - `timestamptz` in database - * - Nullable, no default - */ - email_verified_at?: (db.TimestampTzString | Date) | db.Parameter<(db.TimestampTzString | Date)> | null | db.DefaultType | db.SQLFragment | db.SQLFragment | null | db.DefaultType | db.SQLFragment>; - /** - * **user.image_url** - * - `text` in database - * - Nullable, no default + * **user.user_id** + * - `uuid` in database + * - `NOT NULL`, default: `uuid_generate_v4()` */ - image_url?: string | db.Parameter | null | db.DefaultType | db.SQLFragment | db.SQLFragment | null | db.DefaultType | db.SQLFragment>; + user_id?: string | db.Parameter | db.DefaultType | db.SQLFragment | db.SQLFragment | db.DefaultType | db.SQLFragment>; } export type UniqueIndex = 'user_email_key' | 'user_pkey'; export type Column = keyof Selectable;