Link KYC profiles to teams
Build and deploy Docker image / build (push) Successful in 55s

This commit is contained in:
Ruslan Bakiev
2026-08-24 21:10:09 +07:00
parent 8a376dfa53
commit 501b2aa134
6 changed files with 81 additions and 53 deletions
@@ -0,0 +1,11 @@
-- AlterTable
ALTER TABLE "kyc_requests" ADD COLUMN "team_uuid" VARCHAR(100);
-- AlterTable
ALTER TABLE "kyc_monitoring" ADD COLUMN "team_uuid" VARCHAR(100);
-- CreateIndex
CREATE INDEX "kyc_requests_team_uuid_idx" ON "kyc_requests"("team_uuid");
-- CreateIndex
CREATE INDEX "kyc_monitoring_team_uuid_idx" ON "kyc_monitoring"("team_uuid");
+4
View File
@@ -10,6 +10,7 @@ model KYCApplication {
id Int @id @default(autoincrement())
uuid String @unique @default(uuid())
userId String @map("user_id") @db.VarChar(255)
teamUuid String? @map("team_uuid") @db.VarChar(100)
teamName String @default("") @map("team_name") @db.VarChar(200)
countryCode String @default("") @map("country_code") @db.VarChar(2)
workflowStatus String @default("pending") @map("workflow_status") @db.VarChar(20)
@@ -25,6 +26,7 @@ model KYCApplication {
updatedAt DateTime @updatedAt @map("updated_at")
@@index([userId])
@@index([teamUuid])
@@map("kyc_requests")
}
@@ -32,6 +34,7 @@ model KYCProfile {
id Int @id @default(autoincrement())
uuid String @unique @default(uuid())
userId String @map("user_id") @db.VarChar(255)
teamUuid String? @map("team_uuid") @db.VarChar(100)
teamName String @default("") @map("team_name") @db.VarChar(200)
countryCode String @default("") @map("country_code") @db.VarChar(2)
workflowStatus String @default("pending") @map("workflow_status") @db.VarChar(20)
@@ -47,6 +50,7 @@ model KYCProfile {
updatedAt DateTime @updatedAt @map("updated_at")
@@index([userId])
@@index([teamUuid])
@@map("kyc_monitoring")
}