mirror of
https://github.com/khoaliber/LetterFeed.git
synced 2026-03-07 05:40:18 +00:00
refactor: reformat
This commit is contained in:
@@ -1 +1 @@
|
||||
"""SQLAlchemy models for the database."""
|
||||
"""SQLAlchemy models for the database."""
|
||||
|
||||
@@ -6,6 +6,7 @@ from app.core.database import Base
|
||||
|
||||
class Newsletter(Base):
|
||||
"""Represents a newsletter, which can have multiple senders and entries."""
|
||||
|
||||
__tablename__ = "newsletters"
|
||||
|
||||
id = Column(Integer, primary_key=True, index=True)
|
||||
@@ -22,6 +23,7 @@ class Newsletter(Base):
|
||||
|
||||
class Sender(Base):
|
||||
"""Represents an email sender associated with a newsletter."""
|
||||
|
||||
__tablename__ = "senders"
|
||||
|
||||
id = Column(Integer, primary_key=True, index=True)
|
||||
|
||||
@@ -5,6 +5,7 @@ from app.core.database import Base
|
||||
|
||||
class Settings(Base):
|
||||
"""Represents application settings, including IMAP configuration."""
|
||||
|
||||
__tablename__ = "settings"
|
||||
|
||||
id = Column(Integer, primary_key=True, index=True)
|
||||
|
||||
Reference in New Issue
Block a user