import { chatsChatid, type ChatsChatid } from './Chats'; import { etichetteIdEtichetta, type EtichetteIdEtichetta } from './Etichette'; import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; import { z } from 'zod'; /** Represents the table public.chats_etichette */ export default interface ChatsEtichetteTable { chatid: ColumnType; etichettaid: ColumnType; } export type ChatsEtichette = Selectable; export type NewChatsEtichette = Insertable; export type ChatsEtichetteUpdate = Updateable; export const ChatsEtichetteSchema = z.object({ chatid: chatsChatid, etichettaid: etichetteIdEtichetta, }); export const NewChatsEtichetteSchema = z.object({ chatid: chatsChatid, etichettaid: etichetteIdEtichetta, }); export const ChatsEtichetteUpdateSchema = z.object({ chatid: chatsChatid.optional(), etichettaid: etichetteIdEtichetta.optional(), });