diff options
Diffstat (limited to 'app/models/integrations.py')
| -rw-r--r-- | app/models/integrations.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/app/models/integrations.py b/app/models/integrations.py new file mode 100644 index 0000000..4a1ddb9 --- /dev/null +++ b/app/models/integrations.py @@ -0,0 +1,19 @@ +from sqlalchemy import ForeignKey, Integer, String +from sqlalchemy.orm import DeclarativeBase, Mapped, mapped_column + +Base = DeclarativeBase() + + +class UserIntegration(Base): + __tablename__ = "user_integrations" + + id: Mapped[int] = mapped_column(Integer, primary_key=True) + user_id: Mapped[int] = mapped_column(ForeignKey("users.id"), nullable=False) + + facebook: Mapped[str | None] = mapped_column(String(255), nullable=True) + pinterest: Mapped[str | None] = mapped_column(String(255), nullable=True) + discord: Mapped[str | None] = mapped_column(String(255), nullable=True) + artstation: Mapped[str | None] = mapped_column(String(255), nullable=True) + x: Mapped[str | None] = mapped_column(String(255), nullable=True) # Twitter/X + behance: Mapped[str | None] = mapped_column(String(255), nullable=True) + instagram: Mapped[str | None] = mapped_column(String(255), nullable=True) |
