mirror of
https://github.com/CaramelFur/Picsur.git
synced 2025-11-13 15:25:39 +01:00
16 lines
402 B
TypeScript
16 lines
402 B
TypeScript
import { ESysPreference } from 'picsur-shared/dist/entities/syspreference.entity';
|
|
import { Column, Entity, Index, PrimaryGeneratedColumn } from 'typeorm';
|
|
|
|
@Entity()
|
|
export class ESysPreferenceBackend implements ESysPreference {
|
|
@PrimaryGeneratedColumn('uuid')
|
|
id?: string;
|
|
|
|
@Index()
|
|
@Column({ nullable: false, unique: true })
|
|
key: string;
|
|
|
|
@Column({ nullable: false })
|
|
value: string;
|
|
}
|