mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-25 00:36:31 +02:00
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:
parent
f9ba7e52d9
commit
f29a3edcab
3 changed files with 4 additions and 4 deletions
|
|
@ -1,11 +1,11 @@
|
||||||
# PostgreSQL configuration for Electric SQL
|
# PostgreSQL configuration for SurfSense
|
||||||
# This file is mounted into the PostgreSQL container
|
# This file is mounted into the PostgreSQL container
|
||||||
|
|
||||||
listen_addresses = '*'
|
listen_addresses = '*'
|
||||||
max_connections = 200
|
max_connections = 200
|
||||||
shared_buffers = 256MB
|
shared_buffers = 256MB
|
||||||
|
|
||||||
# Enable logical replication (required for Electric SQL)
|
# Enable logical replication (required for Zero-cache real-time sync)
|
||||||
wal_level = logical
|
wal_level = logical
|
||||||
max_replication_slots = 10
|
max_replication_slots = 10
|
||||||
max_wal_senders = 10
|
max_wal_senders = 10
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ import { z } from "zod";
|
||||||
export const rawComment = z.object({
|
export const rawComment = z.object({
|
||||||
id: z.number(),
|
id: z.number(),
|
||||||
message_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(),
|
parent_id: z.number().nullable(),
|
||||||
author_id: z.string().nullable(),
|
author_id: z.string().nullable(),
|
||||||
content: z.string(),
|
content: z.string(),
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Raw message from database (Electric SQL sync)
|
* Raw message from database (real-time sync)
|
||||||
*/
|
*/
|
||||||
export const rawMessage = z.object({
|
export const rawMessage = z.object({
|
||||||
id: z.number(),
|
id: z.number(),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue