Files
HangmanLab.Backend/db/models/MarkdownTemplateSetting.py
2025-04-14 17:02:22 +01:00

17 lines
423 B
Python

from sqlalchemy import Column, Integer, ForeignKey
from db.models import Base
class MarkdownTemplateSetting(Base):
__tablename__ = 'markdown_template_setting'
id = Column(Integer, primary_key=True, autoincrement=True)
template_id = Column(Integer, ForeignKey('markdown_template.id'))
def to_dict(self):
return {
'id': self.id,
'template_id': self.template_id,
}