update
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn } from "typeorm";
|
||||
|
||||
@Entity("trx_otps", { schema: "trx" })
|
||||
export class TrxOtp {
|
||||
@Entity("trx_otp_emails", { schema: "trx" })
|
||||
export class TrxOtpEmail {
|
||||
@PrimaryGeneratedColumn("uuid")
|
||||
id: string;
|
||||
|
||||
@ -23,6 +23,12 @@ export class TrxOtp {
|
||||
})
|
||||
expired: Date;
|
||||
|
||||
@Column({
|
||||
default: false,
|
||||
length: 64,
|
||||
})
|
||||
status: boolean;
|
||||
|
||||
@Column()
|
||||
@CreateDateColumn()
|
||||
created_at: Date;
|
||||
43
src/entity/trx_otp_number.ts
Normal file
43
src/entity/trx_otp_number.ts
Normal file
@ -0,0 +1,43 @@
|
||||
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn } from "typeorm";
|
||||
|
||||
@Entity("trx_otp_numbers", { schema: "trx" })
|
||||
export class TrxOtpNumber {
|
||||
@PrimaryGeneratedColumn("uuid")
|
||||
id: string;
|
||||
|
||||
@Column({
|
||||
nullable: false,
|
||||
length: 64,
|
||||
})
|
||||
otp: string;
|
||||
|
||||
@Column({
|
||||
nullable: false,
|
||||
unique: true,
|
||||
length: 64,
|
||||
})
|
||||
number: string;
|
||||
|
||||
@Column({
|
||||
nullable: false,
|
||||
})
|
||||
expired: Date;
|
||||
|
||||
@Column({
|
||||
default: false,
|
||||
length: 64,
|
||||
})
|
||||
status: boolean;
|
||||
|
||||
@Column()
|
||||
@CreateDateColumn()
|
||||
created_at: Date;
|
||||
|
||||
@Column({ nullable: true })
|
||||
@UpdateDateColumn()
|
||||
updated_at: Date;
|
||||
|
||||
@Column({ nullable: true })
|
||||
@DeleteDateColumn()
|
||||
deleted_at: Date;
|
||||
}
|
||||
@ -2,7 +2,8 @@ export * from "../entity/trx_companies";
|
||||
export * from "../entity/trx_company_users";
|
||||
export * from "../entity/trx_company_user_refresh_token";
|
||||
export * from "../entity/trx_company_accounts";
|
||||
export * from "../entity/trx_otp";
|
||||
export * from "../entity/trx_otp_email";
|
||||
export * from "../entity/trx_otp_number";
|
||||
export * from "../entity/trx_cifs";
|
||||
export * from "../entity/trx_languages";
|
||||
export * from "../entity/trx_config_booms";
|
||||
|
||||
Reference in New Issue
Block a user