本次提交进行了大规模的项目结构调整: 1. 调整文件目录归属,将模块代码按功能域重新组织 2. 删除多处冗余的DTO、实体类和模块文件 3. 统一了常量、装饰器、工具类的存放位置 4. 修复了`.gitignore`的日志目录匹配规则 5. 新增了健康检查、认证、用户、剧集、订单等核心业务模块
27 lines
575 B
TypeScript
27 lines
575 B
TypeScript
import { Column, CreateDateColumn, Entity, Index, PrimaryGeneratedColumn } from 'typeorm';
|
|
|
|
@Entity('data_sync_jobs')
|
|
export class DataSyncJob {
|
|
@PrimaryGeneratedColumn()
|
|
id: number;
|
|
|
|
@Index({ unique: true })
|
|
@Column({ type: 'varchar', length: 128 })
|
|
jobId: string;
|
|
|
|
@Column({ type: 'varchar', length: 32 })
|
|
status: string;
|
|
|
|
@Column({ type: 'bigint', nullable: true })
|
|
dramaId?: number;
|
|
|
|
@Column({ type: 'int', default: 0 })
|
|
dramaCount: number;
|
|
|
|
@Column({ type: 'int', default: 0 })
|
|
episodeCount: number;
|
|
|
|
@CreateDateColumn()
|
|
createdAt: Date;
|
|
}
|