new Ep
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { Entity, PrimaryColumn, Column } from 'typeorm';
|
||||
import { BitacoraMesa } from 'src/bitacora_mesa/entities/bitacora_mesa.entity';
|
||||
import { Entity, PrimaryColumn, Column, OneToMany } from 'typeorm';
|
||||
|
||||
@Entity({ name: 'mesa' })
|
||||
export class Mesa {
|
||||
@@ -7,4 +8,7 @@ export class Mesa {
|
||||
|
||||
@Column({ name: 'activo', type: 'tinyint', default: 1 })
|
||||
activo: boolean;
|
||||
|
||||
@OneToMany(() => BitacoraMesa, (bitacoraMesa) => bitacoraMesa.mesa)
|
||||
bitacoras_mesa: BitacoraMesa[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user