infoalloggi-monorepo/apps/infoalloggi/src/schemas/public/Ordini.ts
2025-08-04 17:45:44 +02:00

34 lines
1.2 KiB
TypeScript

// @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';
import type { default as OrderTypeEnum } from './OrderTypeEnum';
import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
/** Identifier type for public.ordini */
export type OrdiniOrdineId = string & { __brand: 'public.ordini' };
/** Represents the table public.ordini */
export default interface OrdiniTable {
ordine_id: ColumnType<OrdiniOrdineId, OrdiniOrdineId | undefined, OrdiniOrdineId>;
userid: ColumnType<UsersId, UsersId, UsersId>;
created_at: ColumnType<Date, Date | string | undefined, Date | string>;
packid: ColumnType<PrezziarioIdprezziario, PrezziarioIdprezziario, PrezziarioIdprezziario>;
servizio_id: ColumnType<ServizioServizioId, ServizioServizioId, ServizioServizioId>;
type: ColumnType<OrderTypeEnum, OrderTypeEnum, OrderTypeEnum>;
isActive: ColumnType<boolean, boolean | undefined, boolean>;
}
export type Ordini = Selectable<OrdiniTable>;
export type NewOrdini = Insertable<OrdiniTable>;
export type OrdiniUpdate = Updateable<OrdiniTable>;