2020-07-22 22:56:21 +03:00
|
|
|
import { Column, Entity, JoinColumn, ManyToOne, PrimaryColumn } from "typeorm";
|
2019-06-23 19:18:41 +03:00
|
|
|
import { ApiUserInfo } from "./ApiUserInfo";
|
2019-06-22 18:52:24 +03:00
|
|
|
|
|
|
|
@Entity("configs")
|
|
|
|
export class Config {
|
|
|
|
@Column()
|
|
|
|
@PrimaryColumn()
|
|
|
|
id: number;
|
|
|
|
|
|
|
|
@Column()
|
|
|
|
key: string;
|
|
|
|
|
|
|
|
@Column()
|
|
|
|
config: string;
|
|
|
|
|
|
|
|
@Column()
|
|
|
|
is_active: boolean;
|
|
|
|
|
|
|
|
@Column()
|
|
|
|
edited_by: string;
|
|
|
|
|
|
|
|
@Column()
|
|
|
|
edited_at: string;
|
2019-06-23 19:18:41 +03:00
|
|
|
|
2021-09-11 19:06:51 +03:00
|
|
|
@ManyToOne((type) => ApiUserInfo)
|
2019-06-23 19:18:41 +03:00
|
|
|
@JoinColumn({ name: "edited_by" })
|
|
|
|
userInfo: ApiUserInfo;
|
2019-06-22 18:52:24 +03:00
|
|
|
}
|