12 lines
239 B
Python
12 lines
239 B
Python
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."""
|