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 { Status } from "../types/status";
|
||||||
import { TrxCustomer } from "./trx_customers";
|
import { TrxCustomer } from "./trx_customers";
|
||||||
import { TrxOccupation } from "./trx_occupations";
|
import { TrxOccupation } from "./trx_occupations";
|
||||||
|
import { TrxCountry } from "./trx_countries";
|
||||||
|
import { TrxIdentityType } from "../types/trx";
|
||||||
|
|
||||||
@Entity("trx_customer_users", { schema: "trx" })
|
@Entity("trx_customer_users", { schema: "trx" })
|
||||||
export class TrxCustomerUser {
|
export class TrxCustomerUser {
|
||||||
@ -79,12 +81,22 @@ export class TrxCustomerUser {
|
|||||||
@JoinTable()
|
@JoinTable()
|
||||||
occupation: TrxOccupation;
|
occupation: TrxOccupation;
|
||||||
|
|
||||||
|
@ManyToOne(() => TrxCountry, { onDelete: "NO ACTION" })
|
||||||
|
@JoinTable()
|
||||||
|
country: TrxCountry;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
length: 256,
|
length: 256,
|
||||||
})
|
})
|
||||||
identity_number: string;
|
identity_number: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
length: 256,
|
||||||
|
})
|
||||||
|
identity_type: TrxIdentityType;
|
||||||
|
|
||||||
@Column()
|
@Column()
|
||||||
@CreateDateColumn()
|
@CreateDateColumn()
|
||||||
created_at: Date;
|
created_at: Date;
|
||||||
|
|||||||
@ -63,6 +63,12 @@ export enum TrxTransactionStatus {
|
|||||||
"cancel" = "cancel",
|
"cancel" = "cancel",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export enum TrxIdentityType {
|
||||||
|
"passport" = "passport",
|
||||||
|
"electoral" = "electoral",
|
||||||
|
"bi" = "bi",
|
||||||
|
}
|
||||||
|
|
||||||
export enum TrxTransactionRemark {
|
export enum TrxTransactionRemark {
|
||||||
"draft" = "Draft",
|
"draft" = "Draft",
|
||||||
"create" = "Create",
|
"create" = "Create",
|
||||||
|
|||||||
Reference in New Issue
Block a user