import { query } from '../mysql'; export interface Video { id: number; created_at: Date; modified_at: Date; genre: string; sub_genre: string; scene: string; action: string; camera: string; image_prompt: string; video_prompt: string; image_path: string; video_path: string; } export class VideoModel { static async create(video: Omit): Promise { const sql = 'INSERT INTO video (genre, sub_genre, scene, action, camera, image_prompt, video_prompt, image_path, video_path) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)'; const params = [video.genre, video.sub_genre, video.scene, video.action, video.camera, video.image_prompt, video.video_prompt, video.image_path, video.video_path]; const result: any = await query(sql, params); return result.insertId; } static async getById(id: number): Promise