fix: fix some changes
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user