File size: 777 Bytes
14ea677 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | /**
* Database - 类型定义
* 与 Supabase 表结构对应
*/
/** 历史记录行(对应 history 表) */
export interface HistoryRow {
id: string
client_id: string
prompt: string
code: string | null
output_mode: 'video' | 'image'
quality: 'low' | 'medium' | 'high'
status: 'completed' | 'failed'
error?: string | null
created_at: string
}
/** 创建历史记录请求 */
export interface CreateHistoryInput {
client_id: string
prompt: string
code: string | null
output_mode: 'video' | 'image'
quality: 'low' | 'medium' | 'high'
status: 'completed' | 'failed'
error?: string | null
}
/** 分页查询结果 */
export interface PaginatedResult<T> {
records: T[]
total: number
page: number
pageSize: number
hasMore: boolean
}
|