no message

This commit is contained in:
kittapath 2024-09-24 16:42:24 +07:00
parent 317920ad0d
commit b2b97aecf0
6 changed files with 225 additions and 6 deletions

View file

@ -1,6 +1,7 @@
import { Entity, Column, JoinColumn, ManyToOne } from "typeorm";
import { Entity, Column, JoinColumn, ManyToOne, OneToMany } from "typeorm";
import { EntityBase } from "./base/Base";
import { CommandSys } from "./CommandSys";
import { Command } from "./Command";
@Entity("commandSalary")
export class CommandSalary extends EntityBase {
@ -29,6 +30,9 @@ export class CommandSalary extends EntityBase {
@ManyToOne(() => CommandSys, (commandSys) => commandSys.commandSalarys)
@JoinColumn({ name: "commandSysId" })
commandSalarySys: CommandSys;
@OneToMany(() => Command, (command) => command.commandSalary)
commands: Command[];
}
export class CreateCommandSalary {