Untitled

mail@pastecode.io avatar
unknown
plain_text
6 months ago
1.2 kB
2
Indexable
Never
// KycMyinfoResponseDbModel.ts
import {
  Column,
  Entity,
  Index,
  JoinColumn,
  ManyToOne,
  PrimaryGeneratedColumn,
} from "typeorm";

import { UserDbModel } from "./UserDbModel";

@Entity({ name: "kyc_myinfo_responses" })
@Index("id")
export class KycMyinfoResponseDbModel {
  @PrimaryGeneratedColumn({ name: "id" })
  id: string;

  @ManyToOne(() => UserDbModel)
  @JoinColumn({ name: "user_id" })
  user: UserDbModel;

  @Column({
    name: "user_id",
    type: "varchar",
    length: 45,
  })
  userId: string;

  @Column({ name: "uinfin", type: "jsonb" })
  uinfin: object;

  @Column({ name: "name", type: "jsonb", nullable: true })
  name?: object;

  @Column({ name: "sex", type: "jsonb", nullable: true })
  sex?: object;

  @Column({ name: "dob", type: "jsonb", nullable: true })
  dob?: object;

  @Column({ name: "nationality", type: "jsonb", nullable: true })
  nationality?: object;

  @Column({ name: "email", type: "jsonb", nullable: true })
  email?: object;

  @Column({ name: "regadd", type: "jsonb", nullable: true })
  regadd?: object;

  @Column({
    name: "created_at",
    type: "timestamptz",
  })
  createdAt: Date;
}