feat: images upload
This commit is contained in:
+24
-10
@@ -17,6 +17,15 @@ enum Sex {
|
||||
FEMALE
|
||||
}
|
||||
|
||||
enum EyeColor {
|
||||
Blue
|
||||
Green
|
||||
Brown
|
||||
Hazel
|
||||
Gray
|
||||
Amber
|
||||
}
|
||||
|
||||
model User {
|
||||
id String @id @default(uuid())
|
||||
kotosoftId String @unique
|
||||
@@ -117,15 +126,15 @@ model CitizenshipApplication {
|
||||
applicationType ApplicationType
|
||||
previousCountry String?
|
||||
previousRegion String?
|
||||
birthRegion String?
|
||||
naturalizationReason String?
|
||||
address String
|
||||
regionId String?
|
||||
region Region? @relation(fields: [regionId], references: [id])
|
||||
city String?
|
||||
street String?
|
||||
customAddress String?
|
||||
height String
|
||||
eyeColor String
|
||||
height Int
|
||||
eyeColor EyeColor
|
||||
status CitizenshipApplicationStatus @default(PENDING)
|
||||
rejectionReason String?
|
||||
reviewedAt DateTime?
|
||||
@@ -133,6 +142,8 @@ model CitizenshipApplication {
|
||||
reviewer User? @relation("CitizenshipReviewer", fields: [reviewedBy], references: [id])
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
profileKey String
|
||||
signatureKey String
|
||||
citizenship Citizenship?
|
||||
}
|
||||
|
||||
@@ -144,30 +155,33 @@ model Citizenship {
|
||||
application CitizenshipApplication @relation(fields: [applicationId], references: [id])
|
||||
issuedAt DateTime @default(now())
|
||||
revokedAt DateTime?
|
||||
document IdentityDocument?
|
||||
documents IdentityDocument[]
|
||||
}
|
||||
|
||||
model IdentityDocument {
|
||||
id String @id @default(uuid())
|
||||
citizenshipId String @unique
|
||||
citizenshipId String
|
||||
citizenship Citizenship @relation(fields: [citizenshipId], references: [id], onDelete: Cascade)
|
||||
|
||||
documentNumber String @unique
|
||||
address String
|
||||
|
||||
regionId String?
|
||||
region Region? @relation(fields: [regionId], references: [id])
|
||||
city String?
|
||||
street String?
|
||||
|
||||
customAddress String?
|
||||
|
||||
issuedAt DateTime @default(now())
|
||||
expiresAt DateTime
|
||||
|
||||
@@index([citizenshipId, issuedAt])
|
||||
}
|
||||
|
||||
model Region {
|
||||
id String @id
|
||||
name String
|
||||
capital String
|
||||
documents IdentityDocument[]
|
||||
id String @id
|
||||
name String
|
||||
capital String
|
||||
documents IdentityDocument[]
|
||||
applications CitizenshipApplication[]
|
||||
}
|
||||
Reference in New Issue
Block a user