Slightly working

This commit is contained in:
Roman Krček
2025-06-19 19:42:08 +02:00
parent 51dbfcc1bb
commit 9c94f9c717
12 changed files with 162 additions and 92 deletions

31
src/lib/types.ts Normal file
View File

@@ -0,0 +1,31 @@
export enum ScanState {
scanning,
scan_successful,
scan_failed
}
export type TicketData = {
id: string;
name: string;
surname: string;
email: string;
event: string;
created_at: string;
created_by: string | null;
scanned: boolean;
scanned_at: string | null;
scanned_by: string | null;
};
export const defaultTicketData: TicketData = {
id: '',
name: '',
surname: '',
email: '',
event: '',
created_at: new Date().toISOString(),
created_by: null,
scanned: false,
scanned_at: null,
scanned_by: null,
};