diff --git a/app/main.wasp b/app/main.wasp index 795fc66..7ce6035 100644 --- a/app/main.wasp +++ b/app/main.wasp @@ -136,6 +136,7 @@ entity Chat {=psl user User? @relation(fields: [userId], references: [id]) userId Int? name String? @default("New chat") + isChatNameUpdated Boolean @default(false) conversations Conversation[] psl=} diff --git a/app/migrations/20240404022012_add_column_to_store_chat_name_update_status/migration.sql b/app/migrations/20240404022012_add_column_to_store_chat_name_update_status/migration.sql new file mode 100644 index 0000000..b8c71b9 --- /dev/null +++ b/app/migrations/20240404022012_add_column_to_store_chat_name_update_status/migration.sql @@ -0,0 +1,2 @@ +-- AlterTable +ALTER TABLE "Chat" ADD COLUMN "isChatNameUpdated" BOOLEAN NOT NULL DEFAULT false; diff --git a/app/src/client/admin/components/Sidebar.tsx b/app/src/client/admin/components/Sidebar.tsx index 5991cbb..88e9102 100644 --- a/app/src/client/admin/components/Sidebar.tsx +++ b/app/src/client/admin/components/Sidebar.tsx @@ -58,7 +58,7 @@ const Sidebar = ({ sidebarOpen, setSidebarOpen }: SidebarProps) => { return (