feat(contact): implement contact form submission, admin management and dynamic contact info
This commit is contained in:
1 parent
49049a7f78
commit
2aea3bded4
11 files changed
+961
-77
No files matched your search
@@ -391,3 +391,30 @@ model Video {
|
||||
|
||||
@@map("videos")
|
||||
}
|
||||
|
||||
model ContactSubmission {
|
||||
id String @id @default(uuid()) @db.Uuid
|
||||
name String @db.VarChar(100)
|
||||
phone String @db.VarChar(20)
|
||||
email String? @db.VarChar(150)
|
||||
subject String? @db.VarChar(200)
|
||||
message String @db.Text
|
||||
status String @default("PENDING") @db.VarChar(20) // PENDING, IN_PROGRESS, RESOLVED
|
||||
adminNotes String? @map("admin_notes") @db.Text
|
||||
createdAt DateTime @default(now()) @map("created_at") @db.Timestamptz()
|
||||
|
||||
@@map("contact_submissions")
|
||||
}
|
||||
|
||||
model ContactInfo {
|
||||
id String @id @default(uuid()) @db.Uuid
|
||||
key String @unique @db.VarChar(100)
|
||||
title String @db.VarChar(200)
|
||||
value String @db.Text
|
||||
icon String? @db.VarChar(100)
|
||||
order Int @default(0)
|
||||
updatedAt DateTime @default(now()) @updatedAt @map("updated_at") @db.Timestamptz()
|
||||
|
||||
@@map("contact_info")
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user