🔧 chore(account): update account module structure and email queue processing
- Enhanced account management with new validation and Swagger documentation. - Updated Prisma schemas and migrations for the account and profile. - Improved email handling mechanisms in the email queue system with new worker functionality. - Adjusted Docker configurations and package dependencies for better integration.
This commit is contained in:
+6
-2
@@ -21,8 +21,12 @@ CREATE TABLE "Account" (
|
||||
CREATE TABLE "Profile" (
|
||||
"id" TEXT NOT NULL,
|
||||
"accountId" TEXT NOT NULL,
|
||||
"fullName" TEXT NOT NULL,
|
||||
"profilePhoto" TEXT,
|
||||
"shopName" TEXT NOT NULL,
|
||||
"shopLogo" TEXT,
|
||||
"contactNumber" TEXT,
|
||||
"shopAddress" TEXT,
|
||||
"shopMapLocation" TEXT,
|
||||
"shopCategory" TEXT,
|
||||
|
||||
CONSTRAINT "Profile_pkey" PRIMARY KEY ("id")
|
||||
);
|
||||
@@ -4,16 +4,16 @@ enum ROLE {
|
||||
}
|
||||
|
||||
model Account {
|
||||
id String @id @default(uuid())
|
||||
email String @unique
|
||||
password String
|
||||
role ROLE @default(USER)
|
||||
lastOtp String?
|
||||
id String @id @default(uuid())
|
||||
email String @unique
|
||||
password String
|
||||
role ROLE @default(USER)
|
||||
lastOtp String?
|
||||
lastOtpSendingTime DateTime?
|
||||
isDeleted Boolean @default(false)
|
||||
isAccountVerified Boolean @default(false)
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @default(now())
|
||||
isDeleted Boolean @default(false)
|
||||
isAccountVerified Boolean @default(false)
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @default(now())
|
||||
|
||||
profile Profile?
|
||||
}
|
||||
|
||||
@@ -3,6 +3,10 @@ model Profile {
|
||||
accountId String @unique
|
||||
account Account @relation(fields: [accountId], references: [id], onDelete: Cascade)
|
||||
|
||||
fullName String
|
||||
profilePhoto String?
|
||||
shopName String
|
||||
shopLogo String?
|
||||
contactNumber String?
|
||||
shopAddress String?
|
||||
shopMapLocation String?
|
||||
shopCategory String?
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user