2022-03-04 00:01:34 +01:00
|
|
|
import { ESysPreference } from 'picsur-shared/dist/entities/syspreference.entity';
|
2022-03-28 14:16:23 +02:00
|
|
|
import { Column, Entity, Index, PrimaryGeneratedColumn } from 'typeorm';
|
2022-03-04 00:01:34 +01:00
|
|
|
|
|
|
|
|
@Entity()
|
2022-04-04 10:36:59 +02:00
|
|
|
export class ESysPreferenceBackend implements ESysPreference {
|
|
|
|
|
@PrimaryGeneratedColumn('uuid')
|
|
|
|
|
id?: string;
|
2022-03-04 00:01:34 +01:00
|
|
|
|
2022-03-28 14:16:23 +02:00
|
|
|
@Index()
|
2022-03-10 23:02:27 +01:00
|
|
|
@Column({ nullable: false, unique: true })
|
2022-04-04 10:36:59 +02:00
|
|
|
key: string;
|
2022-03-04 00:01:34 +01:00
|
|
|
|
2022-03-10 23:02:27 +01:00
|
|
|
@Column({ nullable: false })
|
2022-04-04 10:36:59 +02:00
|
|
|
value: string;
|
2022-03-04 00:01:34 +01:00
|
|
|
}
|