2020-04-22 01:59:20 +02:00
|
|
|
import { Column, Entity, PrimaryColumn } from 'typeorm';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This entity represents a single store value, identified by its key.
|
|
|
|
*/
|
|
|
|
@Entity()
|
|
|
|
export class StoreValue {
|
|
|
|
/**
|
|
|
|
* the key
|
|
|
|
*/
|
|
|
|
@PrimaryColumn()
|
2020-07-25 02:02:37 +02:00
|
|
|
public key: StoreKey | string = '';
|
2020-04-22 01:59:20 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* the value
|
|
|
|
*/
|
|
|
|
@Column('simple-json')
|
2020-07-25 02:02:37 +02:00
|
|
|
public value: unknown;
|
2020-04-22 01:59:20 +02:00
|
|
|
}
|