infoalloggi-monorepo/apps/infoalloggi/src/schemas/public/ServizioAnnunci.ts
Marco Pedone 2ac16e4f33 Refactor Kanel configuration and update schema files
- Updated kanel.config.js to use makePgTsGenerator and adjusted type filtering.
- Modified various schema files to remove autogenerated comments and updated type definitions for enums to use union types.
- Added new MessagesAttachments schema and integrated it into PublicSchema.
- Ensured consistency in export types across all schema files.
2026-04-27 16:53:54 +02:00

46 lines
No EOL
2 KiB
TypeScript

import type { ServizioServizioId } from './Servizio';
import type { AnnunciId } from './Annunci';
import type { default as StatusConfermaEnum } from './StatusConfermaEnum';
import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
/** Identifier type for public.servizio_annunci */
export type ServizioAnnunciServizioAnnunciId = number & { __brand: 'public.servizio_annunci' };
/** Represents the table public.servizio_annunci */
export default interface ServizioAnnunciTable {
servizio_annunci_id: ColumnType<ServizioAnnunciServizioAnnunciId, ServizioAnnunciServizioAnnunciId | undefined, ServizioAnnunciServizioAnnunciId>;
servizio_id: ColumnType<ServizioServizioId, ServizioServizioId, ServizioServizioId>;
annunci_id: ColumnType<AnnunciId, AnnunciId, AnnunciId>;
created_at: ColumnType<Date, Date | string | undefined, Date | string>;
open_contatti_at: ColumnType<Date | null, Date | string | null, Date | string | null>;
doc_contratto_ref: ColumnType<string | null, string | null, string | null>;
gestionale_id: ColumnType<number | null, number | null, number | null>;
contratto_decorrenza: ColumnType<Date | null, Date | string | null, Date | string | null>;
contratto_scadenza: ColumnType<Date | null, Date | string | null, Date | string | null>;
contratto_tipo: ColumnType<string | null, string | null, string | null>;
doc_registrazione_ref: ColumnType<string | null, string | null, string | null>;
doc_contratto_added: ColumnType<boolean, boolean | undefined, boolean>;
doc_registrazione_added: ColumnType<boolean, boolean | undefined, boolean>;
note: ColumnType<string | null, string | null, string | null>;
status_conferma: ColumnType<StatusConfermaEnum | null, StatusConfermaEnum | null, StatusConfermaEnum | null>;
}
export type ServizioAnnunci = Selectable<ServizioAnnunciTable>;
export type NewServizioAnnunci = Insertable<ServizioAnnunciTable>;
export type ServizioAnnunciUpdate = Updateable<ServizioAnnunciTable>;