mirror of
https://github.com/ngthanhvu/kr-phim.git
synced 2026-08-10 16:47:46 +00:00
feat: implement admin interface for managing custom movie sources and servers with new API endpoint and database schema updates
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user