🔧 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:
2026-04-03 00:54:46 +06:00
parent 81f9801487
commit 3f0ead4265
18 changed files with 285 additions and 98 deletions
@@ -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")
);
+9 -9
View File
@@ -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?
}
+6 -2
View File
@@ -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?
}