This commit is contained in:
Iliyan Angelov
2025-11-21 10:55:05 +02:00
parent 722997bb19
commit 4ab7546de0
53 changed files with 3091 additions and 56 deletions

View File

@@ -10,11 +10,17 @@ class PageType(str, enum.Enum):
ABOUT = 'about'
FOOTER = 'footer'
SEO = 'seo'
PRIVACY = 'privacy'
TERMS = 'terms'
REFUNDS = 'refunds'
CANCELLATION = 'cancellation'
ACCESSIBILITY = 'accessibility'
FAQ = 'faq'
class PageContent(Base):
__tablename__ = 'page_contents'
id = Column(Integer, primary_key=True, index=True)
page_type = Column(SQLEnum(PageType), nullable=False, unique=True, index=True)
page_type = Column(SQLEnum(PageType, values_callable=lambda x: [e.value for e in x], native_enum=False, length=50), nullable=False, unique=True, index=True)
title = Column(String(500), nullable=True)
subtitle = Column(String(1000), nullable=True)
description = Column(Text, nullable=True)