update telemor
This commit is contained in:
54
src/entity/telemor_logs.ts
Normal file
54
src/entity/telemor_logs.ts
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
import { Column, CreateDateColumn, Entity, JoinColumn, ManyToOne, PrimaryGeneratedColumn } from "typeorm";
|
||||||
|
import { Application } from "./application";
|
||||||
|
|
||||||
|
@Entity("telemor_logs", { schema: "telemor" })
|
||||||
|
export class TelemorLogs {
|
||||||
|
@PrimaryGeneratedColumn("uuid")
|
||||||
|
id: string;
|
||||||
|
|
||||||
|
@ManyToOne(() => Application, { onDelete: "NO ACTION" })
|
||||||
|
@JoinColumn({ name: "application" })
|
||||||
|
application: Application;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
length: 256,
|
||||||
|
})
|
||||||
|
url: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
type: "jsonb",
|
||||||
|
})
|
||||||
|
header: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
type: "jsonb",
|
||||||
|
})
|
||||||
|
body: string;
|
||||||
|
|
||||||
|
@Column()
|
||||||
|
request_at: Date;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
length: 4096,
|
||||||
|
})
|
||||||
|
response: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
length: 128,
|
||||||
|
nullable: true,
|
||||||
|
})
|
||||||
|
supplier_reference_code: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
length: 128,
|
||||||
|
nullable: true,
|
||||||
|
})
|
||||||
|
supplier_transaction_code: string;
|
||||||
|
|
||||||
|
@Column()
|
||||||
|
response_at: Date;
|
||||||
|
|
||||||
|
@Column()
|
||||||
|
@CreateDateColumn()
|
||||||
|
created_at: Date;
|
||||||
|
}
|
||||||
28
src/entity/telemor_mosan_remit_configs.ts
Normal file
28
src/entity/telemor_mosan_remit_configs.ts
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
import { Column, CreateDateColumn, Entity, PrimaryGeneratedColumn, UpdateDateColumn } from "typeorm";
|
||||||
|
|
||||||
|
@Entity("telemor_mosan_remit_configs", { schema: "telemor" })
|
||||||
|
export class TelemorMosanRemitConfig {
|
||||||
|
@PrimaryGeneratedColumn("uuid")
|
||||||
|
id: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
length: 4096,
|
||||||
|
})
|
||||||
|
key: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
length: 4096,
|
||||||
|
})
|
||||||
|
value: string;
|
||||||
|
|
||||||
|
@Column()
|
||||||
|
@CreateDateColumn()
|
||||||
|
created_at: Date;
|
||||||
|
|
||||||
|
@Column({ nullable: true })
|
||||||
|
@UpdateDateColumn()
|
||||||
|
updated_at: Date;
|
||||||
|
|
||||||
|
@Column({ nullable: true })
|
||||||
|
expired_at: Date;
|
||||||
|
}
|
||||||
@ -12,3 +12,4 @@ export * from "./schema/eform";
|
|||||||
export * from "./schema/compliance";
|
export * from "./schema/compliance";
|
||||||
export * from "./schema/trx";
|
export * from "./schema/trx";
|
||||||
export * from "./schema/gps";
|
export * from "./schema/gps";
|
||||||
|
export * from "./schema/telemor";
|
||||||
|
|||||||
2
src/schema/telemor.ts
Normal file
2
src/schema/telemor.ts
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
export * from "../entity/telemor_mosan_remit_configs";
|
||||||
|
export * from "../entity/telemor_logs";
|
||||||
Reference in New Issue
Block a user