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:
1
migrations/000003_count_for_availability.down.sql
Normal file
1
migrations/000003_count_for_availability.down.sql
Normal file
@@ -0,0 +1 @@
|
||||
ALTER TABLE calendars DROP COLUMN IF EXISTS count_for_availability;
|
||||
2
migrations/000003_count_for_availability.up.sql
Normal file
2
migrations/000003_count_for_availability.up.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
-- Add count_for_availability to calendars (default true = include in busy/free checks)
|
||||
ALTER TABLE calendars ADD COLUMN count_for_availability BOOLEAN NOT NULL DEFAULT true;
|
||||
1
migrations/000004_subscriptions_sync.down.sql
Normal file
1
migrations/000004_subscriptions_sync.down.sql
Normal file
@@ -0,0 +1 @@
|
||||
ALTER TABLE calendar_subscriptions DROP COLUMN IF EXISTS sync_interval_minutes;
|
||||
2
migrations/000004_subscriptions_sync.up.sql
Normal file
2
migrations/000004_subscriptions_sync.up.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
-- Add sync_interval_minutes to calendar_subscriptions
|
||||
ALTER TABLE calendar_subscriptions ADD COLUMN sync_interval_minutes INTEGER DEFAULT NULL;
|
||||
9
migrations/000005_user_preferences.down.sql
Normal file
9
migrations/000005_user_preferences.down.sql
Normal file
@@ -0,0 +1,9 @@
|
||||
ALTER TABLE users DROP COLUMN IF EXISTS week_start_day;
|
||||
ALTER TABLE users DROP COLUMN IF EXISTS date_format;
|
||||
ALTER TABLE users DROP COLUMN IF EXISTS time_format;
|
||||
ALTER TABLE users DROP COLUMN IF EXISTS default_event_duration_minutes;
|
||||
ALTER TABLE users DROP COLUMN IF EXISTS default_reminder_minutes;
|
||||
ALTER TABLE users DROP COLUMN IF EXISTS show_weekends;
|
||||
ALTER TABLE users DROP COLUMN IF EXISTS working_hours_start;
|
||||
ALTER TABLE users DROP COLUMN IF EXISTS working_hours_end;
|
||||
ALTER TABLE users DROP COLUMN IF EXISTS notifications_email;
|
||||
10
migrations/000005_user_preferences.up.sql
Normal file
10
migrations/000005_user_preferences.up.sql
Normal file
@@ -0,0 +1,10 @@
|
||||
-- Add user preferences columns
|
||||
ALTER TABLE users ADD COLUMN week_start_day SMALLINT NOT NULL DEFAULT 0;
|
||||
ALTER TABLE users ADD COLUMN date_format TEXT NOT NULL DEFAULT 'MM/dd/yyyy';
|
||||
ALTER TABLE users ADD COLUMN time_format TEXT NOT NULL DEFAULT '12h';
|
||||
ALTER TABLE users ADD COLUMN default_event_duration_minutes INTEGER NOT NULL DEFAULT 60;
|
||||
ALTER TABLE users ADD COLUMN default_reminder_minutes INTEGER NOT NULL DEFAULT 10;
|
||||
ALTER TABLE users ADD COLUMN show_weekends BOOLEAN NOT NULL DEFAULT true;
|
||||
ALTER TABLE users ADD COLUMN working_hours_start TEXT NOT NULL DEFAULT '09:00';
|
||||
ALTER TABLE users ADD COLUMN working_hours_end TEXT NOT NULL DEFAULT '17:00';
|
||||
ALTER TABLE users ADD COLUMN notifications_email BOOLEAN NOT NULL DEFAULT true;
|
||||
2
migrations/000006_calendar_settings.down.sql
Normal file
2
migrations/000006_calendar_settings.down.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
ALTER TABLE calendars DROP COLUMN IF EXISTS default_reminder_minutes;
|
||||
ALTER TABLE calendars DROP COLUMN IF EXISTS sort_order;
|
||||
3
migrations/000006_calendar_settings.up.sql
Normal file
3
migrations/000006_calendar_settings.up.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
-- Add calendar settings
|
||||
ALTER TABLE calendars ADD COLUMN default_reminder_minutes INTEGER DEFAULT NULL;
|
||||
ALTER TABLE calendars ADD COLUMN sort_order INTEGER NOT NULL DEFAULT 0;
|
||||
Reference in New Issue
Block a user