Multicylinders
This commit is contained in:
@@ -4,6 +4,7 @@ import {
|
||||
CreateDateColumn,
|
||||
DeleteDateColumn,
|
||||
Entity,
|
||||
ManyToMany,
|
||||
ManyToOne,
|
||||
OneToMany,
|
||||
PrimaryGeneratedColumn,
|
||||
@@ -20,7 +21,7 @@ export class Cylinder {
|
||||
@Column({ nullable: false, unique: true })
|
||||
name: string;
|
||||
|
||||
@OneToMany(() => Key, (key) => key.cylinder)
|
||||
@ManyToMany(() => Key, (key) => key.cylinder)
|
||||
keys: Key[];
|
||||
|
||||
@ManyToOne(() => KeySystem, (sys) => sys.cylinders)
|
||||
|
||||
Reference in New Issue
Block a user