Merge branch 'main' of https://git.shiblysolution.id/BRITL/entity
This commit is contained in:
@ -2,17 +2,16 @@ import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateCol
|
|||||||
|
|
||||||
import { Status } from "../types/status";
|
import { Status } from "../types/status";
|
||||||
import { RemitRiskLevel } from "../types/remit";
|
import { RemitRiskLevel } from "../types/remit";
|
||||||
|
import { RemitIndoProvince } from "./remit_indo_provinces";
|
||||||
|
|
||||||
@Entity("remit_config_beneficiary_provinces", { schema: "remits" })
|
@Entity("remit_config_beneficiary_provinces", { schema: "remits" })
|
||||||
export class RemitConfigBeneficiaryProvince {
|
export class RemitConfigBeneficiaryProvince {
|
||||||
@PrimaryGeneratedColumn("uuid")
|
@PrimaryGeneratedColumn("uuid")
|
||||||
id: string;
|
id: string;
|
||||||
|
|
||||||
@Column({
|
@ManyToOne(() => RemitIndoProvince, { onDelete: "RESTRICT" })
|
||||||
nullable: true,
|
@JoinColumn()
|
||||||
length: 256,
|
indo_province: RemitIndoProvince;
|
||||||
})
|
|
||||||
name: string;
|
|
||||||
|
|
||||||
@Column({ type: "smallint", default: 0 })
|
@Column({ type: "smallint", default: 0 })
|
||||||
level: Number;
|
level: Number;
|
||||||
|
|||||||
@ -39,7 +39,7 @@ export class RemitTransaction {
|
|||||||
|
|
||||||
@ManyToOne(() => RemitBeneficial, { onDelete: "NO ACTION", nullable: true })
|
@ManyToOne(() => RemitBeneficial, { onDelete: "NO ACTION", nullable: true })
|
||||||
@JoinColumn()
|
@JoinColumn()
|
||||||
benefecial: RemitBeneficial;
|
beneficial: RemitBeneficial;
|
||||||
|
|
||||||
@ManyToOne(() => RemitBeneficiary, { onDelete: "NO ACTION" })
|
@ManyToOne(() => RemitBeneficiary, { onDelete: "NO ACTION" })
|
||||||
@JoinTable()
|
@JoinTable()
|
||||||
|
|||||||
Reference in New Issue
Block a user