update
This commit is contained in:
@ -1,12 +1,17 @@
|
||||
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 { TrxCustomerUser } from "./trx_customer_users";
|
||||
|
||||
@Entity("trx_verifications", { schema: "trx" })
|
||||
export class TrxVerification {
|
||||
@PrimaryGeneratedColumn("uuid")
|
||||
id: string;
|
||||
|
||||
@ManyToOne(() => TrxCustomerUser, { onDelete: "NO ACTION", nullable: true })
|
||||
@JoinColumn()
|
||||
customer_user: TrxCustomerUser;
|
||||
|
||||
@Column({
|
||||
nullable: false,
|
||||
length: 64,
|
||||
|
||||
Reference in New Issue
Block a user