aboutsummaryrefslogtreecommitdiff
path: root/models.py
diff options
context:
space:
mode:
authorParker <contact@pkrm.dev>2025-04-02 18:52:00 -0500
committerParker <contact@pkrm.dev>2025-04-02 18:52:00 -0500
commitb5099937f84e2fb58b69d97b4b8fff17363fe7d9 (patch)
treece0626d12ad3daf9bf2b7c103914bf7411ea245e /models.py
parentae1ac1d731813008682ccba70db0f228b15a72e3 (diff)
First commit. Lots of stuff
Diffstat (limited to 'models.py')
-rw-r--r--models.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/models.py b/models.py
new file mode 100644
index 0000000..2c04f67
--- /dev/null
+++ b/models.py
@@ -0,0 +1,17 @@
+from sqlalchemy import Column, Boolean, Integer, String, JSON
+
+from database import Base
+
+
+class Message(Base):
+ __tablename__ = "messages"
+
+ id = Column(Integer, primary_key=True, autoincrement=True)
+ author_id = Column(Integer, nullable=False)
+ channel_id = Column(Integer, nullable=False)
+ stickers = Column(JSON, nullable=False, default=list)
+ role_mentions = Column(JSON, nullable=False, default=list)
+ mention_everyone = Column(Boolean, nullable=False, default=False)
+ mentions = Column(JSON, nullable=False, default=list)
+ attachments = Column(JSON, nullable=False, default=list)
+ content = Column(String, nullable=False)