feat(api): Drizzle + libsql DB layer with better-auth schema and migrations

This commit is contained in:
Bas van Rossem
2026-06-17 13:40:31 +02:00
parent 62c8597068
commit e8aa2c67e8
10 changed files with 528 additions and 2 deletions

10
apps/api/test/db.test.ts Normal file
View File

@@ -0,0 +1,10 @@
import { describe, it, expect } from 'vitest';
import { db } from '../src/db/client';
import { user } from '../src/db/schema';
describe('database', () => {
it('can query the migrated user table (empty)', async () => {
const rows = await db.select().from(user);
expect(rows).toEqual([]);
});
});