2
0
forked from jmug/cactoide

Initial commit

This commit is contained in:
Levente Orban
2025-08-19 16:21:12 +02:00
commit c2874464d0
32 changed files with 6072 additions and 0 deletions

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

@@ -0,0 +1,50 @@
export type EventType = 'limited' | 'unlimited';
export interface Event {
id: string;
name: string;
date: string;
time: string;
location: string;
type: EventType;
attendee_limit?: number;
created_at: string;
updated_at: string;
}
export interface RSVP {
id: string;
event_id: string;
name: string;
user_id: string;
created_at: string;
}
export interface CreateEventData {
name: string;
date: string;
time: string;
location: string;
type: EventType;
attendee_limit?: number;
}
export interface DatabaseEvent {
id: string;
name: string;
date: string;
time: string;
location: string;
type: EventType;
attendee_limit?: number;
created_at: string;
updated_at: string;
}
export interface DatabaseRSVP {
id: string;
event_id: string;
name: string;
user_id: string;
created_at: string;
}