26 lines
798 B
TypeScript
26 lines
798 B
TypeScript
|
|
// @generated
|
||
|
|
// This file is automatically generated by Kanel. Do not modify manually.
|
||
|
|
|
||
|
|
import type { UsersId } from './Users';
|
||
|
|
import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
|
||
|
|
|
||
|
|
/** Identifier type for public.chats */
|
||
|
|
export type ChatsChatid = string & { __brand: 'public.chats' };
|
||
|
|
|
||
|
|
/** Represents the table public.chats */
|
||
|
|
export default interface ChatsTable {
|
||
|
|
chatid: ColumnType<ChatsChatid, ChatsChatid | undefined, ChatsChatid>;
|
||
|
|
|
||
|
|
created_at: ColumnType<Date, Date | string, Date | string>;
|
||
|
|
|
||
|
|
user_ref: ColumnType<UsersId, UsersId, UsersId>;
|
||
|
|
|
||
|
|
tags: ColumnType<string[] | null, string[] | null, string[] | null>;
|
||
|
|
}
|
||
|
|
|
||
|
|
export type Chats = Selectable<ChatsTable>;
|
||
|
|
|
||
|
|
export type NewChats = Insertable<ChatsTable>;
|
||
|
|
|
||
|
|
export type ChatsUpdate = Updateable<ChatsTable>;
|