mirror of
https://github.com/kennethnym/aris.git
synced 2026-03-19 16:41:18 +00:00
* feat(backend): add DB persistence layer Replace raw pg Pool with Drizzle ORM backed by Bun.sql. Add per-user source configuration table (user_sources). Migrate Better Auth to drizzle-adapter. Add AES-256-GCM credential encryption. Co-authored-by: Ona <no-reply@ona.com> * fix(backend): set updatedAt explicitly in all mutations onConflictDoUpdate bypasses Drizzle's $onUpdate hook. Set updatedAt explicitly in all mutation methods. Co-authored-by: Ona <no-reply@ona.com> * fix(backend): add composite index on user_sources Add (user_id, enabled) index for the enabled() query path. Co-authored-by: Ona <no-reply@ona.com> --------- Co-authored-by: Ona <no-reply@ona.com>
32 lines
905 B
JSON
32 lines
905 B
JSON
{
|
|
"name": "@aelis/backend",
|
|
"version": "0.0.0",
|
|
"type": "module",
|
|
"main": "src/server.ts",
|
|
"scripts": {
|
|
"dev": "bun run --watch src/server.ts",
|
|
"start": "bun run src/server.ts",
|
|
"test": "bun test src/",
|
|
"db:generate": "bunx drizzle-kit generate",
|
|
"db:generate-auth": "bunx --bun auth@latest generate --config auth.ts --output src/db/auth-schema.ts -y",
|
|
"db:migrate": "bunx drizzle-kit migrate",
|
|
"db:studio": "bunx drizzle-kit studio"
|
|
},
|
|
"dependencies": {
|
|
"@aelis/core": "workspace:*",
|
|
"@aelis/source-caldav": "workspace:*",
|
|
"@aelis/source-google-calendar": "workspace:*",
|
|
"@aelis/source-location": "workspace:*",
|
|
"@aelis/source-tfl": "workspace:*",
|
|
"@aelis/source-weatherkit": "workspace:*",
|
|
"@openrouter/sdk": "^0.9.11",
|
|
"arktype": "^2.1.29",
|
|
"better-auth": "^1",
|
|
"drizzle-orm": "^0.45.1",
|
|
"hono": "^4"
|
|
},
|
|
"devDependencies": {
|
|
"drizzle-kit": "^0.31.9"
|
|
}
|
|
}
|