feat: add otp and hashing modules
This commit is contained in:
@@ -2,6 +2,7 @@ import {
|
||||
Column,
|
||||
CreateDateColumn,
|
||||
Entity,
|
||||
Index,
|
||||
PrimaryGeneratedColumn,
|
||||
UpdateDateColumn,
|
||||
} from 'typeorm';
|
||||
@@ -25,6 +26,7 @@ export class User {
|
||||
})
|
||||
lastName?: string;
|
||||
|
||||
@Index({ unique: true })
|
||||
@Column({
|
||||
type: 'varchar',
|
||||
length: 11,
|
||||
@@ -37,6 +39,7 @@ export class User {
|
||||
type: 'varchar',
|
||||
length: 96,
|
||||
nullable: true,
|
||||
select: false,
|
||||
})
|
||||
password?: string;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user