pulse/infrastructure/db/database.ts
Edo Limburg 40ccbbad1a Add storage, dedup modules and infrastructure configuration
- Add storage module with SQLite persistence via better-sqlite3
- Add deduplication module for feed item dedup
- Add infrastructure directory for deployment config
- Add .env.example for environment variables
- Update dependencies: kysely, better-sqlite3, pg
2026-05-05 21:59:50 +02:00

27 lines
541 B
TypeScript

/**
* Kysely database type definitions.
* Defines the table schemas for type-safe queries.
*/
export interface FeedItemTable {
id: string;
source: string;
title: string;
url: string;
published_at: string; // ISO 8601 format
content: string | null;
summary: string | null;
created_at: string; // ISO 8601 format
}
export interface SeenIdTable {
id: string;
seen_at: string; // ISO 8601 format
}
// Database interface used by Kysely
export interface Database {
feed_items: FeedItemTable;
seen_ids: SeenIdTable;
}