2025-08-04 17:45:44 +02:00
|
|
|
// @generated
|
|
|
|
|
// This file is automatically generated by Kanel. Do not modify manually.
|
|
|
|
|
|
2025-10-21 18:42:03 +02:00
|
|
|
import type { ChatsChatid } from './Chats';
|
|
|
|
|
import type { UsersId } from './Users';
|
|
|
|
|
import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
|
2025-08-04 17:45:44 +02:00
|
|
|
|
|
|
|
|
/** Identifier type for public.messages */
|
2025-10-21 18:42:03 +02:00
|
|
|
export type MessagesMessageid = string & { __brand: 'public.messages' };
|
2025-08-04 17:45:44 +02:00
|
|
|
|
|
|
|
|
/** Represents the table public.messages */
|
|
|
|
|
export default interface MessagesTable {
|
2025-10-21 18:42:03 +02:00
|
|
|
messageid: ColumnType<MessagesMessageid, MessagesMessageid | undefined, MessagesMessageid>;
|
2025-08-04 17:45:44 +02:00
|
|
|
|
2025-10-21 18:42:03 +02:00
|
|
|
chatid: ColumnType<ChatsChatid, ChatsChatid, ChatsChatid>;
|
2025-08-04 17:45:44 +02:00
|
|
|
|
2025-10-21 18:42:03 +02:00
|
|
|
message: ColumnType<string | null, string | null, string | null>;
|
2025-08-04 17:45:44 +02:00
|
|
|
|
2025-10-21 18:42:03 +02:00
|
|
|
time: ColumnType<Date, Date | string, Date | string>;
|
2025-08-04 17:45:44 +02:00
|
|
|
|
2025-10-21 18:42:03 +02:00
|
|
|
isread: ColumnType<boolean, boolean | undefined, boolean>;
|
2025-08-04 17:45:44 +02:00
|
|
|
|
2025-10-21 18:42:03 +02:00
|
|
|
sender: ColumnType<UsersId, UsersId, UsersId>;
|
2025-08-04 17:45:44 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type Messages = Selectable<MessagesTable>;
|
|
|
|
|
|
|
|
|
|
export type NewMessages = Insertable<MessagesTable>;
|
|
|
|
|
|
|
|
|
|
export type MessagesUpdate = Updateable<MessagesTable>;
|