Refactor navigation structure by removing unused items and cleaning up the notification section. Update Prisma schema to remove default values for JSON fields in notification analytics, delivery config, and templates for improved data handling.
This commit is contained in:
parent
86d2edcfb5
commit
53aa85985f
@ -17,13 +17,6 @@ export default [
|
||||
header: "Notification",
|
||||
description: "",
|
||||
child: [
|
||||
{
|
||||
title: "Dashboard",
|
||||
path: "/notification/dashboard",
|
||||
icon: "ic:outline-dashboard",
|
||||
child: [],
|
||||
meta: {},
|
||||
},
|
||||
{
|
||||
title: "List",
|
||||
path: "/notification/list",
|
||||
@ -77,74 +70,4 @@ export default [
|
||||
],
|
||||
meta: {},
|
||||
},
|
||||
{
|
||||
header: "Pentadbiran",
|
||||
description: "Urus aplikasi anda",
|
||||
child: [
|
||||
{
|
||||
title: "Konfigurasi",
|
||||
icon: "ic:outline-settings",
|
||||
child: [
|
||||
{
|
||||
title: "Persekitaran",
|
||||
path: "/devtool/config/environment",
|
||||
},
|
||||
{
|
||||
title: "Site Settings",
|
||||
path: "/devtool/config/site-settings",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "Penyunting Menu",
|
||||
icon: "ci:menu-alt-03",
|
||||
path: "/devtool/menu-editor",
|
||||
child: [],
|
||||
},
|
||||
{
|
||||
title: "Urus Pengguna",
|
||||
path: "/devtool/user-management",
|
||||
icon: "ph:user-circle-gear",
|
||||
child: [
|
||||
{
|
||||
title: "Senarai Pengguna",
|
||||
path: "/devtool/user-management/user",
|
||||
icon: "",
|
||||
child: [],
|
||||
},
|
||||
{
|
||||
title: "Senarai Peranan",
|
||||
path: "/devtool/user-management/role",
|
||||
icon: "",
|
||||
child: [],
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "Kandungan",
|
||||
icon: "mdi:pencil-ruler",
|
||||
child: [
|
||||
{
|
||||
title: "Penyunting",
|
||||
path: "/devtool/content-editor",
|
||||
},
|
||||
{
|
||||
title: "Templat",
|
||||
path: "/devtool/content-editor/template",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "Penyunting API",
|
||||
path: "/devtool/api-editor",
|
||||
icon: "material-symbols:api-rounded",
|
||||
child: [],
|
||||
},
|
||||
],
|
||||
meta: {
|
||||
auth: {
|
||||
role: ["Developer"],
|
||||
},
|
||||
},
|
||||
},
|
||||
];
|
||||
|
@ -108,7 +108,7 @@ model notification_analytics {
|
||||
metric_type String @db.VarChar(30)
|
||||
metric_value Int? @default(0)
|
||||
recorded_at DateTime? @default(now()) @db.Timestamp(0)
|
||||
metadata Json? @default(dbgenerated("(_utf8mb4\\'{}\\')"))
|
||||
metadata Json?
|
||||
notifications notifications @relation(fields: [notification_id], references: [id], onDelete: Cascade, onUpdate: NoAction, map: "notification_analytics_ibfk_1")
|
||||
|
||||
@@index([notification_id], map: "idx_notification_analytics_notification_id")
|
||||
@ -155,7 +155,7 @@ model notification_delivery_config {
|
||||
channel_type String @unique
|
||||
is_enabled Boolean @default(false)
|
||||
provider String
|
||||
provider_config Json @default(dbgenerated("(_utf8mb4\\'{}\\')"))
|
||||
provider_config Json
|
||||
status String @default("Not Configured")
|
||||
success_rate Float @default(0) @db.Float
|
||||
created_at DateTime @default(now())
|
||||
@ -233,7 +233,7 @@ model notification_templates {
|
||||
email_content String? @db.Text
|
||||
push_title String? @db.VarChar(100)
|
||||
push_body String? @db.VarChar(300)
|
||||
variables Json? @default(dbgenerated("(_utf8mb4\\'[]\\')"))
|
||||
variables Json?
|
||||
is_active Boolean? @default(true)
|
||||
created_at DateTime? @default(now()) @db.Timestamp(0)
|
||||
updated_at DateTime? @default(now()) @db.Timestamp(0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user