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 { 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;
|
||||
|
||||
@ -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()
|
||||
|
||||
Reference in New Issue
Block a user