summaryrefslogtreecommitdiff
path: root/app/models/integrations.py
diff options
context:
space:
mode:
authorl3wdfut4pwr <l3wdfut4pwr@gmail.com>2026-03-17 14:11:45 +0200
committerl3wdfut4pwr <l3wdfut4pwr@gmail.com>2026-03-17 14:11:45 +0200
commit47fd81a5910eab3483f79d03eedf9307bc81252f (patch)
tree3e1ebd1bddcea649eb968e65161555afd4c2898c /app/models/integrations.py
parentf01cb6703710b7df4c7c022047cd35e1d5e9c70e (diff)
simple registration prototype
Diffstat (limited to 'app/models/integrations.py')
-rw-r--r--app/models/integrations.py19
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)