infoalloggi-monorepo/apps/infoalloggi/src/schemas/public/Banners.ts

43 lines
1.3 KiB
TypeScript
Raw Normal View History

2025-08-04 17:45:44 +02:00
// @generated
// This file is automatically generated by Kanel. Do not modify manually.
import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
2025-08-04 17:45:44 +02:00
/** Identifier type for public.banners */
export type BannersIdbanner = string & { __brand: 'public.banners' };
2025-08-04 17:45:44 +02:00
/** Represents the table public.banners */
export default interface BannersTable {
idbanner: ColumnType<BannersIdbanner, BannersIdbanner, BannersIdbanner>;
2025-08-04 17:45:44 +02:00
titolo: ColumnType<string | null, string | null, string | null>;
2025-08-04 17:45:44 +02:00
testo: ColumnType<string | null, string | null, string | null>;
2025-08-04 17:45:44 +02:00
is_unskippable: ColumnType<boolean, boolean, boolean>;
2025-08-04 17:45:44 +02:00
has_cta: ColumnType<boolean, boolean, boolean>;
2025-08-04 17:45:44 +02:00
cta_href: ColumnType<string | null, string | null, string | null>;
2025-08-04 17:45:44 +02:00
cta_icon: ColumnType<string | null, string | null, string | null>;
2025-08-04 17:45:44 +02:00
cta_text: ColumnType<string | null, string | null, string | null>;
2025-08-04 17:45:44 +02:00
color: ColumnType<string | null, string | null, string | null>;
2025-08-04 17:45:44 +02:00
is_active: ColumnType<boolean, boolean, boolean>;
2025-08-04 17:45:44 +02:00
show_public: ColumnType<boolean, boolean, boolean>;
2025-08-04 17:45:44 +02:00
show_private: ColumnType<boolean, boolean, boolean>;
2025-08-04 17:45:44 +02:00
hide_duration: ColumnType<number | null, number | null, number | null>;
2025-08-04 17:45:44 +02:00
}
export type Banners = Selectable<BannersTable>;
export type NewBanners = Insertable<BannersTable>;
export type BannersUpdate = Updateable<BannersTable>;