Files
Immich/server/src/schema/tables/system-metadata.table.ts
T
2026-02-23 09:50:16 -05:00

13 lines
390 B
TypeScript

import { Column, PrimaryColumn, Table } from '@immich/sql-tools';
import { SystemMetadataKey } from 'src/enum';
import { SystemMetadata } from 'src/types';
@Table('system_metadata')
export class SystemMetadataTable<T extends keyof SystemMetadata = SystemMetadataKey> {
@PrimaryColumn({ type: 'character varying' })
key!: T;
@Column({ type: 'jsonb' })
value!: SystemMetadata[T];
}