feat: implement admin interface for managing custom movie sources and servers with new API endpoint and database schema updates

This commit is contained in:
ngthanhvu
2026-07-28 03:29:55 -04:00
parent 5ee45151ba
commit 72bc657d86
19 changed files with 1423 additions and 229 deletions
+2
View File
@@ -35,11 +35,13 @@ export const movies = mysqlTable('movies', {
content: text('content'),
categories: json('categories').$type<string[]>(),
countries: json('countries').$type<string[]>(),
actors: json('actors').$type<{ name: string, originalName?: string, role?: string, avatar?: string }[]>(),
sources: json('sources').$type<{ source: string, slug: string, name?: string }[]>(),
customPoster: text('custom_poster'),
customThumb: text('custom_thumb'),
customContent: text('custom_content'),
customEpisodes: json('custom_episodes').$type<{ name: string, linkEmbed?: string, linkM3u8?: string }[]>(),
customServers: json('custom_servers').$type<{ name: string, episodes: { name: string, linkEmbed?: string, linkM3u8?: string }[] }[]>(),
active: boolean('active').notNull().default(false),
apiUpdatedAt: timestamp('api_updated_at'),
syncedAt: timestamp('synced_at').notNull().defaultNow(),