From 2ac16e4f33a014065fd0857ba89750be8b72c07f Mon Sep 17 00:00:00 2001 From: Marco Pedone Date: Mon, 27 Apr 2026 16:53:54 +0200 Subject: [PATCH] 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. --- apps/infoalloggi/kanel.config.js | 24 ++++++++++--------- apps/infoalloggi/src/schemas/Database.ts | 5 +--- .../infoalloggi/src/schemas/public/Annunci.ts | 8 ++----- .../infoalloggi/src/schemas/public/BanType.ts | 16 +++++-------- .../infoalloggi/src/schemas/public/Banlist.ts | 5 +--- .../infoalloggi/src/schemas/public/Banners.ts | 5 +--- apps/infoalloggi/src/schemas/public/Chats.ts | 5 +--- .../src/schemas/public/ChatsEtichette.ts | 5 +--- apps/infoalloggi/src/schemas/public/Comuni.ts | 5 +--- apps/infoalloggi/src/schemas/public/Emails.ts | 5 +--- .../src/schemas/public/Etichette.ts | 5 +--- .../src/schemas/public/EventQueue.ts | 5 +--- apps/infoalloggi/src/schemas/public/Flags.ts | 5 +--- .../src/schemas/public/GenericStatusEnum.ts | 14 ++++------- .../src/schemas/public/ImagesRefs.ts | 5 +--- .../src/schemas/public/Messages.ts | 5 +--- .../src/schemas/public/MessagesAttachments.ts | 16 +++++++++++++ .../infoalloggi/src/schemas/public/Nazioni.ts | 5 +--- .../src/schemas/public/OrderTypeEnum.ts | 18 ++++++-------- apps/infoalloggi/src/schemas/public/Ordini.ts | 5 +--- .../src/schemas/public/PaymentStatusEnum.ts | 14 ++++------- .../src/schemas/public/Potenziali.ts | 5 +--- .../src/schemas/public/PotenzialiGroups.ts | 5 +--- .../src/schemas/public/Prezziario.ts | 5 +--- .../src/schemas/public/Provincie.ts | 5 +--- .../src/schemas/public/PublicSchema.ts | 8 +++---- .../src/schemas/public/Ratelimiter.ts | 5 +--- .../infoalloggi/src/schemas/public/Rinnovi.ts | 5 +--- .../src/schemas/public/Servizio.ts | 5 +--- .../src/schemas/public/ServizioAnnunci.ts | 5 +--- .../src/schemas/public/ServizioInteressi.ts | 5 +--- .../src/schemas/public/StatusConfermaEnum.ts | 14 ++++------- .../src/schemas/public/TestiEStringhe.ts | 5 +--- .../schemas/public/TipologiaPosizioneEnum.ts | 12 ++++------ .../src/schemas/public/UserEtichette.ts | 5 +--- .../src/schemas/public/UserInvites.ts | 5 +--- apps/infoalloggi/src/schemas/public/Users.ts | 5 +--- .../src/schemas/public/UsersAnagrafica.ts | 5 +--- .../src/schemas/public/UsersStorage.ts | 5 +--- .../src/schemas/public/VideosRefs.ts | 5 +--- 40 files changed, 97 insertions(+), 197 deletions(-) create mode 100644 apps/infoalloggi/src/schemas/public/MessagesAttachments.ts diff --git a/apps/infoalloggi/kanel.config.js b/apps/infoalloggi/kanel.config.js index a2ae8f9..f32704d 100644 --- a/apps/infoalloggi/kanel.config.js +++ b/apps/infoalloggi/kanel.config.js @@ -1,5 +1,5 @@ const { makeKyselyHook } = require("kanel-kysely"); - +const { makePgTsGenerator } = require("kanel"); const ignoredTables = ["schema_migrations"]; /** @type {import('kanel').Config} */ @@ -11,17 +11,19 @@ module.exports = { password: "rootpost", port: 5433, }, - - typeFilter: (pgType) => !ignoredTables.includes(pgType.name), - preDeleteOutputFolder: true, + filter: (pgTable) => !ignoredTables.includes(pgTable.name), outputPath: "./src/schemas", + generators: [makePgTsGenerator({ + customTypeMap: { + "pg_catalog.tsvector": "string", + "pg_catalog.bpchar": "string", + 'pg_catalog.numeric': 'number', + //"pg_catalog.json": "string", + }, + preRenderHooks: [makeKyselyHook()], - customTypeMap: { - "pg_catalog.tsvector": "string", - "pg_catalog.bpchar": "string", - 'pg_catalog.numeric': 'number', - //"pg_catalog.json": "string", - }, - preRenderHooks: [makeKyselyHook()], + }), + ], + preDeleteOutputFolder: true, }; diff --git a/apps/infoalloggi/src/schemas/Database.ts b/apps/infoalloggi/src/schemas/Database.ts index 2fa9940..73aadd3 100644 --- a/apps/infoalloggi/src/schemas/Database.ts +++ b/apps/infoalloggi/src/schemas/Database.ts @@ -1,8 +1,5 @@ -// @generated -// This file is automatically generated by Kanel. Do not modify manually. - import type { default as PublicSchema } from './public/PublicSchema'; type Database = PublicSchema; -export default Database; +export default Database; \ No newline at end of file diff --git a/apps/infoalloggi/src/schemas/public/Annunci.ts b/apps/infoalloggi/src/schemas/public/Annunci.ts index 38b9105..99050c4 100644 --- a/apps/infoalloggi/src/schemas/public/Annunci.ts +++ b/apps/infoalloggi/src/schemas/public/Annunci.ts @@ -1,7 +1,3 @@ -// @generated -// This file is automatically generated by Kanel. Do not modify manually. - -import type { Caratteristiche } from '../../utils/kanel-types.ts'; import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; /** Identifier type for public.annunci */ @@ -89,7 +85,7 @@ export default interface AnnunciTable { web: ColumnType; - caratteristiche: ColumnType; + caratteristiche: ColumnType; homepage: ColumnType; @@ -118,4 +114,4 @@ export type Annunci = Selectable; export type NewAnnunci = Insertable; -export type AnnunciUpdate = Updateable; +export type AnnunciUpdate = Updateable; \ No newline at end of file diff --git a/apps/infoalloggi/src/schemas/public/BanType.ts b/apps/infoalloggi/src/schemas/public/BanType.ts index 5b80585..6df2169 100644 --- a/apps/infoalloggi/src/schemas/public/BanType.ts +++ b/apps/infoalloggi/src/schemas/public/BanType.ts @@ -1,12 +1,8 @@ -// @generated -// This file is automatically generated by Kanel. Do not modify manually. - /** Represents the enum public.BanType */ -enum BanType { - ip = 'ip', - email = 'email', - phone = 'phone', - cf = 'cf', -}; +type BanType = + | 'ip' + | 'email' + | 'phone' + | 'cf'; -export default BanType; +export default BanType; \ No newline at end of file diff --git a/apps/infoalloggi/src/schemas/public/Banlist.ts b/apps/infoalloggi/src/schemas/public/Banlist.ts index 3d08111..a95c7ce 100644 --- a/apps/infoalloggi/src/schemas/public/Banlist.ts +++ b/apps/infoalloggi/src/schemas/public/Banlist.ts @@ -1,6 +1,3 @@ -// @generated -// This file is automatically generated by Kanel. Do not modify manually. - import type { default as BanType } from './BanType'; import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; @@ -20,4 +17,4 @@ export type Banlist = Selectable; export type NewBanlist = Insertable; -export type BanlistUpdate = Updateable; +export type BanlistUpdate = Updateable; \ No newline at end of file diff --git a/apps/infoalloggi/src/schemas/public/Banners.ts b/apps/infoalloggi/src/schemas/public/Banners.ts index d8de94a..071b5a1 100644 --- a/apps/infoalloggi/src/schemas/public/Banners.ts +++ b/apps/infoalloggi/src/schemas/public/Banners.ts @@ -1,6 +1,3 @@ -// @generated -// This file is automatically generated by Kanel. Do not modify manually. - import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; /** Identifier type for public.banners */ @@ -39,4 +36,4 @@ export type Banners = Selectable; export type NewBanners = Insertable; -export type BannersUpdate = Updateable; +export type BannersUpdate = Updateable; \ No newline at end of file diff --git a/apps/infoalloggi/src/schemas/public/Chats.ts b/apps/infoalloggi/src/schemas/public/Chats.ts index 53e1ea4..8ef3244 100644 --- a/apps/infoalloggi/src/schemas/public/Chats.ts +++ b/apps/infoalloggi/src/schemas/public/Chats.ts @@ -1,6 +1,3 @@ -// @generated -// This file is automatically generated by Kanel. Do not modify manually. - import type { UsersId } from './Users'; import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; @@ -22,4 +19,4 @@ export type Chats = Selectable; export type NewChats = Insertable; -export type ChatsUpdate = Updateable; +export type ChatsUpdate = Updateable; \ No newline at end of file diff --git a/apps/infoalloggi/src/schemas/public/ChatsEtichette.ts b/apps/infoalloggi/src/schemas/public/ChatsEtichette.ts index c69780d..b9d6750 100644 --- a/apps/infoalloggi/src/schemas/public/ChatsEtichette.ts +++ b/apps/infoalloggi/src/schemas/public/ChatsEtichette.ts @@ -1,6 +1,3 @@ -// @generated -// This file is automatically generated by Kanel. Do not modify manually. - import type { ChatsChatid } from './Chats'; import type { EtichetteIdEtichetta } from './Etichette'; import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; @@ -16,4 +13,4 @@ export type ChatsEtichette = Selectable; export type NewChatsEtichette = Insertable; -export type ChatsEtichetteUpdate = Updateable; +export type ChatsEtichetteUpdate = Updateable; \ No newline at end of file diff --git a/apps/infoalloggi/src/schemas/public/Comuni.ts b/apps/infoalloggi/src/schemas/public/Comuni.ts index 17bf87f..d72ace2 100644 --- a/apps/infoalloggi/src/schemas/public/Comuni.ts +++ b/apps/infoalloggi/src/schemas/public/Comuni.ts @@ -1,6 +1,3 @@ -// @generated -// This file is automatically generated by Kanel. Do not modify manually. - import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; /** Identifier type for public.comuni */ @@ -23,4 +20,4 @@ export type Comuni = Selectable; export type NewComuni = Insertable; -export type ComuniUpdate = Updateable; +export type ComuniUpdate = Updateable; \ No newline at end of file diff --git a/apps/infoalloggi/src/schemas/public/Emails.ts b/apps/infoalloggi/src/schemas/public/Emails.ts index a9e2820..0427470 100644 --- a/apps/infoalloggi/src/schemas/public/Emails.ts +++ b/apps/infoalloggi/src/schemas/public/Emails.ts @@ -1,6 +1,3 @@ -// @generated -// This file is automatically generated by Kanel. Do not modify manually. - import type { UsersId } from './Users'; import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; @@ -22,4 +19,4 @@ export type Emails = Selectable; export type NewEmails = Insertable; -export type EmailsUpdate = Updateable; +export type EmailsUpdate = Updateable; \ No newline at end of file diff --git a/apps/infoalloggi/src/schemas/public/Etichette.ts b/apps/infoalloggi/src/schemas/public/Etichette.ts index b7acf96..0ea3190 100644 --- a/apps/infoalloggi/src/schemas/public/Etichette.ts +++ b/apps/infoalloggi/src/schemas/public/Etichette.ts @@ -1,6 +1,3 @@ -// @generated -// This file is automatically generated by Kanel. Do not modify manually. - import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; /** Identifier type for public.etichette */ @@ -19,4 +16,4 @@ export type Etichette = Selectable; export type NewEtichette = Insertable; -export type EtichetteUpdate = Updateable; +export type EtichetteUpdate = Updateable; \ No newline at end of file diff --git a/apps/infoalloggi/src/schemas/public/EventQueue.ts b/apps/infoalloggi/src/schemas/public/EventQueue.ts index 1989ea0..813a71e 100644 --- a/apps/infoalloggi/src/schemas/public/EventQueue.ts +++ b/apps/infoalloggi/src/schemas/public/EventQueue.ts @@ -1,6 +1,3 @@ -// @generated -// This file is automatically generated by Kanel. Do not modify manually. - import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; /** Identifier type for public.event_queue */ @@ -21,4 +18,4 @@ export type EventQueue = Selectable; export type NewEventQueue = Insertable; -export type EventQueueUpdate = Updateable; +export type EventQueueUpdate = Updateable; \ No newline at end of file diff --git a/apps/infoalloggi/src/schemas/public/Flags.ts b/apps/infoalloggi/src/schemas/public/Flags.ts index b9338c5..06ae78d 100644 --- a/apps/infoalloggi/src/schemas/public/Flags.ts +++ b/apps/infoalloggi/src/schemas/public/Flags.ts @@ -1,6 +1,3 @@ -// @generated -// This file is automatically generated by Kanel. Do not modify manually. - import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; /** Identifier type for public.flags */ @@ -17,4 +14,4 @@ export type Flags = Selectable; export type NewFlags = Insertable; -export type FlagsUpdate = Updateable; +export type FlagsUpdate = Updateable; \ No newline at end of file diff --git a/apps/infoalloggi/src/schemas/public/GenericStatusEnum.ts b/apps/infoalloggi/src/schemas/public/GenericStatusEnum.ts index 2d17b4e..3e17904 100644 --- a/apps/infoalloggi/src/schemas/public/GenericStatusEnum.ts +++ b/apps/infoalloggi/src/schemas/public/GenericStatusEnum.ts @@ -1,11 +1,7 @@ -// @generated -// This file is automatically generated by Kanel. Do not modify manually. - /** Represents the enum public.GenericStatusEnum */ -enum GenericStatusEnum { - pending = 'pending', - success = 'success', - failed = 'failed', -}; +type GenericStatusEnum = + | 'pending' + | 'success' + | 'failed'; -export default GenericStatusEnum; +export default GenericStatusEnum; \ No newline at end of file diff --git a/apps/infoalloggi/src/schemas/public/ImagesRefs.ts b/apps/infoalloggi/src/schemas/public/ImagesRefs.ts index e192dfb..aaa2da2 100644 --- a/apps/infoalloggi/src/schemas/public/ImagesRefs.ts +++ b/apps/infoalloggi/src/schemas/public/ImagesRefs.ts @@ -1,6 +1,3 @@ -// @generated -// This file is automatically generated by Kanel. Do not modify manually. - import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; /** Represents the table public.images_refs */ @@ -20,4 +17,4 @@ export type ImagesRefs = Selectable; export type NewImagesRefs = Insertable; -export type ImagesRefsUpdate = Updateable; +export type ImagesRefsUpdate = Updateable; \ No newline at end of file diff --git a/apps/infoalloggi/src/schemas/public/Messages.ts b/apps/infoalloggi/src/schemas/public/Messages.ts index 05112c5..d54e238 100644 --- a/apps/infoalloggi/src/schemas/public/Messages.ts +++ b/apps/infoalloggi/src/schemas/public/Messages.ts @@ -1,6 +1,3 @@ -// @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'; @@ -31,4 +28,4 @@ export type Messages = Selectable; export type NewMessages = Insertable; -export type MessagesUpdate = Updateable; +export type MessagesUpdate = Updateable; \ No newline at end of file diff --git a/apps/infoalloggi/src/schemas/public/MessagesAttachments.ts b/apps/infoalloggi/src/schemas/public/MessagesAttachments.ts new file mode 100644 index 0000000..5223e13 --- /dev/null +++ b/apps/infoalloggi/src/schemas/public/MessagesAttachments.ts @@ -0,0 +1,16 @@ +import type { MessagesMessageid } from './Messages'; +import type { UsersStorageUserStorageId } from './UsersStorage'; +import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; + +/** Represents the table public.messages_attachments */ +export default interface MessagesAttachmentsTable { + messageId: ColumnType; + + userStorageId: ColumnType; +} + +export type MessagesAttachments = Selectable; + +export type NewMessagesAttachments = Insertable; + +export type MessagesAttachmentsUpdate = Updateable; \ No newline at end of file diff --git a/apps/infoalloggi/src/schemas/public/Nazioni.ts b/apps/infoalloggi/src/schemas/public/Nazioni.ts index 6c907b8..f98bc71 100644 --- a/apps/infoalloggi/src/schemas/public/Nazioni.ts +++ b/apps/infoalloggi/src/schemas/public/Nazioni.ts @@ -1,6 +1,3 @@ -// @generated -// This file is automatically generated by Kanel. Do not modify manually. - import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; /** Identifier type for public.nazioni */ @@ -21,4 +18,4 @@ export type Nazioni = Selectable; export type NewNazioni = Insertable; -export type NazioniUpdate = Updateable; +export type NazioniUpdate = Updateable; \ No newline at end of file diff --git a/apps/infoalloggi/src/schemas/public/OrderTypeEnum.ts b/apps/infoalloggi/src/schemas/public/OrderTypeEnum.ts index d85c107..b883081 100644 --- a/apps/infoalloggi/src/schemas/public/OrderTypeEnum.ts +++ b/apps/infoalloggi/src/schemas/public/OrderTypeEnum.ts @@ -1,13 +1,9 @@ -// @generated -// This file is automatically generated by Kanel. Do not modify manually. - /** Represents the enum public.OrderTypeEnum */ -enum OrderTypeEnum { - Acconto = 'Acconto', - Saldo = 'Saldo', - Consulenza = 'Consulenza', - Altro = 'Altro', - Rinnovo = 'Rinnovo', -}; +type OrderTypeEnum = + | 'Acconto' + | 'Saldo' + | 'Consulenza' + | 'Altro' + | 'Rinnovo'; -export default OrderTypeEnum; +export default OrderTypeEnum; \ No newline at end of file diff --git a/apps/infoalloggi/src/schemas/public/Ordini.ts b/apps/infoalloggi/src/schemas/public/Ordini.ts index 2dddb07..f97b592 100644 --- a/apps/infoalloggi/src/schemas/public/Ordini.ts +++ b/apps/infoalloggi/src/schemas/public/Ordini.ts @@ -1,6 +1,3 @@ -// @generated -// This file is automatically generated by Kanel. Do not modify manually. - import type { UsersId } from './Users'; import type { PrezziarioIdprezziario } from './Prezziario'; import type { ServizioServizioId } from './Servizio'; @@ -47,4 +44,4 @@ export type Ordini = Selectable; export type NewOrdini = Insertable; -export type OrdiniUpdate = Updateable; +export type OrdiniUpdate = Updateable; \ No newline at end of file diff --git a/apps/infoalloggi/src/schemas/public/PaymentStatusEnum.ts b/apps/infoalloggi/src/schemas/public/PaymentStatusEnum.ts index ef9d1c2..c440bd1 100644 --- a/apps/infoalloggi/src/schemas/public/PaymentStatusEnum.ts +++ b/apps/infoalloggi/src/schemas/public/PaymentStatusEnum.ts @@ -1,11 +1,7 @@ -// @generated -// This file is automatically generated by Kanel. Do not modify manually. - /** Represents the enum public.PaymentStatusEnum */ -enum PaymentStatusEnum { - processing = 'processing', - success = 'success', - failed = 'failed', -}; +type PaymentStatusEnum = + | 'processing' + | 'success' + | 'failed'; -export default PaymentStatusEnum; +export default PaymentStatusEnum; \ No newline at end of file diff --git a/apps/infoalloggi/src/schemas/public/Potenziali.ts b/apps/infoalloggi/src/schemas/public/Potenziali.ts index d0cd68f..26378f8 100644 --- a/apps/infoalloggi/src/schemas/public/Potenziali.ts +++ b/apps/infoalloggi/src/schemas/public/Potenziali.ts @@ -1,6 +1,3 @@ -// @generated -// This file is automatically generated by Kanel. Do not modify manually. - import type { UsersId } from './Users'; import type { PotenzialiGroupsId } from './PotenzialiGroups'; import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; @@ -27,4 +24,4 @@ export type Potenziali = Selectable; export type NewPotenziali = Insertable; -export type PotenzialiUpdate = Updateable; +export type PotenzialiUpdate = Updateable; \ No newline at end of file diff --git a/apps/infoalloggi/src/schemas/public/PotenzialiGroups.ts b/apps/infoalloggi/src/schemas/public/PotenzialiGroups.ts index 48d7e9e..76c8a8d 100644 --- a/apps/infoalloggi/src/schemas/public/PotenzialiGroups.ts +++ b/apps/infoalloggi/src/schemas/public/PotenzialiGroups.ts @@ -1,6 +1,3 @@ -// @generated -// This file is automatically generated by Kanel. Do not modify manually. - import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; /** Identifier type for public.potenziali_groups */ @@ -19,4 +16,4 @@ export type PotenzialiGroups = Selectable; export type NewPotenzialiGroups = Insertable; -export type PotenzialiGroupsUpdate = Updateable; +export type PotenzialiGroupsUpdate = Updateable; \ No newline at end of file diff --git a/apps/infoalloggi/src/schemas/public/Prezziario.ts b/apps/infoalloggi/src/schemas/public/Prezziario.ts index 7898665..6009463 100644 --- a/apps/infoalloggi/src/schemas/public/Prezziario.ts +++ b/apps/infoalloggi/src/schemas/public/Prezziario.ts @@ -1,6 +1,3 @@ -// @generated -// This file is automatically generated by Kanel. Do not modify manually. - import type { default as OrderTypeEnum } from './OrderTypeEnum'; import type { default as TipologiaPosizioneEnum } from './TipologiaPosizioneEnum'; import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; @@ -39,4 +36,4 @@ export type Prezziario = Selectable; export type NewPrezziario = Insertable; -export type PrezziarioUpdate = Updateable; +export type PrezziarioUpdate = Updateable; \ No newline at end of file diff --git a/apps/infoalloggi/src/schemas/public/Provincie.ts b/apps/infoalloggi/src/schemas/public/Provincie.ts index 71dad50..872c733 100644 --- a/apps/infoalloggi/src/schemas/public/Provincie.ts +++ b/apps/infoalloggi/src/schemas/public/Provincie.ts @@ -1,6 +1,3 @@ -// @generated -// This file is automatically generated by Kanel. Do not modify manually. - import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; /** Identifier type for public.provincie */ @@ -19,4 +16,4 @@ export type Provincie = Selectable; export type NewProvincie = Insertable; -export type ProvincieUpdate = Updateable; +export type ProvincieUpdate = Updateable; \ No newline at end of file diff --git a/apps/infoalloggi/src/schemas/public/PublicSchema.ts b/apps/infoalloggi/src/schemas/public/PublicSchema.ts index af9e3b8..53b86ff 100644 --- a/apps/infoalloggi/src/schemas/public/PublicSchema.ts +++ b/apps/infoalloggi/src/schemas/public/PublicSchema.ts @@ -1,6 +1,3 @@ -// @generated -// This file is automatically generated by Kanel. Do not modify manually. - import type { default as ServizioInteressiTable } from './ServizioInteressi'; import type { default as FlagsTable } from './Flags'; import type { default as AnnunciTable } from './Annunci'; @@ -31,6 +28,7 @@ import type { default as NazioniTable } from './Nazioni'; import type { default as ImagesRefsTable } from './ImagesRefs'; import type { default as BannersTable } from './Banners'; import type { default as ServizioTable } from './Servizio'; +import type { default as MessagesAttachmentsTable } from './MessagesAttachments'; export default interface PublicSchema { servizio_interessi: ServizioInteressiTable; @@ -92,4 +90,6 @@ export default interface PublicSchema { banners: BannersTable; servizio: ServizioTable; -} + + messages_attachments: MessagesAttachmentsTable; +} \ No newline at end of file diff --git a/apps/infoalloggi/src/schemas/public/Ratelimiter.ts b/apps/infoalloggi/src/schemas/public/Ratelimiter.ts index ef2b99b..f04c685 100644 --- a/apps/infoalloggi/src/schemas/public/Ratelimiter.ts +++ b/apps/infoalloggi/src/schemas/public/Ratelimiter.ts @@ -1,6 +1,3 @@ -// @generated -// This file is automatically generated by Kanel. Do not modify manually. - import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; /** Represents the table public.ratelimiter */ @@ -16,4 +13,4 @@ export type Ratelimiter = Selectable; export type NewRatelimiter = Insertable; -export type RatelimiterUpdate = Updateable; +export type RatelimiterUpdate = Updateable; \ No newline at end of file diff --git a/apps/infoalloggi/src/schemas/public/Rinnovi.ts b/apps/infoalloggi/src/schemas/public/Rinnovi.ts index 4a0588a..32ab593 100644 --- a/apps/infoalloggi/src/schemas/public/Rinnovi.ts +++ b/apps/infoalloggi/src/schemas/public/Rinnovi.ts @@ -1,6 +1,3 @@ -// @generated -// This file is automatically generated by Kanel. Do not modify manually. - import type { UsersId } from './Users'; import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; @@ -26,4 +23,4 @@ export type Rinnovi = Selectable; export type NewRinnovi = Insertable; -export type RinnoviUpdate = Updateable; +export type RinnoviUpdate = Updateable; \ No newline at end of file diff --git a/apps/infoalloggi/src/schemas/public/Servizio.ts b/apps/infoalloggi/src/schemas/public/Servizio.ts index 1c49732..1377c26 100644 --- a/apps/infoalloggi/src/schemas/public/Servizio.ts +++ b/apps/infoalloggi/src/schemas/public/Servizio.ts @@ -1,6 +1,3 @@ -// @generated -// This file is automatically generated by Kanel. Do not modify manually. - import type { UsersId } from './Users'; import type { default as TipologiaPosizioneEnum } from './TipologiaPosizioneEnum'; import type { UsersStorageUserStorageId } from './UsersStorage'; @@ -80,4 +77,4 @@ export type Servizio = Selectable; export type NewServizio = Insertable; -export type ServizioUpdate = Updateable; +export type ServizioUpdate = Updateable; \ No newline at end of file diff --git a/apps/infoalloggi/src/schemas/public/ServizioAnnunci.ts b/apps/infoalloggi/src/schemas/public/ServizioAnnunci.ts index 1cfa799..429b74b 100644 --- a/apps/infoalloggi/src/schemas/public/ServizioAnnunci.ts +++ b/apps/infoalloggi/src/schemas/public/ServizioAnnunci.ts @@ -1,6 +1,3 @@ -// @generated -// This file is automatically generated by Kanel. Do not modify manually. - import type { ServizioServizioId } from './Servizio'; import type { AnnunciId } from './Annunci'; import type { default as StatusConfermaEnum } from './StatusConfermaEnum'; @@ -46,4 +43,4 @@ export type ServizioAnnunci = Selectable; export type NewServizioAnnunci = Insertable; -export type ServizioAnnunciUpdate = Updateable; +export type ServizioAnnunciUpdate = Updateable; \ No newline at end of file diff --git a/apps/infoalloggi/src/schemas/public/ServizioInteressi.ts b/apps/infoalloggi/src/schemas/public/ServizioInteressi.ts index 6903b89..f9ba8b1 100644 --- a/apps/infoalloggi/src/schemas/public/ServizioInteressi.ts +++ b/apps/infoalloggi/src/schemas/public/ServizioInteressi.ts @@ -1,6 +1,3 @@ -// @generated -// This file is automatically generated by Kanel. Do not modify manually. - import type { AnnunciId } from './Annunci'; import type { UsersId } from './Users'; import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; @@ -16,4 +13,4 @@ export type ServizioInteressi = Selectable; export type NewServizioInteressi = Insertable; -export type ServizioInteressiUpdate = Updateable; +export type ServizioInteressiUpdate = Updateable; \ No newline at end of file diff --git a/apps/infoalloggi/src/schemas/public/StatusConfermaEnum.ts b/apps/infoalloggi/src/schemas/public/StatusConfermaEnum.ts index 3364a0a..fe5f4f4 100644 --- a/apps/infoalloggi/src/schemas/public/StatusConfermaEnum.ts +++ b/apps/infoalloggi/src/schemas/public/StatusConfermaEnum.ts @@ -1,11 +1,7 @@ -// @generated -// This file is automatically generated by Kanel. Do not modify manually. - /** Represents the enum public.StatusConfermaEnum */ -enum StatusConfermaEnum { - 'Inviato conferma' = 'Inviato conferma', - 'Conferma accettata' = 'Conferma accettata', - 'Caparra versata' = 'Caparra versata', -}; +type StatusConfermaEnum = + | 'Inviato conferma' + | 'Conferma accettata' + | 'Caparra versata'; -export default StatusConfermaEnum; +export default StatusConfermaEnum; \ No newline at end of file diff --git a/apps/infoalloggi/src/schemas/public/TestiEStringhe.ts b/apps/infoalloggi/src/schemas/public/TestiEStringhe.ts index 94351bb..6584bd1 100644 --- a/apps/infoalloggi/src/schemas/public/TestiEStringhe.ts +++ b/apps/infoalloggi/src/schemas/public/TestiEStringhe.ts @@ -1,6 +1,3 @@ -// @generated -// This file is automatically generated by Kanel. Do not modify manually. - import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; /** Identifier type for public.testi_e_stringhe */ @@ -17,4 +14,4 @@ export type TestiEStringhe = Selectable; export type NewTestiEStringhe = Insertable; -export type TestiEStringheUpdate = Updateable; +export type TestiEStringheUpdate = Updateable; \ No newline at end of file diff --git a/apps/infoalloggi/src/schemas/public/TipologiaPosizioneEnum.ts b/apps/infoalloggi/src/schemas/public/TipologiaPosizioneEnum.ts index 2462d2f..f38af04 100644 --- a/apps/infoalloggi/src/schemas/public/TipologiaPosizioneEnum.ts +++ b/apps/infoalloggi/src/schemas/public/TipologiaPosizioneEnum.ts @@ -1,10 +1,6 @@ -// @generated -// This file is automatically generated by Kanel. Do not modify manually. - /** Represents the enum public.TipologiaPosizioneEnum */ -enum TipologiaPosizioneEnum { - Transitorio = 'Transitorio', - Stabile = 'Stabile', -}; +type TipologiaPosizioneEnum = + | 'Transitorio' + | 'Stabile'; -export default TipologiaPosizioneEnum; +export default TipologiaPosizioneEnum; \ No newline at end of file diff --git a/apps/infoalloggi/src/schemas/public/UserEtichette.ts b/apps/infoalloggi/src/schemas/public/UserEtichette.ts index 278e25a..c138047 100644 --- a/apps/infoalloggi/src/schemas/public/UserEtichette.ts +++ b/apps/infoalloggi/src/schemas/public/UserEtichette.ts @@ -1,6 +1,3 @@ -// @generated -// This file is automatically generated by Kanel. Do not modify manually. - import type { UsersId } from './Users'; import type { EtichetteIdEtichetta } from './Etichette'; import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; @@ -16,4 +13,4 @@ export type UserEtichette = Selectable; export type NewUserEtichette = Insertable; -export type UserEtichetteUpdate = Updateable; +export type UserEtichetteUpdate = Updateable; \ No newline at end of file diff --git a/apps/infoalloggi/src/schemas/public/UserInvites.ts b/apps/infoalloggi/src/schemas/public/UserInvites.ts index 1634940..fb3062e 100644 --- a/apps/infoalloggi/src/schemas/public/UserInvites.ts +++ b/apps/infoalloggi/src/schemas/public/UserInvites.ts @@ -1,6 +1,3 @@ -// @generated -// This file is automatically generated by Kanel. Do not modify manually. - import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; /** Identifier type for public.user_invites */ @@ -23,4 +20,4 @@ export type UserInvites = Selectable; export type NewUserInvites = Insertable; -export type UserInvitesUpdate = Updateable; +export type UserInvitesUpdate = Updateable; \ No newline at end of file diff --git a/apps/infoalloggi/src/schemas/public/Users.ts b/apps/infoalloggi/src/schemas/public/Users.ts index 899116f..8757881 100644 --- a/apps/infoalloggi/src/schemas/public/Users.ts +++ b/apps/infoalloggi/src/schemas/public/Users.ts @@ -1,6 +1,3 @@ -// @generated -// This file is automatically generated by Kanel. Do not modify manually. - import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; /** Identifier type for public.users */ @@ -53,4 +50,4 @@ export type Users = Selectable; export type NewUsers = Insertable; -export type UsersUpdate = Updateable; +export type UsersUpdate = Updateable; \ No newline at end of file diff --git a/apps/infoalloggi/src/schemas/public/UsersAnagrafica.ts b/apps/infoalloggi/src/schemas/public/UsersAnagrafica.ts index 3d1889d..ebcad8e 100644 --- a/apps/infoalloggi/src/schemas/public/UsersAnagrafica.ts +++ b/apps/infoalloggi/src/schemas/public/UsersAnagrafica.ts @@ -1,6 +1,3 @@ -// @generated -// This file is automatically generated by Kanel. Do not modify manually. - import type { UsersId } from './Users'; import type { UsersStorageUserStorageId } from './UsersStorage'; import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; @@ -45,4 +42,4 @@ export type UsersAnagrafica = Selectable; export type NewUsersAnagrafica = Insertable; -export type UsersAnagraficaUpdate = Updateable; +export type UsersAnagraficaUpdate = Updateable; \ No newline at end of file diff --git a/apps/infoalloggi/src/schemas/public/UsersStorage.ts b/apps/infoalloggi/src/schemas/public/UsersStorage.ts index 5c91806..d29d285 100644 --- a/apps/infoalloggi/src/schemas/public/UsersStorage.ts +++ b/apps/infoalloggi/src/schemas/public/UsersStorage.ts @@ -1,6 +1,3 @@ -// @generated -// This file is automatically generated by Kanel. Do not modify manually. - import type { UsersId } from './Users'; import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; @@ -22,4 +19,4 @@ export type UsersStorage = Selectable; export type NewUsersStorage = Insertable; -export type UsersStorageUpdate = Updateable; +export type UsersStorageUpdate = Updateable; \ No newline at end of file diff --git a/apps/infoalloggi/src/schemas/public/VideosRefs.ts b/apps/infoalloggi/src/schemas/public/VideosRefs.ts index 4057541..12cfc99 100644 --- a/apps/infoalloggi/src/schemas/public/VideosRefs.ts +++ b/apps/infoalloggi/src/schemas/public/VideosRefs.ts @@ -1,6 +1,3 @@ -// @generated -// This file is automatically generated by Kanel. Do not modify manually. - import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; /** Represents the table public.videos_refs */ @@ -20,4 +17,4 @@ export type VideosRefs = Selectable; export type NewVideosRefs = Insertable; -export type VideosRefsUpdate = Updateable; +export type VideosRefsUpdate = Updateable; \ No newline at end of file