use pgcrypto

This commit is contained in:
Ammar Qaffaf
2024-02-26 14:13:58 +03:00
parent 0764793874
commit 1bfcbf0904
7 changed files with 23 additions and 12 deletions

View File

@ -6,6 +6,8 @@ import { OtpType } from '@app/common/constants/otp-type.enum';
@Entity({ name: 'user-otp' })
export class UserOtpEntity extends AbstractEntity<UserOtpDto> {
@Column({
type: 'uuid',
default: () => 'gen_random_uuid()',
nullable: false,
})
public uuid: string;