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 { RemitRiskLevel } from "../types/remit";
import { RemitIndoProvince } from "./remit_indo_provinces";
@Entity("remit_config_beneficiary_provinces", { schema: "remits" })
export class RemitConfigBeneficiaryProvince {
@PrimaryGeneratedColumn("uuid")
id: string;
@Column({
nullable: true,
length: 256,
})
name: string;
@ManyToOne(() => RemitIndoProvince, { onDelete: "RESTRICT" })
@JoinColumn()
indo_province: RemitIndoProvince;
@Column({ type: "smallint", default: 0 })
level: Number;

View File

@ -39,7 +39,7 @@ export class RemitTransaction {
@ManyToOne(() => RemitBeneficial, { onDelete: "NO ACTION", nullable: true })
@JoinColumn()
benefecial: RemitBeneficial;
beneficial: RemitBeneficial;
@ManyToOne(() => RemitBeneficiary, { onDelete: "NO ACTION" })
@JoinTable()