feat(migration): add Supabase import and recovery tooling

This commit is contained in:
poyrazavsever
2026-07-17 09:13:06 +03:00
parent 64a5f96872
commit 5948907e5d
10 changed files with 5525 additions and 9 deletions
@@ -0,0 +1,15 @@
CREATE TABLE `user_preferences` (
`owner_user_id` text PRIMARY KEY NOT NULL,
`timezone` text DEFAULT 'Europe/Istanbul' NOT NULL,
`default_currency` text DEFAULT 'TRY' NOT NULL,
`language` text DEFAULT 'tr' NOT NULL,
`date_format` text DEFAULT 'dd.MM.yyyy' NOT NULL,
`color_mode` text DEFAULT 'system' NOT NULL,
`sidebar_collapsed` integer DEFAULT false NOT NULL,
`created_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
`updated_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
FOREIGN KEY (`owner_user_id`) REFERENCES `user`(`id`) ON UPDATE no action ON DELETE cascade,
CONSTRAINT "user_preferences_currency_check" CHECK(length("user_preferences"."default_currency") = 3),
CONSTRAINT "user_preferences_language_check" CHECK("user_preferences"."language" in ('tr', 'en')),
CONSTRAINT "user_preferences_color_mode_check" CHECK("user_preferences"."color_mode" in ('light', 'dark', 'system'))
);
File diff suppressed because it is too large Load Diff
+7
View File
@@ -43,6 +43,13 @@
"when": 1784234752708,
"tag": "0005_brief_black_bolt",
"breakpoints": true
},
{
"idx": 6,
"version": "6",
"when": 1784266217938,
"tag": "0006_moaning_kitty_pryde",
"breakpoints": true
}
]
}