feat(support): complete full CRUD for support module
This commit is contained in:
@@ -18,5 +18,7 @@ model Account {
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @default(now())
|
||||
|
||||
supports Support[]
|
||||
|
||||
profile Profile?
|
||||
}
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
enum T_SupportType {
|
||||
TECHNICAL
|
||||
BILLING
|
||||
DOMAIN
|
||||
TEMPLATE
|
||||
PAYMENT
|
||||
ACCOUNT
|
||||
FEATURE_REQUEST
|
||||
BUG
|
||||
OTHER
|
||||
}
|
||||
|
||||
enum T_SupportStatus {
|
||||
OPEN
|
||||
IN_PROGRESS
|
||||
RESOLVED
|
||||
REJECTED
|
||||
}
|
||||
|
||||
|
||||
|
||||
model Support {
|
||||
id String @id @default(uuid())
|
||||
|
||||
issueName String
|
||||
description String
|
||||
|
||||
type T_SupportType
|
||||
status T_SupportStatus @default(OPEN)
|
||||
|
||||
resolvedBy String?
|
||||
resolvedAt DateTime?
|
||||
|
||||
storeAccountId String
|
||||
|
||||
storeAccount Account @relation(fields: [storeAccountId], references: [id])
|
||||
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
|
||||
@@index([storeAccountId])
|
||||
@@index([storeAccountId, status])
|
||||
}
|
||||
Reference in New Issue
Block a user