fix: fix some changes

This commit is contained in:
2026-12-01 08:36:29 +03:30
parent 8a1e61b0f7
commit a202e65692
4 changed files with 25 additions and 25 deletions
+14 -14
View File
@@ -18,44 +18,44 @@ export type ArticleStatus = 'pending' | 'processing' | 'ready' | 'failed';
)
export class Article {
@PrimaryColumn('uuid', { primaryKeyConstraintName: 'rag_article_pkey' })
id: string;
id!: string;
@Column('uuid')
storageKey: string;
storageKey!: string;
@Column('uuid', { nullable: true })
runToken: string | null;
runToken!: string | null;
@Column({ length: 240 })
title: string;
title!: string;
@Column({ length: 255 })
fileName: string;
fileName!: string;
@Column({ length: 120 })
mimeType: string;
mimeType!: string;
@Column('integer')
byteSize: number;
byteSize!: number;
@Column('varchar', { length: 2048, nullable: true })
sourceUrl: string | null;
sourceUrl!: string | null;
@Column('varchar', { length: 16 })
status: ArticleStatus;
status!: ArticleStatus;
@Column('integer', { default: 1 })
generation: number;
generation!: number;
@Column('varchar', { length: 300, nullable: true })
embeddingModel: string | null;
embeddingModel!: string | null;
@Column('varchar', { length: 80, nullable: true })
errorCode: string | null;
errorCode!: string | null;
@CreateDateColumn({ type: 'timestamptz' })
createdAt: Date;
createdAt!: Date;
@UpdateDateColumn({ type: 'timestamptz' })
updatedAt: Date;
updatedAt!: Date;
}