upadate
This commit is contained in:
57
src/entity/remit_config_allocation.ts
Normal file
57
src/entity/remit_config_allocation.ts
Normal file
@ -0,0 +1,57 @@
|
||||
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn, Index, JoinColumn, ManyToOne } from "typeorm";
|
||||
|
||||
import { Status } from "../types/status";
|
||||
|
||||
@Entity("remit_config_allocations", { schema: "remits" })
|
||||
export class RemitConfigAllocation {
|
||||
@PrimaryGeneratedColumn("uuid")
|
||||
id: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 256,
|
||||
})
|
||||
type: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 256,
|
||||
})
|
||||
bri_value: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 256,
|
||||
})
|
||||
partner_value: string;
|
||||
|
||||
@Column({
|
||||
nullable: false,
|
||||
length: 64,
|
||||
})
|
||||
status: Status;
|
||||
|
||||
@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;
|
||||
}
|
||||
@ -2,8 +2,8 @@ import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateCol
|
||||
|
||||
import { Status } from "../types/status";
|
||||
|
||||
@Entity("remit_configs", { schema: "remits" })
|
||||
export class RemitConfig {
|
||||
@Entity("remit_config_transactions", { schema: "remits" })
|
||||
export class RemitConfigTransaction {
|
||||
@PrimaryGeneratedColumn("uuid")
|
||||
id: string;
|
||||
|
||||
@ -32,6 +32,12 @@ export class RemitPartner {
|
||||
})
|
||||
address: string;
|
||||
|
||||
@Column({
|
||||
nullable: false,
|
||||
length: 4096,
|
||||
})
|
||||
type: string;
|
||||
|
||||
@Column({
|
||||
nullable: false,
|
||||
unique: false,
|
||||
|
||||
@ -88,7 +88,8 @@ import { RemitTransfer } from "./entity/remit_tansfer";
|
||||
import { RemitTopup } from "./entity/remit_topup";
|
||||
import { RemitMutation } from "./entity/remit_mutation";
|
||||
import { RemitBank } from "./entity/remit_bank";
|
||||
import { RemitConfig } from "./entity/remit_config";
|
||||
import { RemitConfigTransaction } from "./entity/remit_config_transaction";
|
||||
import { RemitConfigAllocation } from "./entity/remit_config_allocation";
|
||||
|
||||
export {
|
||||
User, //
|
||||
@ -188,5 +189,6 @@ export {
|
||||
RemitTopup,
|
||||
RemitMutation,
|
||||
RemitBank,
|
||||
RemitConfig,
|
||||
RemitConfigTransaction,
|
||||
RemitConfigAllocation,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user