2026-04-28 17:46:34 +02:00
|
|
|
import { chatsChatid, type ChatsChatid } from './Chats';
|
|
|
|
|
import { etichetteIdEtichetta, type EtichetteIdEtichetta } from './Etichette';
|
2025-10-21 18:42:03 +02:00
|
|
|
import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
|
2026-04-28 17:46:34 +02:00
|
|
|
import { z } from 'zod';
|
2025-08-04 17:45:44 +02:00
|
|
|
|
|
|
|
|
/** Represents the table public.chats_etichette */
|
|
|
|
|
export default interface ChatsEtichetteTable {
|
2025-10-21 18:42:03 +02:00
|
|
|
chatid: ColumnType<ChatsChatid, ChatsChatid, ChatsChatid>;
|
2025-08-04 17:45:44 +02:00
|
|
|
|
2025-10-21 18:42:03 +02:00
|
|
|
etichettaid: ColumnType<EtichetteIdEtichetta, EtichetteIdEtichetta, EtichetteIdEtichetta>;
|
2025-08-04 17:45:44 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ChatsEtichette = Selectable<ChatsEtichetteTable>;
|
|
|
|
|
|
|
|
|
|
export type NewChatsEtichette = Insertable<ChatsEtichetteTable>;
|
|
|
|
|
|
2026-04-28 17:46:34 +02:00
|
|
|
export type ChatsEtichetteUpdate = Updateable<ChatsEtichetteTable>;
|
|
|
|
|
|
|
|
|
|
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(),
|
|
|
|
|
});
|