infoalloggi-monorepo/apps/infoalloggi/src/schemas/public/Messages.ts
2025-08-29 16:18:32 +02:00

34 lines
1,015 B
TypeScript

// @generated
// This file is automatically generated by Kanel. Do not modify manually.
import type { ColumnType, Insertable, Selectable, Updateable } from "kysely";
import type { ChatsChatid } from "./Chats";
import type { UsersId } from "./Users";
/** Identifier type for public.messages */
export type MessagesMessageid = string & { __brand: "public.messages" };
/** Represents the table public.messages */
export default interface MessagesTable {
messageid: ColumnType<
MessagesMessageid,
MessagesMessageid | undefined,
MessagesMessageid
>;
chatid: ColumnType<ChatsChatid, ChatsChatid, ChatsChatid>;
message: ColumnType<string | null, string | null, string | null>;
time: ColumnType<Date, Date | string, Date | string>;
isread: ColumnType<boolean, boolean | undefined, boolean>;
sender: ColumnType<UsersId, UsersId, UsersId>;
}
export type Messages = Selectable<MessagesTable>;
export type NewMessages = Insertable<MessagesTable>;
export type MessagesUpdate = Updateable<MessagesTable>;