update customer user

This commit is contained in:
2025-10-30 13:10:54 +07:00
parent dd7ef4c70c
commit 9e27a32665
2 changed files with 18 additions and 0 deletions

View File

@ -4,6 +4,8 @@ import { Column, CreateDateColumn, DeleteDateColumn, Entity, Index, JoinTable, M
import { Status } from "../types/status";
import { TrxCustomer } from "./trx_customers";
import { TrxOccupation } from "./trx_occupations";
import { TrxCountry } from "./trx_countries";
import { TrxIdentityType } from "../types/trx";
@Entity("trx_customer_users", { schema: "trx" })
export class TrxCustomerUser {
@ -79,12 +81,22 @@ export class TrxCustomerUser {
@JoinTable()
occupation: TrxOccupation;
@ManyToOne(() => TrxCountry, { onDelete: "NO ACTION" })
@JoinTable()
country: TrxCountry;
@Column({
nullable: true,
length: 256,
})
identity_number: string;
@Column({
nullable: true,
length: 256,
})
identity_type: TrxIdentityType;
@Column()
@CreateDateColumn()
created_at: Date;

View File

@ -63,6 +63,12 @@ export enum TrxTransactionStatus {
"cancel" = "cancel",
}
export enum TrxIdentityType {
"passport" = "passport",
"electoral" = "electoral",
"bi" = "bi",
}
export enum TrxTransactionRemark {
"draft" = "Draft",
"create" = "Create",