This commit is contained in:
2025-07-27 20:36:44 +07:00
2 changed files with 5 additions and 6 deletions

View File

@ -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;

View File

@ -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()