@sologence/nestjs-redshift-migration
Version:
NestJS migration module for Redshift data migration
28 lines (22 loc) • 592 B
text/typescript
import { Column, Entity, PrimaryColumn } from 'typeorm';
/**
* Entity to track migration history in the database
*/
export class MigrationHistory {
/** Unique identifier for the migration record */
id?: number;
/** Name of the migration file */
migration_file_name: string;
/** Directory key where migration is stored */
migration_dir_key: string;
/** Timestamp when migration was created */
created_on: Date;
/** Unix timestamp of the migration */
timestamp: number;
}