mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
feat: write integrity report to database
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user