refactor(server): non-nullable file metadata (#17598)

This commit is contained in:
Mert 2025-04-15 07:03:31 -04:00 committed by GitHub
parent bd92748ddd
commit c3d10c5be2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 49 additions and 66 deletions

View file

@ -79,10 +79,10 @@ export class AssetTable {
originalPath!: string;
@ColumnIndex('idx_asset_file_created_at')
@Column({ type: 'timestamp with time zone', default: null })
@Column({ type: 'timestamp with time zone' })
fileCreatedAt!: Date;
@Column({ type: 'timestamp with time zone', default: null })
@Column({ type: 'timestamp with time zone' })
fileModifiedAt!: Date;
@Column({ type: 'boolean', default: false })
@ -135,7 +135,7 @@ export class AssetTable {
@DeleteDateColumn()
deletedAt!: Date | null;
@Column({ type: 'timestamp with time zone', default: null })
@Column({ type: 'timestamp with time zone' })
localDateTime!: Date;
@ForeignKeyColumn(() => StackTable, { nullable: true, onDelete: 'SET NULL', onUpdate: 'CASCADE' })