mirror of
https://github.com/khoaliber/LetterFeed.git
synced 2026-03-02 13:18:27 +00:00
v0.1.0
This commit is contained in:
18
backend/app/models/settings.py
Normal file
18
backend/app/models/settings.py
Normal file
@@ -0,0 +1,18 @@
|
||||
from sqlalchemy import Boolean, Column, Integer, String
|
||||
|
||||
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)
|
||||
imap_server = Column(String, index=True, nullable=True, default="")
|
||||
imap_username = Column(String, nullable=True, default="")
|
||||
imap_password = Column(String, nullable=True)
|
||||
search_folder = Column(String, default="INBOX")
|
||||
move_to_folder = Column(String, nullable=True)
|
||||
mark_as_read = Column(Boolean, default=False)
|
||||
email_check_interval = Column(Integer, default=15) # Interval in minutes
|
||||
auto_add_new_senders = Column(Boolean, default=False)
|
||||
Reference in New Issue
Block a user