60 lines
975 B
TypeScript
Raw Normal View History

2024-10-27 21:27:41 +00:00
/* Copyright (C) 2024 Manuel Bustillo*/
2024-12-09 00:36:42 +01:00
import { Guest } from "./guest";
2024-08-11 12:03:11 +02:00
2024-12-09 00:36:42 +01:00
export interface Entity {
id?: string;
}
// export type Expense = {
// id: string;
// name: string;
// amount: number;
// pricingType: 'fixed' | 'per person';
// };
2024-11-10 21:08:03 +01:00
export type TableArrangement = {
id: string;
number: number;
name: string;
guests?: Guest[];
discomfort?: number
}
// export type Group = {
// id?: string;
// name?: string;
// guest_count?: number;
// icon?: string;
// children?: Group[];
// parentId?: string;
// color?: string;
// attendance?: AttendanceSummary
// };
2024-08-11 12:34:16 +02:00
export type guestsTable = {
2024-08-11 12:03:11 +02:00
id: string;
customer_id: string;
name: string;
email: string;
image_url: string;
date: string;
amount: number;
status: 'pending' | 'paid';
};
2024-12-01 17:29:57 +01:00
export type User = {
2024-08-11 12:03:11 +02:00
id: string;
email: string;
}
export type Captcha = {
id: string;
answer: string;
2024-12-07 13:32:08 +01:00
}
export type StructuredErrors = {
2024-12-09 00:36:42 +01:00
[key: string]: string[] | string;
2024-12-07 13:32:08 +01:00
};