update
This commit is contained in:
@ -1,12 +1,17 @@
|
|||||||
import bcrypt from "bcryptjs";
|
import bcrypt from "bcryptjs";
|
||||||
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn } from "typeorm";
|
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn, ManyToOne, JoinColumn } from "typeorm";
|
||||||
import { TrxVerificationPurposeType, TrxVerificationStatus, TrxVerificationType } from "../types/trx";
|
import { TrxVerificationPurposeType, TrxVerificationStatus, TrxVerificationType } from "../types/trx";
|
||||||
|
import { TrxCustomerUser } from "./trx_customer_users";
|
||||||
|
|
||||||
@Entity("trx_verifications", { schema: "trx" })
|
@Entity("trx_verifications", { schema: "trx" })
|
||||||
export class TrxVerification {
|
export class TrxVerification {
|
||||||
@PrimaryGeneratedColumn("uuid")
|
@PrimaryGeneratedColumn("uuid")
|
||||||
id: string;
|
id: string;
|
||||||
|
|
||||||
|
@ManyToOne(() => TrxCustomerUser, { onDelete: "NO ACTION", nullable: true })
|
||||||
|
@JoinColumn()
|
||||||
|
customer_user: TrxCustomerUser;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: false,
|
nullable: false,
|
||||||
length: 64,
|
length: 64,
|
||||||
|
|||||||
Reference in New Issue
Block a user