chore: import DH V2 D5.6.4 production baseline
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
import { Column, Entity, Index, PrimaryGeneratedColumn } from 'typeorm';
|
||||
import { TimestampedEntity } from './timestamped.entity';
|
||||
|
||||
@Entity({ name: 'finding_catalog_asset_overrides' })
|
||||
@Index('uq_finding_catalog_asset_overrides_pair', ['assetId', 'catalogItemId'], { unique: true })
|
||||
@Index('idx_finding_catalog_asset_overrides_asset', ['assetId'])
|
||||
export class FindingCatalogAssetOverride extends TimestampedEntity {
|
||||
@PrimaryGeneratedColumn('uuid')
|
||||
id!: string;
|
||||
|
||||
@Column({ name: 'asset_id', type: 'uuid' })
|
||||
assetId!: string;
|
||||
|
||||
@Column({ name: 'catalog_item_id', type: 'uuid' })
|
||||
catalogItemId!: string;
|
||||
|
||||
@Column({ name: 'is_enabled', type: 'boolean' })
|
||||
isEnabled!: boolean;
|
||||
|
||||
@Column({ type: 'text' })
|
||||
reason!: string;
|
||||
|
||||
@Column({ name: 'created_by', type: 'uuid', nullable: true })
|
||||
createdBy!: string | null;
|
||||
|
||||
@Column({ name: 'updated_by', type: 'uuid', nullable: true })
|
||||
updatedBy!: string | null;
|
||||
}
|
||||
Reference in New Issue
Block a user