update postgresql schema
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
// @generated
|
// @generated
|
||||||
// This file is automatically generated by Kanel. Do not modify manually.
|
// This file is automatically generated by Kanel. Do not modify manually.
|
||||||
|
|
||||||
import type { default as PublicSchema } from "./public/PublicSchema";
|
import type { default as PublicSchema } from './public/PublicSchema';
|
||||||
|
|
||||||
type Database = PublicSchema;
|
type Database = PublicSchema;
|
||||||
|
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
// @generated
|
// @generated
|
||||||
// This file is automatically generated by Kanel. Do not modify manually.
|
// This file is automatically generated by Kanel. Do not modify manually.
|
||||||
|
|
||||||
import type { UsersId } from "./Users";
|
import type { UsersId } from './Users';
|
||||||
import type { ColumnType, Selectable, Insertable, Updateable } from "kysely";
|
import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
|
||||||
|
|
||||||
/** Identifier type for public.conversations */
|
/** Identifier type for public.conversations */
|
||||||
export type ConversationsId = number & { __brand: "public.conversations" };
|
export type ConversationsId = number & { __brand: 'public.conversations' };
|
||||||
|
|
||||||
/** Represents the table public.conversations */
|
/** Represents the table public.conversations */
|
||||||
export default interface ConversationsTable {
|
export default interface ConversationsTable {
|
||||||
@@ -13,9 +13,9 @@ export default interface ConversationsTable {
|
|||||||
|
|
||||||
title: ColumnType<string | null, string | null, string | null>;
|
title: ColumnType<string | null, string | null, string | null>;
|
||||||
|
|
||||||
created_at: ColumnType<string | null, string | null, string | null>;
|
createdAt: ColumnType<string | null, string | null, string | null>;
|
||||||
|
|
||||||
user_id: ColumnType<UsersId | null, UsersId | null, UsersId | null>;
|
userId: ColumnType<UsersId | null, UsersId | null, UsersId | null>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type Conversations = Selectable<ConversationsTable>;
|
export type Conversations = Selectable<ConversationsTable>;
|
||||||
|
|||||||
@@ -1,36 +1,28 @@
|
|||||||
// @generated
|
// @generated
|
||||||
// This file is automatically generated by Kanel. Do not modify manually.
|
// This file is automatically generated by Kanel. Do not modify manually.
|
||||||
|
|
||||||
import type { FactsId } from "./Facts";
|
import type { FactsId } from './Facts';
|
||||||
import type { ConversationsId } from "./Conversations";
|
import type { ConversationsId } from './Conversations';
|
||||||
import type { ColumnType, Selectable, Insertable, Updateable } from "kysely";
|
import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
|
||||||
|
|
||||||
/** Identifier type for public.fact_triggers */
|
/** Identifier type for public.fact_triggers */
|
||||||
export type FactTriggersId = number & { __brand: "public.fact_triggers" };
|
export type FactTriggersId = number & { __brand: 'public.fact_triggers' };
|
||||||
|
|
||||||
/** Represents the table public.fact_triggers */
|
/** Represents the table public.fact_triggers */
|
||||||
export default interface FactTriggersTable {
|
export default interface FactTriggersTable {
|
||||||
id: ColumnType<FactTriggersId, never, never>;
|
id: ColumnType<FactTriggersId, never, never>;
|
||||||
|
|
||||||
fact_id: ColumnType<FactsId | null, FactsId | null, FactsId | null>;
|
sourceFactId: ColumnType<FactsId | null, FactsId | null, FactsId | null>;
|
||||||
|
|
||||||
trigger_phrase: ColumnType<string | null, string | null, string | null>;
|
content: ColumnType<string | null, string | null, string | null>;
|
||||||
|
|
||||||
priority_multiplier: ColumnType<number | null, number | null, number | null>;
|
priorityMultiplier: ColumnType<number | null, number | null, number | null>;
|
||||||
|
|
||||||
priority_multiplier_reason: ColumnType<
|
priorityMultiplierReason: ColumnType<string | null, string | null, string | null>;
|
||||||
string | null,
|
|
||||||
string | null,
|
|
||||||
string | null
|
|
||||||
>;
|
|
||||||
|
|
||||||
scope_conversation_id: ColumnType<
|
scopeConversationId: ColumnType<ConversationsId | null, ConversationsId | null, ConversationsId | null>;
|
||||||
ConversationsId | null,
|
|
||||||
ConversationsId | null,
|
|
||||||
ConversationsId | null
|
|
||||||
>;
|
|
||||||
|
|
||||||
created_at: ColumnType<string | null, string | null, string | null>;
|
createdAt: ColumnType<string | null, string | null, string | null>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type FactTriggers = Selectable<FactTriggersTable>;
|
export type FactTriggers = Selectable<FactTriggersTable>;
|
||||||
|
|||||||
@@ -1,28 +1,24 @@
|
|||||||
// @generated
|
// @generated
|
||||||
// This file is automatically generated by Kanel. Do not modify manually.
|
// This file is automatically generated by Kanel. Do not modify manually.
|
||||||
|
|
||||||
import type { UsersId } from "./Users";
|
import type { UsersId } from './Users';
|
||||||
import type { MessagesId } from "./Messages";
|
import type { MessagesId } from './Messages';
|
||||||
import type { ColumnType, Selectable, Insertable, Updateable } from "kysely";
|
import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
|
||||||
|
|
||||||
/** Identifier type for public.facts */
|
/** Identifier type for public.facts */
|
||||||
export type FactsId = number & { __brand: "public.facts" };
|
export type FactsId = number & { __brand: 'public.facts' };
|
||||||
|
|
||||||
/** Represents the table public.facts */
|
/** Represents the table public.facts */
|
||||||
export default interface FactsTable {
|
export default interface FactsTable {
|
||||||
id: ColumnType<FactsId, never, never>;
|
id: ColumnType<FactsId, never, never>;
|
||||||
|
|
||||||
user_id: ColumnType<UsersId | null, UsersId | null, UsersId | null>;
|
userId: ColumnType<UsersId | null, UsersId | null, UsersId | null>;
|
||||||
|
|
||||||
source_message_id: ColumnType<
|
sourceMessageId: ColumnType<MessagesId | null, MessagesId | null, MessagesId | null>;
|
||||||
MessagesId | null,
|
|
||||||
MessagesId | null,
|
|
||||||
MessagesId | null
|
|
||||||
>;
|
|
||||||
|
|
||||||
content: ColumnType<string | null, string | null, string | null>;
|
content: ColumnType<string | null, string | null, string | null>;
|
||||||
|
|
||||||
created_at: ColumnType<string | null, string | null, string | null>;
|
createdAt: ColumnType<string | null, string | null, string | null>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type Facts = Selectable<FactsTable>;
|
export type Facts = Selectable<FactsTable>;
|
||||||
|
|||||||
@@ -1,32 +1,28 @@
|
|||||||
// @generated
|
// @generated
|
||||||
// This file is automatically generated by Kanel. Do not modify manually.
|
// This file is automatically generated by Kanel. Do not modify manually.
|
||||||
|
|
||||||
import type { ConversationsId } from "./Conversations";
|
import type { ConversationsId } from './Conversations';
|
||||||
import type { default as Role } from "./Role";
|
import type { default as Role } from './Role';
|
||||||
import type { ColumnType, Selectable, Insertable, Updateable } from "kysely";
|
import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
|
||||||
|
|
||||||
/** Identifier type for public.messages */
|
/** Identifier type for public.messages */
|
||||||
export type MessagesId = number & { __brand: "public.messages" };
|
export type MessagesId = number & { __brand: 'public.messages' };
|
||||||
|
|
||||||
/** Represents the table public.messages */
|
/** Represents the table public.messages */
|
||||||
export default interface MessagesTable {
|
export default interface MessagesTable {
|
||||||
id: ColumnType<MessagesId, never, never>;
|
id: ColumnType<MessagesId, never, never>;
|
||||||
|
|
||||||
conversation_id: ColumnType<
|
conversationId: ColumnType<ConversationsId | null, ConversationsId | null, ConversationsId | null>;
|
||||||
ConversationsId | null,
|
|
||||||
ConversationsId | null,
|
|
||||||
ConversationsId | null
|
|
||||||
>;
|
|
||||||
|
|
||||||
index: ColumnType<number | null, number | null, number | null>;
|
index: ColumnType<number | null, number | null, number | null>;
|
||||||
|
|
||||||
content: ColumnType<string | null, string | null, string | null>;
|
runningSummary: ColumnType<string | null, string | null, string | null>;
|
||||||
|
|
||||||
running_summary: ColumnType<string | null, string | null, string | null>;
|
|
||||||
|
|
||||||
created_at: ColumnType<string | null, string | null, string | null>;
|
created_at: ColumnType<string | null, string | null, string | null>;
|
||||||
|
|
||||||
role: ColumnType<Role | null, Role | null, Role | null>;
|
role: ColumnType<Role | null, Role | null, Role | null>;
|
||||||
|
|
||||||
|
parts: ColumnType<unknown | null, unknown | null, unknown | null>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type Messages = Selectable<MessagesTable>;
|
export type Messages = Selectable<MessagesTable>;
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
// @generated
|
// @generated
|
||||||
// This file is automatically generated by Kanel. Do not modify manually.
|
// This file is automatically generated by Kanel. Do not modify manually.
|
||||||
|
|
||||||
import type { default as UsersTable } from "./Users";
|
import type { default as UsersTable } from './Users';
|
||||||
import type { default as MessagesTable } from "./Messages";
|
import type { default as MessagesTable } from './Messages';
|
||||||
import type { default as ToolsTable } from "./Tools";
|
import type { default as ToolsTable } from './Tools';
|
||||||
import type { default as FactTriggersTable } from "./FactTriggers";
|
import type { default as FactTriggersTable } from './FactTriggers';
|
||||||
import type { default as FactsTable } from "./Facts";
|
import type { default as FactsTable } from './Facts';
|
||||||
import type { default as ConversationsTable } from "./Conversations";
|
import type { default as ConversationsTable } from './Conversations';
|
||||||
|
|
||||||
export default interface PublicSchema {
|
export default interface PublicSchema {
|
||||||
users: UsersTable;
|
users: UsersTable;
|
||||||
|
|||||||
@@ -2,6 +2,9 @@
|
|||||||
// This file is automatically generated by Kanel. Do not modify manually.
|
// This file is automatically generated by Kanel. Do not modify manually.
|
||||||
|
|
||||||
/** Represents the enum public.role */
|
/** Represents the enum public.role */
|
||||||
type Role = "user" | "assistant" | "system";
|
type Role =
|
||||||
|
| 'user'
|
||||||
|
| 'assistant'
|
||||||
|
| 'system';
|
||||||
|
|
||||||
export default Role;
|
export default Role;
|
||||||
|
|||||||
@@ -1,40 +1,32 @@
|
|||||||
// @generated
|
// @generated
|
||||||
// This file is automatically generated by Kanel. Do not modify manually.
|
// This file is automatically generated by Kanel. Do not modify manually.
|
||||||
|
|
||||||
import type { UsersId } from "./Users";
|
import type { UsersId } from './Users';
|
||||||
import type { MessagesId } from "./Messages";
|
import type { MessagesId } from './Messages';
|
||||||
import type { ColumnType, Selectable, Insertable, Updateable } from "kysely";
|
import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
|
||||||
|
|
||||||
/** Identifier type for public.tools */
|
/** Identifier type for public.tools */
|
||||||
export type ToolsId = number & { __brand: "public.tools" };
|
export type ToolsId = number & { __brand: 'public.tools' };
|
||||||
|
|
||||||
/** Represents the table public.tools */
|
/** Represents the table public.tools */
|
||||||
export default interface ToolsTable {
|
export default interface ToolsTable {
|
||||||
id: ColumnType<ToolsId, never, never>;
|
id: ColumnType<ToolsId, never, never>;
|
||||||
|
|
||||||
user_id: ColumnType<UsersId | null, UsersId | null, UsersId | null>;
|
userId: ColumnType<UsersId | null, UsersId | null, UsersId | null>;
|
||||||
|
|
||||||
source_message_id: ColumnType<
|
sourceMessageId: ColumnType<MessagesId | null, MessagesId | null, MessagesId | null>;
|
||||||
MessagesId | null,
|
|
||||||
MessagesId | null,
|
|
||||||
MessagesId | null
|
|
||||||
>;
|
|
||||||
|
|
||||||
name: ColumnType<string | null, string | null, string | null>;
|
name: ColumnType<string | null, string | null, string | null>;
|
||||||
|
|
||||||
description: ColumnType<string | null, string | null, string | null>;
|
description: ColumnType<string | null, string | null, string | null>;
|
||||||
|
|
||||||
parameter_schema: ColumnType<unknown | null, unknown | null, unknown | null>;
|
parameterSchema: ColumnType<unknown | null, unknown | null, unknown | null>;
|
||||||
|
|
||||||
implementation_language: ColumnType<
|
implementationLanguage: ColumnType<string | null, string | null, string | null>;
|
||||||
string | null,
|
|
||||||
string | null,
|
|
||||||
string | null
|
|
||||||
>;
|
|
||||||
|
|
||||||
implementation_code: ColumnType<string | null, string | null, string | null>;
|
implementationCode: ColumnType<string | null, string | null, string | null>;
|
||||||
|
|
||||||
created_at: ColumnType<string | null, string | null, string | null>;
|
createdAt: ColumnType<string | null, string | null, string | null>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type Tools = Selectable<ToolsTable>;
|
export type Tools = Selectable<ToolsTable>;
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
// @generated
|
// @generated
|
||||||
// This file is automatically generated by Kanel. Do not modify manually.
|
// This file is automatically generated by Kanel. Do not modify manually.
|
||||||
|
|
||||||
import type { ColumnType, Selectable, Insertable, Updateable } from "kysely";
|
import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
|
||||||
|
|
||||||
/** Identifier type for public.users */
|
/** Identifier type for public.users */
|
||||||
export type UsersId = number & { __brand: "public.users" };
|
export type UsersId = number & { __brand: 'public.users' };
|
||||||
|
|
||||||
/** Represents the table public.users */
|
/** Represents the table public.users */
|
||||||
export default interface UsersTable {
|
export default interface UsersTable {
|
||||||
@@ -16,9 +16,9 @@ export default interface UsersTable {
|
|||||||
|
|
||||||
email: ColumnType<string | null, string | null, string | null>;
|
email: ColumnType<string | null, string | null, string | null>;
|
||||||
|
|
||||||
last_login: ColumnType<string | null, string | null, string | null>;
|
lastLogin: ColumnType<string | null, string | null, string | null>;
|
||||||
|
|
||||||
created_at: ColumnType<string | null, string | null, string | null>;
|
createdAt: ColumnType<string | null, string | null, string | null>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type Users = Selectable<UsersTable>;
|
export type Users = Selectable<UsersTable>;
|
||||||
|
|||||||
Reference in New Issue
Block a user