mirror of
https://github.com/immich-app/immich.git
synced 2025-05-31 20:25:32 -04:00
13 lines
386 B
TypeScript
13 lines
386 B
TypeScript
import { SystemMetadataKey } from 'src/enum';
|
|
import { Column, PrimaryColumn, Table } from 'src/sql-tools';
|
|
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];
|
|
}
|