// Type-only schema, vorher Drizzle/SQLite. Lokal-PWA nutzt nur die TS-Typen.

export interface Recording {
  id: number;
  title: string;
  durationSec: number;
  createdAt: number;
  markers: string;    // JSON array of seconds
  waveform: string;   // JSON array of 0..1 amplitudes (~120)
  starred: number;    // 0 | 1
  mimeType: string;
  fileExt: string;
  fileSize: number;
  beatSlug: string | null;
}

export type InsertRecording = Omit<Recording, "id">;

export interface Settings {
  id: number;
  format: string;
  quality: string;
  storage: string;
  theme: string;
  onboardingDone: number;
}

export type UpdateSettings = Partial<Omit<Settings, "id">>;
