interface Base { _id: string; createdAt: string; updatedAt: string; } export interface User extends Base { username: string; } export interface EventContext { name: string; participants: string[]; conferenceId: string; attendanceId: string; } export interface Event extends Base { type: string; schedule: string; status?: 'running' | 'complete' | 'failed' | 'notStarted'; failReason?: string; context: EventContext; nextRunAt: string; lastRunAt: string; } export interface Log extends Base { message: string; eventId: string; }