v2.0
This commit is contained in:
11
app/db/base.py
Normal file
11
app/db/base.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from datetime import datetime, timezone
|
||||
|
||||
from sqlalchemy.orm import DeclarativeBase
|
||||
|
||||
|
||||
def utcnow() -> datetime:
|
||||
return datetime.now(timezone.utc).replace(tzinfo=None)
|
||||
|
||||
|
||||
class Base(DeclarativeBase):
|
||||
"""Base class for ORM models."""
|
||||
Reference in New Issue
Block a user