// @ts-ignore import Realm from 'realm' import { BookType } from '../../../enum/bookEnum' export class BookModel extends Realm.Object { id: string no: number name: string bookFolderPath: string imageFolder: string | null type: BookType oldVideoPath: string | null srtPath: string | null audioPath: string | null draftDepend?: string // 草稿依赖 draftSrtStyle: string | null // 草稿字幕样式 backgroundMusic: string | null // 背景音乐ID friendlyReminder: string | null // 友情提示 updateTime: Date createTime: Date version: string imageStyle: string[] | null // 软件内置的样式 autoAnalyzeCharacter: string | null // 自动分析角色设置 customizeImageStyle: string[] | null // 自定义的样式 videoConfig: string | null // 合成视频设置 prefixPrompt: string | null // 前缀 suffixPrompt: string | null // 后缀 subtitlePosition: string | null // 字幕位置 watermarkPosition: string | null // 水印位置,一个json数组字符串 static schema: Realm.ObjectSchema = { name: 'Book', properties: { id: 'string', no: 'int', name: 'string', bookFolderPath: 'string', type: 'string', oldVideoPath: 'string?', srtPath: 'string?', audioPath: 'string?', draftDepend: "string?", draftSrtStyle: 'string?', backgroundMusic: 'string?', friendlyReminder: 'string?', imageFolder: 'string?', updateTime: 'date', createTime: 'date', version: 'string', imageStyle: 'string?[]', autoAnalyzeCharacter: 'string?', customizeImageStyle: 'string?[]', videoConfig: "string?", prefixPrompt: "string?", suffixPrompt: "string?", subtitlePosition: 'string?', watermarkPosition: "string?" }, // 主键为_id primaryKey: 'id' } }