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

35 lines
1,015 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.
2025-08-29 16:18:32 +02:00
import type { ColumnType, Insertable, Selectable, Updateable } from "kysely";
import type { ChatsChatid } from "./Chats";
import type { UsersId } from "./Users";
2025-08-04 17:45:44 +02:00
/** Identifier type for public.messages */
2025-08-29 16:18:32 +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-08-29 16:18:32 +02:00
messageid: ColumnType<
MessagesMessageid,
MessagesMessageid | undefined,
MessagesMessageid
>;
2025-08-04 17:45:44 +02:00
2025-08-29 16:18:32 +02:00
chatid: ColumnType<ChatsChatid, ChatsChatid, ChatsChatid>;
2025-08-04 17:45:44 +02:00
2025-08-29 16:18:32 +02:00
message: ColumnType<string | null, string | null, string | null>;
2025-08-04 17:45:44 +02:00
2025-08-29 16:18:32 +02:00
time: ColumnType<Date, Date | string, Date | string>;
2025-08-04 17:45:44 +02:00
2025-08-29 16:18:32 +02:00
isread: ColumnType<boolean, boolean | undefined, boolean>;
2025-08-04 17:45:44 +02:00
2025-08-29 16:18:32 +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>;