update
This commit is contained in:
@ -1,7 +1,7 @@
|
|||||||
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn } from "typeorm";
|
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn } from "typeorm";
|
||||||
|
|
||||||
@Entity("trx_otps", { schema: "trx" })
|
@Entity("trx_otp_emails", { schema: "trx" })
|
||||||
export class TrxOtp {
|
export class TrxOtpEmail {
|
||||||
@PrimaryGeneratedColumn("uuid")
|
@PrimaryGeneratedColumn("uuid")
|
||||||
id: string;
|
id: string;
|
||||||
|
|
||||||
@ -23,6 +23,12 @@ export class TrxOtp {
|
|||||||
})
|
})
|
||||||
expired: Date;
|
expired: Date;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
default: false,
|
||||||
|
length: 64,
|
||||||
|
})
|
||||||
|
status: boolean;
|
||||||
|
|
||||||
@Column()
|
@Column()
|
||||||
@CreateDateColumn()
|
@CreateDateColumn()
|
||||||
created_at: Date;
|
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_users";
|
||||||
export * from "../entity/trx_company_user_refresh_token";
|
export * from "../entity/trx_company_user_refresh_token";
|
||||||
export * from "../entity/trx_company_accounts";
|
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_cifs";
|
||||||
export * from "../entity/trx_languages";
|
export * from "../entity/trx_languages";
|
||||||
export * from "../entity/trx_config_booms";
|
export * from "../entity/trx_config_booms";
|
||||||
|
|||||||
Reference in New Issue
Block a user