forked from hangshuo652/aurak
fix: 代码整合修复 - Entity类型、题库生成、评估流程等14项修复
This commit is contained in:
@@ -24,31 +24,31 @@ export class AssessmentSession {
|
||||
@PrimaryGeneratedColumn('uuid')
|
||||
id: string;
|
||||
|
||||
@Column({ name: 'user_id' })
|
||||
@Column({ name: 'user_id', type: 'text' })
|
||||
userId: string;
|
||||
|
||||
@ManyToOne(() => User)
|
||||
@JoinColumn({ name: 'user_id' })
|
||||
user: User;
|
||||
|
||||
@Column({ name: 'tenant_id', nullable: true })
|
||||
@Column({ name: 'tenant_id', nullable: true, type: 'text' })
|
||||
tenantId: string;
|
||||
|
||||
@Column({ name: 'knowledge_base_id', nullable: true })
|
||||
@Column({ name: 'knowledge_base_id', nullable: true, type: 'text' })
|
||||
knowledgeBaseId: string | null;
|
||||
|
||||
@ManyToOne(() => KnowledgeBase, { nullable: true })
|
||||
@JoinColumn({ name: 'knowledge_base_id' })
|
||||
knowledgeBase: KnowledgeBase;
|
||||
|
||||
@Column({ name: 'knowledge_group_id', nullable: true })
|
||||
@Column({ name: 'knowledge_group_id', nullable: true, type: 'text' })
|
||||
knowledgeGroupId: string | null;
|
||||
|
||||
@ManyToOne(() => KnowledgeGroup, { nullable: true })
|
||||
@JoinColumn({ name: 'knowledge_group_id' })
|
||||
knowledgeGroup: KnowledgeGroup;
|
||||
|
||||
@Column({ name: 'thread_id', nullable: true })
|
||||
@Column({ name: 'thread_id', nullable: true, type: 'text' })
|
||||
threadId: string;
|
||||
|
||||
@Column({
|
||||
@@ -85,6 +85,18 @@ export class AssessmentSession {
|
||||
@Column({ type: 'simple-json', name: 'review_history', nullable: true })
|
||||
reviewHistory: any[];
|
||||
|
||||
@Column({ name: 'started_at', nullable: true, type: 'datetime' })
|
||||
startedAt: Date | null;
|
||||
|
||||
@Column({ name: 'current_question_started_at', nullable: true, type: 'datetime' })
|
||||
currentQuestionStartedAt: Date | null;
|
||||
|
||||
@Column({ type: 'int', name: 'total_time_limit', default: 1800 })
|
||||
totalTimeLimit: number;
|
||||
|
||||
@Column({ type: 'int', name: 'per_question_time_limit', default: 300 })
|
||||
perQuestionTimeLimit: number;
|
||||
|
||||
@Column({ type: 'int', name: 'current_question_index', default: 0 })
|
||||
currentQuestionIndex: number;
|
||||
|
||||
@@ -97,7 +109,7 @@ export class AssessmentSession {
|
||||
@Column({ type: 'varchar', length: 10, default: 'zh' })
|
||||
language: string;
|
||||
|
||||
@Column({ name: 'template_id', nullable: true })
|
||||
@Column({ name: 'template_id', nullable: true, type: 'text' })
|
||||
templateId: string;
|
||||
|
||||
@ManyToOne(() => AssessmentTemplate, { nullable: true })
|
||||
|
||||
Reference in New Issue
Block a user