2024-06-24 13:11:19 +08:00
|
|
|
import Realm, { ObjectSchema } from 'realm'
|
|
|
|
|
import { BookBackTaskStatus, BookBackTaskType } from '../../../enum/bookEnum'
|
|
|
|
|
|
|
|
|
|
export class BookBackTaskList extends Realm.Object<BookBackTaskList> {
|
|
|
|
|
id: string
|
|
|
|
|
bookId: string
|
|
|
|
|
bookTaskId: string
|
2024-06-27 16:24:41 +08:00
|
|
|
name: string // 任务名称,小说名+批次名+分镜名
|
2024-06-24 13:11:19 +08:00
|
|
|
type: BookBackTaskType
|
|
|
|
|
status: BookBackTaskStatus
|
|
|
|
|
createTime: Date
|
|
|
|
|
updateTime: Date
|
|
|
|
|
|
|
|
|
|
static schema: ObjectSchema = {
|
|
|
|
|
name: 'BookBackTaskList',
|
|
|
|
|
properties: {
|
|
|
|
|
id: 'string',
|
|
|
|
|
bookId: { type: 'string', indexed: true },
|
|
|
|
|
bookTaskId: { type: 'string', indexed: true },
|
|
|
|
|
name: 'string',
|
|
|
|
|
type: 'string',
|
|
|
|
|
status: 'string',
|
|
|
|
|
createTime: 'date',
|
|
|
|
|
updateTime: 'date'
|
|
|
|
|
},
|
|
|
|
|
primaryKey: 'id'
|
|
|
|
|
}
|
|
|
|
|
}
|