This commit is contained in:
2025-10-08 02:41:51 +07:00
parent 3f1cc31e71
commit d7e9084cbf
2 changed files with 56 additions and 1 deletions

View File

@ -0,0 +1,54 @@
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn, Index, JoinColumn, ManyToOne } from "typeorm";
import { Status } from "../types/status";
@Entity("trx_config_rates", { schema: "trx" })
export class TrxConfigRate {
@PrimaryGeneratedColumn("uuid")
id: string;
@Column({
nullable: true,
length: 256,
})
from: string;
@Column({
nullable: true,
length: 256,
})
to: string;
@Column({
nullable: false,
type: "float8",
})
value: Number;
@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;
@Column({ nullable: true, length: 256 })
deleted_by: string;
}

View File

@ -20,6 +20,8 @@ export * from "../entity/trx_config_levels";
export * from "../entity/trx_config_occupations"; export * from "../entity/trx_config_occupations";
export * from "../entity/trx_config_products"; export * from "../entity/trx_config_products";
export * from "../entity/trx_config_purposes"; export * from "../entity/trx_config_purposes";
export * from "../entity/trx_config_language";
export * from "../entity/trx_config_rate";
export * from "../entity/trx_config_relations"; export * from "../entity/trx_config_relations";
export * from "../entity/trx_config_religions"; export * from "../entity/trx_config_religions";
export * from "../entity/trx_config_source_incomes"; export * from "../entity/trx_config_source_incomes";
@ -39,5 +41,4 @@ export * from "../entity/trx_transactions";
export * from "../entity/trx_transaction_swift"; export * from "../entity/trx_transaction_swift";
export * from "../entity/trx_sender_swift"; export * from "../entity/trx_sender_swift";
export * from "../entity/trx_recepient_swift"; export * from "../entity/trx_recepient_swift";
export * from "../entity/trx_config_language";
export * from "../types/trx"; export * from "../types/trx";