infoalloggi-monorepo/apps/infoalloggi/src/schemas/public/Messages.ts

31 lines
1,012 B
TypeScript
Raw Normal View History

2025-08-04 17:45:44 +02:00
// @generated
// This file is automatically generated by Kanel. Do not modify manually.
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 */
export type MessagesMessageid = string & { __brand: 'public.messages' };
2025-08-04 17:45:44 +02:00
/** Represents the table public.messages */
export default interface MessagesTable {
messageid: ColumnType<MessagesMessageid, MessagesMessageid | undefined, MessagesMessageid>;
2025-08-04 17:45:44 +02:00
chatid: ColumnType<ChatsChatid, ChatsChatid, ChatsChatid>;
2025-08-04 17:45:44 +02:00
message: ColumnType<string | null, string | null, string | null>;
2025-08-04 17:45:44 +02:00
time: ColumnType<Date, Date | string, Date | string>;
2025-08-04 17:45:44 +02:00
isread: ColumnType<boolean, boolean | undefined, boolean>;
2025-08-04 17:45:44 +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>;