// @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';

/** 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>;
