feat(server): schéma PostgreSQL sync-ready (ticket #49)

Ajoute la migration initiale (migrations/0001_initial_schema.sql,
incluant la table users nécessaire à l'adapter d'auth du ticket #48),
le runner de migration (bin/migrate.dart) et l'accès Postgres
(infrastructure/postgres/postgres_database.dart). dart pub get OK,
dart analyze clean, dart test vert (le test PostgreSQL réel est skip
faute de TEST_DATABASE_URL/Docker disponible dans ce sandbox ; SQL de
migration revu manuellement).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-07-19 10:05:24 +02:00
parent e06de40428
commit 79d994bdd7
8 changed files with 415 additions and 3 deletions

View File

@ -6,6 +6,7 @@ environment:
sdk: ^3.10.0
dependencies:
postgres: ^3.5.12
shelf: ^1.4.2
shelf_router: ^1.1.4