Slightly working
This commit is contained in:
31
src/lib/types.ts
Normal file
31
src/lib/types.ts
Normal 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,
|
||||
};
|
||||
Reference in New Issue
Block a user