From 811a911b8d1a4b0a213ead9b9535ed2e25bdfc31 Mon Sep 17 00:00:00 2001 From: fro1991 Date: Wed, 29 Oct 2025 22:16:26 +0700 Subject: [PATCH] update --- src/entity/trx_customer_users.ts | 13 +++++++++++++ src/entity/trx_customers.ts | 13 +++++++++++++ 2 files changed, 26 insertions(+) diff --git a/src/entity/trx_customer_users.ts b/src/entity/trx_customer_users.ts index 58587e7..29369e7 100644 --- a/src/entity/trx_customer_users.ts +++ b/src/entity/trx_customer_users.ts @@ -3,6 +3,7 @@ import { Column, CreateDateColumn, DeleteDateColumn, Entity, Index, JoinTable, M import { Status } from "../types/status"; import { TrxCustomer } from "./trx_customers"; +import { TrxOccupation } from "./trx_occupations"; @Entity("trx_customer_users", { schema: "trx" }) export class TrxCustomerUser { @@ -74,6 +75,18 @@ export class TrxCustomerUser { }) status: Status; + @Column({ + nullable: true, + length: 4096, + }) + occupation: TrxOccupation; + + @Column({ + nullable: true, + length: 256, + }) + identity: string; + @Column() @CreateDateColumn() created_at: Date; diff --git a/src/entity/trx_customers.ts b/src/entity/trx_customers.ts index 1837764..58b619a 100644 --- a/src/entity/trx_customers.ts +++ b/src/entity/trx_customers.ts @@ -1,6 +1,7 @@ import { Column, CreateDateColumn, DeleteDateColumn, Entity, PrimaryGeneratedColumn, UpdateDateColumn } from "typeorm"; import { Status } from "../types/status"; import { TrxCustomerType } from "../types/trx"; +import { TrxOccupation } from "./trx_occupations"; @Entity("trx_customers", { schema: "trx" }) export class TrxCustomer { @@ -77,6 +78,18 @@ export class TrxCustomer { }) status: Status; + @Column({ + nullable: true, + length: 4096, + }) + occupation: TrxOccupation; + + @Column({ + nullable: true, + length: 256, + }) + identity: string; + @Column() @CreateDateColumn() created_at: Date;