remit - update

This commit is contained in:
fro1991
2025-06-21 22:47:50 +07:00
parent 8682dc803e
commit ef636b9a55
2 changed files with 76 additions and 1 deletions

View File

@ -0,0 +1,73 @@
import { Column, CreateDateColumn, DeleteDateColumn, Entity, JoinColumn, ManyToOne, PrimaryGeneratedColumn, UpdateDateColumn } from "typeorm";
import { RemitPartner } from "./remit_partners";
@Entity("remit_partner_api_logs", { schema: "remits" })
export class RemitPartnerApiLog {
@PrimaryGeneratedColumn("uuid")
id: string;
@ManyToOne(() => RemitPartner, { onDelete: "RESTRICT" })
@JoinColumn()
partner: RemitPartner;
@Column({
nullable: true,
})
request_at: Date;
@Column({
nullable: true,
length: 256,
})
path: string;
@Column({
nullable: true,
length: 256,
})
verb: string;
@Column({
nullable: true,
length: 256,
})
signature: string;
@Column({
nullable: true,
length: 256,
})
timestamp: string;
@Column({
nullable: true,
type: 'text'
})
decode: string;
@Column({
nullable: true,
type: 'text'
})
param: string;
@Column({
nullable: true,
type: 'text'
})
response: string;
@Column({
nullable: true,
type: 'text'
})
response_at: string;
@Column()
@CreateDateColumn()
created_at: Date;
@Column({ nullable: true })
@UpdateDateColumn()
updated_at: Date;
}

View File

@ -99,6 +99,7 @@ import { RemitConfigPurpose } from "./entity/remit_config_purposes";
import { RemitConfigSourceIncome } from "./entity/remit_config_source_incomes";
import { RemitPartnerAccounts } from "./entity/remit_partner_accounts";
import { RemitPartnerApi } from "./entity/remit_partner_apis";
import { RemitPartnerApiLog } from "./entity/remit_partner_api_logs";
import { RemitPartnerDocument } from "./entity/remit_partner_documents";
import { RemitPartnerFee } from "./entity/remit_partner_fees";
import { RemitPartnerOwners } from "./entity/remit_partner_owners";
@ -347,6 +348,7 @@ export {
RemitConfigSourceIncome,
RemitPartnerAccounts,
RemitPartnerApi,
RemitPartnerApiLog,
RemitPartnerDocument,
RemitPartnerFee,
RemitPartnerOwners,
@ -354,5 +356,5 @@ export {
RemitPartner,
RemitSender,
RemitSenderIdentity,
RemitTransaction
RemitTransaction,
};