no message
This commit is contained in:
parent
317920ad0d
commit
b2b97aecf0
6 changed files with 225 additions and 6 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue