mirror of
https://github.com/R0m1k3/Socialflow.git
synced 2026-10-11 17:26:45 +02:00
feat: Implement a new FastAPI service for video processing with FFmpeg, TTS, and subtitle generation, including font management and diagnostic endpoints.
This commit is contained in:
1 parent
838d168239
commit
1f7d0d1675
8 files changed
+494
-56
No files matched your search
@@ -63,6 +63,24 @@ export async function migrate() {
|
||||
ADD COLUMN IF NOT EXISTS "last_token_check" timestamp;
|
||||
`);
|
||||
|
||||
// music_favorites
|
||||
await client.query(`
|
||||
CREATE TABLE IF NOT EXISTS "music_favorites" (
|
||||
"id" varchar PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
|
||||
"user_id" varchar NOT NULL REFERENCES "users"("id") ON DELETE cascade,
|
||||
"track_id" text NOT NULL,
|
||||
"title" text NOT NULL,
|
||||
"artist" text NOT NULL,
|
||||
"album_name" text,
|
||||
"duration" integer NOT NULL,
|
||||
"preview_url" text NOT NULL,
|
||||
"download_url" text NOT NULL,
|
||||
"image_url" text,
|
||||
"license" text,
|
||||
"created_at" timestamp DEFAULT now()
|
||||
);
|
||||
`);
|
||||
|
||||
console.log("[Migration] Safe migration completed.");
|
||||
} catch (error) {
|
||||
console.error("[Migration] Error during migration:", error);
|
||||
|
||||
Reference in new issue
Block a user