update
This commit is contained in:
40
src/entity/remit_partner_callbacks.ts
Normal file
40
src/entity/remit_partner_callbacks.ts
Normal file
@ -0,0 +1,40 @@
|
||||
import { Column, CreateDateColumn, DeleteDateColumn, Entity, JoinColumn, ManyToOne, PrimaryGeneratedColumn, UpdateDateColumn } from "typeorm";
|
||||
import { RemitPartner } from "./remit_partners";
|
||||
import { RemitDocumentType } from "../types/remit";
|
||||
|
||||
@Entity("remit_partner_callbacks", { schema: "remits" })
|
||||
export class RemitPartnerCallback {
|
||||
@PrimaryGeneratedColumn("uuid")
|
||||
id: string;
|
||||
|
||||
@ManyToOne(() => RemitPartner, { onDelete: "RESTRICT" })
|
||||
@JoinColumn()
|
||||
partner: RemitPartner;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 256,
|
||||
})
|
||||
url: string;
|
||||
|
||||
@Column()
|
||||
@CreateDateColumn()
|
||||
created_at: Date;
|
||||
|
||||
@Column({ nullable: true, length: 256 })
|
||||
created_by: string;
|
||||
|
||||
@Column({ nullable: true })
|
||||
@UpdateDateColumn()
|
||||
updated_at: Date;
|
||||
|
||||
@Column({ nullable: true, length: 256 })
|
||||
updated_by: string;
|
||||
|
||||
@Column({ nullable: true })
|
||||
@DeleteDateColumn()
|
||||
deleted_at: Date;
|
||||
|
||||
@Column({ nullable: true, length: 256 })
|
||||
deleted_by: string;
|
||||
}
|
||||
@ -120,6 +120,7 @@ import { RemitConfigTransactionInfo } from "./entity/remit_config_transaction_in
|
||||
import { RemitConfigBoom } from "./entity/remit_config_booms";
|
||||
import { RemitIndoProvince } from "./entity/remit_indo_provinces";
|
||||
import { RemitIndoCity } from "./entity/remit_indo_cities";
|
||||
import { RemitPartnerCallback } from "./entity/remit_partner_callbacks";
|
||||
|
||||
import {
|
||||
RemitPartnerType, //
|
||||
@ -410,6 +411,7 @@ export {
|
||||
RemitConfigBoom,
|
||||
RemitIndoProvince,
|
||||
RemitIndoCity,
|
||||
RemitPartnerCallback,
|
||||
TcelConfig,
|
||||
TcelLog,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user