update
This commit is contained in:
@ -10,6 +10,8 @@ import { RemitConfigOccupation } from "./remit_config_occupations";
|
||||
import { RemitGender, RemitIdentityType, RemitSenderType } from "../types/remit";
|
||||
import { RemitConfigSourceIncome } from "./remit_config_source_incomes";
|
||||
import { RemitConfigBank } from "./remit_config_banks";
|
||||
import { RemitIndoProvince } from "./remit_indo_provinces";
|
||||
import { RemitIndoCity } from "./remit_indo_cities";
|
||||
|
||||
@Entity("remit_beneficiaries", { schema: "remits" })
|
||||
export class RemitBeneficiary {
|
||||
@ -44,6 +46,14 @@ export class RemitBeneficiary {
|
||||
})
|
||||
address: string;
|
||||
|
||||
@ManyToOne(() => RemitIndoProvince, { onDelete: "NO ACTION", nullable: true })
|
||||
@JoinColumn()
|
||||
province: RemitIndoProvince;
|
||||
|
||||
@ManyToOne(() => RemitIndoCity, { onDelete: "NO ACTION", nullable: true })
|
||||
@JoinColumn()
|
||||
city: RemitIndoCity;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 256,
|
||||
@ -66,7 +76,7 @@ export class RemitBeneficiary {
|
||||
@CreateDateColumn()
|
||||
created_at: Date;
|
||||
|
||||
@Column({ nullable: true, length: 256, })
|
||||
@Column({ nullable: true, length: 256 })
|
||||
created_by: string;
|
||||
|
||||
@Column({ nullable: true })
|
||||
|
||||
@ -95,6 +95,27 @@ export class RemitTransaction {
|
||||
@Column({ nullable: true, length: 256 })
|
||||
approved_by: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 4096,
|
||||
})
|
||||
note: String;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 4096,
|
||||
})
|
||||
remark: String;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
type: "int2",
|
||||
})
|
||||
callback_count: Number;
|
||||
|
||||
@Column({ nullable: true })
|
||||
callback_at: Date;
|
||||
|
||||
@Column()
|
||||
@CreateDateColumn()
|
||||
created_at: Date;
|
||||
|
||||
Reference in New Issue
Block a user