forked from cartsnitch/api
9fbab62717
Three fixes from PR #35 review: 1. Fix F402: rename loop var 'table' → 'metadata_table' in test_encrypted_json.py 2. Strip func.now() server_defaults in conftest.py engine/db_engine fixtures 3. Add aiosqlite UUID adapter for async engine Model changes to provide Python-side defaults for SQLite compatibility: - TimestampMixin: add default=_utcnow for created_at/updated_at - UUIDPrimaryKeyMixin: use GuidType for cross-DB UUID handling - User.id: use GuidType() instead of Text, Mapped[uuid.UUID] - User.email_verified: add default=False - Purchase.ingested_at: add default=_utcnow - types.py: add GuidType TypeDecorator for UUID→String conversion Fixes: CAR-1012