chore: update postgresql.conf and contracts comments for Zero

- Replace Electric SQL references in postgresql.conf with Zero-cache
- Clean Electric SQL comments in chat-comments.types.ts and chat-messages.types.ts
This commit is contained in:
CREDO23 2026-03-23 18:30:49 +02:00
parent f9ba7e52d9
commit f29a3edcab
3 changed files with 4 additions and 4 deletions

View file

@ -1,11 +1,11 @@
# PostgreSQL configuration for Electric SQL
# PostgreSQL configuration for SurfSense
# This file is mounted into the PostgreSQL container
listen_addresses = '*'
max_connections = 200
shared_buffers = 256MB
# Enable logical replication (required for Electric SQL)
# Enable logical replication (required for Zero-cache real-time sync)
wal_level = logical
max_replication_slots = 10
max_wal_senders = 10

View file

@ -6,7 +6,7 @@ import { z } from "zod";
export const rawComment = z.object({
id: z.number(),
message_id: z.number(),
thread_id: z.number(), // Denormalized for efficient Electric subscriptions
thread_id: z.number(), // Denormalized for efficient per-thread sync
parent_id: z.number().nullable(),
author_id: z.string().nullable(),
content: z.string(),

View file

@ -1,7 +1,7 @@
import { z } from "zod";
/**
* Raw message from database (Electric SQL sync)
* Raw message from database (real-time sync)
*/
export const rawMessage = z.object({
id: z.number(),