2025-08-04 17:45:44 +02:00
|
|
|
// @generated
|
|
|
|
|
// This file is automatically generated by Kanel. Do not modify manually.
|
|
|
|
|
|
2025-10-21 18:42:03 +02:00
|
|
|
import type { UsersId } from './Users';
|
|
|
|
|
import type { PrezziarioIdprezziario } from './Prezziario';
|
|
|
|
|
import type { ServizioServizioId } from './Servizio';
|
|
|
|
|
import type { default as OrderTypeEnum } from './OrderTypeEnum';
|
2026-03-08 01:02:57 +01:00
|
|
|
import type { default as PaymentStatusEnum } from './PaymentStatusEnum';
|
2025-10-21 18:42:03 +02:00
|
|
|
import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
|
2025-08-04 17:45:44 +02:00
|
|
|
|
|
|
|
|
/** Identifier type for public.ordini */
|
2025-10-21 18:42:03 +02:00
|
|
|
export type OrdiniOrdineId = string & { __brand: 'public.ordini' };
|
2025-08-04 17:45:44 +02:00
|
|
|
|
|
|
|
|
/** Represents the table public.ordini */
|
|
|
|
|
export default interface OrdiniTable {
|
2025-10-21 18:42:03 +02:00
|
|
|
ordine_id: ColumnType<OrdiniOrdineId, OrdiniOrdineId | undefined, OrdiniOrdineId>;
|
2025-08-04 17:45:44 +02:00
|
|
|
|
2025-10-21 18:42:03 +02:00
|
|
|
userid: ColumnType<UsersId, UsersId, UsersId>;
|
2025-08-04 17:45:44 +02:00
|
|
|
|
2025-10-21 18:42:03 +02:00
|
|
|
created_at: ColumnType<Date, Date | string | undefined, Date | string>;
|
2025-08-04 17:45:44 +02:00
|
|
|
|
2025-10-21 18:42:03 +02:00
|
|
|
packid: ColumnType<PrezziarioIdprezziario, PrezziarioIdprezziario, PrezziarioIdprezziario>;
|
2025-08-04 17:45:44 +02:00
|
|
|
|
2025-10-21 18:42:03 +02:00
|
|
|
servizio_id: ColumnType<ServizioServizioId, ServizioServizioId, ServizioServizioId>;
|
2025-08-04 17:45:44 +02:00
|
|
|
|
2025-10-21 18:42:03 +02:00
|
|
|
type: ColumnType<OrderTypeEnum, OrderTypeEnum, OrderTypeEnum>;
|
2025-08-04 17:45:44 +02:00
|
|
|
|
2025-10-21 18:42:03 +02:00
|
|
|
isActive: ColumnType<boolean, boolean | undefined, boolean>;
|
2026-03-08 01:02:57 +01:00
|
|
|
|
|
|
|
|
amount_cent: ColumnType<number, number, number>;
|
|
|
|
|
|
|
|
|
|
paymentmethod: ColumnType<string | null, string | null, string | null>;
|
|
|
|
|
|
|
|
|
|
paid_at: ColumnType<Date | null, Date | string | null, Date | string | null>;
|
|
|
|
|
|
|
|
|
|
intent_id: ColumnType<string | null, string | null, string | null>;
|
|
|
|
|
|
|
|
|
|
paymentstatus: ColumnType<PaymentStatusEnum | null, PaymentStatusEnum | null, PaymentStatusEnum | null>;
|
|
|
|
|
|
|
|
|
|
sconto: ColumnType<number, number | undefined, number>;
|
2025-08-04 17:45:44 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type Ordini = Selectable<OrdiniTable>;
|
|
|
|
|
|
|
|
|
|
export type NewOrdini = Insertable<OrdiniTable>;
|
|
|
|
|
|
|
|
|
|
export type OrdiniUpdate = Updateable<OrdiniTable>;
|