feat: write integrity report to database

This commit is contained in:
izzy
2025-11-27 12:53:04 +00:00
parent 15503b150a
commit 1e941f3f88
8 changed files with 105 additions and 16 deletions
@@ -0,0 +1,21 @@
import { IntegrityReportType } from 'src/enum';
import {
Column,
Generated,
PrimaryGeneratedColumn,
Table,
Unique
} from 'src/sql-tools';
@Table('integrity_report')
@Unique({ columns: ['type', 'path'] })
export class IntegrityReportTable {
@PrimaryGeneratedColumn()
id!: Generated<string>;
@Column()
type!: IntegrityReportType;
@Column()
path!: string;
}