14 lines
625 B
Python
14 lines
625 B
Python
from sqlalchemy import Column, String, Text, JSON
|
|
from app.core.database.db_session import Base
|
|
|
|
class SeoMetadata(Base):
|
|
__tablename__ = "seo_metadata"
|
|
|
|
seo_id = Column(String(26), primary_key=True)
|
|
entity_type = Column(String(30), nullable=False) # product, category, brand, device_model, repair_service
|
|
entity_id = Column(String(26), nullable=False)
|
|
meta_title = Column(String(255), nullable=False)
|
|
meta_description = Column(Text, nullable=False)
|
|
canonical_url = Column(String(500), nullable=True)
|
|
og_image = Column(String(500), nullable=True)
|
|
schema_json = Column(JSON, nullable=True)
|