update
This commit is contained in:
@ -3,6 +3,8 @@ import { Column, CreateDateColumn, DeleteDateColumn, Entity, JoinTable, ManyToOn
|
|||||||
import { BrizziHistoryActvity, BrizziHistoryRemarks, BrizziHistoryType } from '../types/brizzi';
|
import { BrizziHistoryActvity, BrizziHistoryRemarks, BrizziHistoryType } from '../types/brizzi';
|
||||||
import { BrilinkTerminal } from './brilink_terminals';
|
import { BrilinkTerminal } from './brilink_terminals';
|
||||||
import { BrizziCard } from './brizzi_cards';
|
import { BrizziCard } from './brizzi_cards';
|
||||||
|
import { BrilinkMerchant } from './brilink_merchants';
|
||||||
|
import { BrilinkMerchantTerminal } from './brilink_merchant_terminals';
|
||||||
|
|
||||||
@Entity('brizzi_histories', { schema: 'brizzis' })
|
@Entity('brizzi_histories', { schema: 'brizzis' })
|
||||||
export class BrizziHistory {
|
export class BrizziHistory {
|
||||||
@ -35,7 +37,15 @@ export class BrizziHistory {
|
|||||||
})
|
})
|
||||||
type: BrizziHistoryType;
|
type: BrizziHistoryType;
|
||||||
|
|
||||||
@ManyToOne(() => BrilinkTerminal, { onDelete: 'RESTRICT', nullable: true })
|
@ManyToOne(() => BrilinkMerchant, { onDelete: 'NO ACTION', nullable: true })
|
||||||
|
@JoinTable()
|
||||||
|
merchant: BrilinkMerchant
|
||||||
|
|
||||||
|
@ManyToOne(() => BrilinkMerchantTerminal, { onDelete: 'NO ACTION', nullable: true })
|
||||||
|
@JoinTable()
|
||||||
|
merchant_terminal: BrilinkMerchantTerminal
|
||||||
|
|
||||||
|
@ManyToOne(() => BrilinkTerminal, { onDelete: 'NO ACTION', nullable: true })
|
||||||
@JoinTable()
|
@JoinTable()
|
||||||
terminal: BrilinkTerminal
|
terminal: BrilinkTerminal
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user