import type { ColumnType, Generated } from 'kysely'; export interface UsersTable { id: Generated; external_subject_id: string; display_name: string; email: string; created_at: ColumnType; updated_at: ColumnType; } export interface UserPreferencesTable { user_id: string; preferred_pace: string | null; preferred_budget_level: string | null; max_walking_distance_km: number | null; preferred_start_time: string | null; child_friendly_preferred: boolean; interests: string[]; notes: string | null; created_at: ColumnType; updated_at: ColumnType; } export interface TripsTable { id: Generated; name: string; description: string | null; owner_id: string; start_date: string | null; end_date: string | null; status: string; planning_stage: string | null; currency: string; version: Generated; created_at: ColumnType; updated_at: ColumnType; } export interface TripSettingsTable { trip_id: string; web_research_enabled: boolean; periodic_agent_review_enabled: boolean; notification_email_enabled: boolean; notification_push_enabled: boolean; default_research_depth: string | null; default_planning_style: string | null; created_at: ColumnType; updated_at: ColumnType; } export interface TripMembersTable { id: Generated; trip_id: string; user_id: string; role: string; status: string; joined_at: ColumnType | null; created_at: ColumnType; updated_at: ColumnType; } export interface TripInvitationsTable { id: Generated; trip_id: string; email: string; invited_by_user_id: string; token_hash: string; expires_at: ColumnType; accepted_at: ColumnType | null; created_at: ColumnType; updated_at: ColumnType; } export interface TravelersTable { id: Generated; trip_id: string; linked_user_id: string | null; display_name: string; traveler_type: string; created_by_user_id: string; created_at: ColumnType; updated_at: ColumnType; } export interface TripPreferenceOverridesTable { id: Generated; trip_id: string; user_id: string | null; traveler_id: string | null; overrides: unknown; created_at: ColumnType; updated_at: ColumnType; } export interface Database { users: UsersTable; user_preferences: UserPreferencesTable; trips: TripsTable; trip_settings: TripSettingsTable; trip_members: TripMembersTable; trip_invitations: TripInvitationsTable; travelers: TravelersTable; trip_preference_overrides: TripPreferenceOverridesTable; }