Changeset c9c6a2d in Klonkt for src/config
- Timestamp:
- 06/21/2026 06:38:24 PM (3 months ago)
- Branches:
- main
- Children:
- 9a34d31
- Parents:
- d41f4be
- File:
-
- 1 edited
-
src/config/database.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/config/database.js
rd41f4be rc9c6a2d 252 252 `); 253 253 254 // Meldingen: iemand reageert op je reactie / post, of liket je post. Snapshots 255 // van naam/titel zodat de lijst goedkoop te tonen is zonder joins. 256 db.exec(` 257 CREATE TABLE IF NOT EXISTS notifications ( 258 id TEXT PRIMARY KEY, 259 user_id TEXT NOT NULL, 260 type TEXT NOT NULL, 261 actor_id TEXT, 262 actor_name TEXT, 263 post_slug TEXT, 264 post_title TEXT, 265 url TEXT, 266 read INTEGER DEFAULT 0, 267 created_at DATETIME DEFAULT CURRENT_TIMESTAMP 268 ); 269 CREATE INDEX IF NOT EXISTS idx_notif_user ON notifications(user_id, read, created_at); 270 `); 271 254 272 // Link-in-bio klikstatistiek (premium #6). Per (site, url) een teller; de 255 273 // link-in-bio-pagina linkt via /links/go/:i dat de klik telt en doorstuurt.
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)