21 lines
374 B
Python
21 lines
374 B
Python
"""Database user model."""
|
|
|
|
import uuid
|
|
|
|
from sqlalchemy import Column, String
|
|
from sqlalchemy.orm import DeclarativeBase
|
|
|
|
|
|
class Base(DeclarativeBase):
|
|
"""Base Class for all db models."""
|
|
|
|
pass
|
|
|
|
|
|
class DBUser(Base):
|
|
"""Database User Model."""
|
|
|
|
id = Column(
|
|
String(36), primary_key=True, default=lambda: str(uuid.uuid4()), index=True
|
|
)
|
|
email = Column(String) |