certd/packages/libs/midway-flyway-js/src/entity.ts

25 lines
449 B
TypeScript

import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
@Entity('flyway_history')
export class FlywayHistory {
@PrimaryGeneratedColumn()
id?: number;
@Column({ comment: '文件名', length: 100 })
name?: string;
@Column({ comment: 'hash', length: 32 })
hash?: string;
@Column({
comment: '执行时间',
})
timestamp?: Date;
@Column({
comment: '执行成功',
default: true,
})
success?: boolean;
}