mirror of
https://github.com/polaroi8d/cactoide.git
synced 2026-03-22 14:15:28 +00:00
Initial commit
This commit is contained in:
50
src/lib/types.ts
Normal file
50
src/lib/types.ts
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user