Setup project, started outlining endpoints and tests.
This commit is contained in:
commit
33cd28376d
41 files changed
+5177
No files matched your search
@@ -0,0 +1,21 @@
|
||||
"""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)
|
||||
Reference in new issue
Block a user