diff --git a/src/entity/trx_config_rate.ts b/src/entity/trx_config_rate.ts new file mode 100644 index 0000000..83d4902 --- /dev/null +++ b/src/entity/trx_config_rate.ts @@ -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; +} diff --git a/src/schema/trx.ts b/src/schema/trx.ts index 84b49ed..c803cb5 100644 --- a/src/schema/trx.ts +++ b/src/schema/trx.ts @@ -20,6 +20,8 @@ export * from "../entity/trx_config_levels"; export * from "../entity/trx_config_occupations"; export * from "../entity/trx_config_products"; 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_religions"; 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_sender_swift"; export * from "../entity/trx_recepient_swift"; -export * from "../entity/trx_config_language"; export * from "../types/trx";