2
0
forked from jmug/cactoide

feat: add public/private event types

This commit is contained in:
Levente Orban
2025-08-27 08:47:05 +02:00
parent a91f863295
commit 4c387a10f1
9 changed files with 313 additions and 12 deletions

View File

@@ -1,4 +1,5 @@
export type EventType = 'limited' | 'unlimited';
export type EventVisibility = 'public' | 'private';
export interface Event {
id: string;
@@ -8,6 +9,7 @@ export interface Event {
location: string;
type: EventType;
attendee_limit?: number;
visibility: EventVisibility;
user_id: string;
created_at: string;
updated_at: string;
@@ -28,6 +30,7 @@ export interface CreateEventData {
location: string;
type: EventType;
attendee_limit?: number;
visibility: EventVisibility;
}
export interface DatabaseEvent {
@@ -38,6 +41,7 @@ export interface DatabaseEvent {
location: string;
type: EventType;
attendee_limit?: number;
visibility: EventVisibility;
user_id: string;
created_at: string;
updated_at: string;