update
This commit is contained in:
7
.prettierrc
Normal file
7
.prettierrc
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"printWidth": 5000,
|
||||||
|
"semi": true,
|
||||||
|
"singleQuote": false,
|
||||||
|
"tabWidth": 4,
|
||||||
|
"useTabs": true
|
||||||
|
}
|
||||||
@ -8,6 +8,7 @@ import { RemitBeneficiary } from "./remit_beneficiaries";
|
|||||||
import { RemitConfigPurpose } from "./remit_config_purposes";
|
import { RemitConfigPurpose } from "./remit_config_purposes";
|
||||||
import { RemitTransactionCurrencyType, RemitTransactionStatus } from "../types/remit";
|
import { RemitTransactionCurrencyType, RemitTransactionStatus } from "../types/remit";
|
||||||
import { RemitBeneficial } from "./remit_beneficials";
|
import { RemitBeneficial } from "./remit_beneficials";
|
||||||
|
import { RemitConfigRate } from "./remit_config_rates";
|
||||||
|
|
||||||
@Entity("remit_transactions", { schema: "remits" })
|
@Entity("remit_transactions", { schema: "remits" })
|
||||||
export class RemitTransaction {
|
export class RemitTransaction {
|
||||||
@ -56,10 +57,20 @@ export class RemitTransaction {
|
|||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: false,
|
nullable: false,
|
||||||
type: 'float8',
|
type: "float8",
|
||||||
})
|
})
|
||||||
amount: Number;
|
amount: Number;
|
||||||
|
|
||||||
|
@ManyToOne(() => RemitConfigRate, { onDelete: "RESTRICT", nullable: true })
|
||||||
|
@JoinTable()
|
||||||
|
rate: RemitConfigRate;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
type: "float8",
|
||||||
|
})
|
||||||
|
total: Number;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
length: 4096,
|
length: 4096,
|
||||||
@ -81,14 +92,14 @@ export class RemitTransaction {
|
|||||||
@Column({ nullable: true })
|
@Column({ nullable: true })
|
||||||
approved_at: Date;
|
approved_at: Date;
|
||||||
|
|
||||||
@Column({ nullable: true, length: 256, })
|
@Column({ nullable: true, length: 256 })
|
||||||
approved_by: string;
|
approved_by: string;
|
||||||
|
|
||||||
@Column()
|
@Column()
|
||||||
@CreateDateColumn()
|
@CreateDateColumn()
|
||||||
created_at: Date;
|
created_at: Date;
|
||||||
|
|
||||||
@Column({ nullable: true, length: 256, })
|
@Column({ nullable: true, length: 256 })
|
||||||
created_by: string;
|
created_by: string;
|
||||||
|
|
||||||
@Column({ nullable: true })
|
@Column({ nullable: true })
|
||||||
|
|||||||
Reference in New Issue
Block a user