V 2.2.10 新增MJ的代理模式

This commit is contained in:
2024-06-24 13:11:19 +08:00
parent 79a1929e79
commit bac97bc41c
102 changed files with 6374 additions and 1172 deletions
+37
View File
@@ -0,0 +1,37 @@
import Realm, { ObjectSchema } from 'realm'
import { BookType } from '../../../enum/bookEnum'
export class BookModel extends Realm.Object<BookModel> {
id: string
no: number
name: string
bookFolderPath: string
imageFolder: string | null
type: BookType
oldVideoPath: string | null
srtPath: string | null
audioPath: string | null
updateTime: Date
createTime: Date
test: string | null
static schema: ObjectSchema = {
name: 'Book',
properties: {
id: 'string',
no: 'int',
name: 'string',
bookFolderPath: 'string',
type: 'string',
oldVideoPath: 'string?',
srtPath: 'string?',
audioPath: 'string?',
imageFolder: 'string?',
updateTime: 'date',
createTime: 'date',
test: 'string?'
},
// 主键为_id
primaryKey: 'id'
}
}