update customer user
This commit is contained in:
@ -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;
|
||||
|
||||
@ -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",
|
||||
|
||||
Reference in New Issue
Block a user