feat: datenmodell für benutzer, sessions und login-versuche
- Tabellen users, sessions, login_attempts (Migration 0002) - UTCDateTime speichert UTC in SQLite und liefert aware datetimes - Tests legen das Schema über die echten Migrationen an - Test prüft, dass Migrationen und Modelle übereinstimmen Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d9b7baf788
commit
d4cf8bdddd
12 files changed
+283
-11
No files matched your search
@@ -0,0 +1,12 @@
|
||||
from alembic.autogenerate import compare_metadata
|
||||
from alembic.migration import MigrationContext
|
||||
|
||||
from app.db import get_engine
|
||||
from app.models import Base
|
||||
|
||||
|
||||
def test_migrations_match_models(app_env):
|
||||
with get_engine().connect() as conn:
|
||||
diff = compare_metadata(MigrationContext.configure(conn), Base.metadata)
|
||||
|
||||
assert diff == []
|
||||
Reference in new issue
Block a user