summary refs log tree commit diff
path: root/src/util/entities/Config.ts
blob: fc33bb65515c3e7e68b2ed6d949ad4ea09ef0a28 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
import { Column, Entity } from "typeorm";
import { BaseClassWithoutId, PrimaryIdColumn } from "./BaseClass";

@Entity("config")
export class ConfigEntity extends BaseClassWithoutId {
	@PrimaryIdColumn()
	key: string;

	@Column({ type: "simple-json", nullable: true })
	value: number | boolean | null | string | undefined;
}