mirror of
https://github.com/immich-app/immich.git
synced 2026-02-15 05:18:37 +03:00
22 lines
380 B
TypeScript
22 lines
380 B
TypeScript
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;
|
|
}
|