Add OpenAPI docs, frontend, migrations, and API updates
- OpenAPI: add missing endpoints (add-from-url, subscriptions, public availability) - OpenAPI: CalendarSubscription schema, Subscriptions tag - Frontend app - Migrations: count_for_availability, subscriptions_sync, user_preferences, calendar_settings - Config, rate limit, auth, calendar, booking, ICS, availability, user service updates Made-with: Cursor
This commit is contained in:
@@ -9,6 +9,15 @@ CREATE TABLE users (
|
||||
password_hash TEXT NOT NULL,
|
||||
timezone TEXT NOT NULL DEFAULT 'UTC',
|
||||
is_active BOOLEAN NOT NULL DEFAULT true,
|
||||
week_start_day SMALLINT NOT NULL DEFAULT 0,
|
||||
date_format TEXT NOT NULL DEFAULT 'MM/dd/yyyy',
|
||||
time_format TEXT NOT NULL DEFAULT '12h',
|
||||
default_event_duration_minutes INTEGER NOT NULL DEFAULT 60,
|
||||
default_reminder_minutes INTEGER NOT NULL DEFAULT 10,
|
||||
show_weekends BOOLEAN NOT NULL DEFAULT true,
|
||||
working_hours_start TEXT NOT NULL DEFAULT '09:00',
|
||||
working_hours_end TEXT NOT NULL DEFAULT '17:00',
|
||||
notifications_email BOOLEAN NOT NULL DEFAULT true,
|
||||
created_at TIMESTAMPTZ NOT NULL DEFAULT now(),
|
||||
updated_at TIMESTAMPTZ NOT NULL DEFAULT now(),
|
||||
deleted_at TIMESTAMPTZ
|
||||
@@ -49,6 +58,9 @@ CREATE TABLE calendars (
|
||||
color TEXT NOT NULL DEFAULT '#3B82F6',
|
||||
is_public BOOLEAN NOT NULL DEFAULT false,
|
||||
public_token TEXT,
|
||||
count_for_availability BOOLEAN NOT NULL DEFAULT true,
|
||||
default_reminder_minutes INTEGER,
|
||||
sort_order INTEGER NOT NULL DEFAULT 0,
|
||||
created_at TIMESTAMPTZ NOT NULL DEFAULT now(),
|
||||
updated_at TIMESTAMPTZ NOT NULL DEFAULT now(),
|
||||
deleted_at TIMESTAMPTZ
|
||||
@@ -180,6 +192,7 @@ CREATE TABLE calendar_subscriptions (
|
||||
calendar_id UUID NOT NULL REFERENCES calendars(id),
|
||||
source_url TEXT NOT NULL,
|
||||
last_synced_at TIMESTAMPTZ,
|
||||
sync_interval_minutes INTEGER,
|
||||
created_at TIMESTAMPTZ NOT NULL DEFAULT now()
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user