update entity
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn, JoinColumn, ManyToOne } from 'typeorm';
|
||||
import { Product } from './products';
|
||||
import { Branch } from './branchs';
|
||||
|
||||
@Entity('lnkolek')
|
||||
export class LNKOLEK {
|
||||
@ -10,6 +11,10 @@ export class LNKOLEK {
|
||||
@JoinColumn()
|
||||
product: Product
|
||||
|
||||
@ManyToOne(() => Branch, { onDelete: "RESTRICT" })
|
||||
@JoinColumn()
|
||||
branch: Branch
|
||||
|
||||
@Column({
|
||||
type: 'float',
|
||||
nullable: false
|
||||
|
||||
Reference in New Issue
Block a user