20 行
769 B
Python
20 行
769 B
Python
from __future__ import annotations
|
|
from sqlalchemy import Column, Integer, JSON, DateTime
|
|
from sqlalchemy.sql import func
|
|
|
|
from app.database import Base
|
|
|
|
|
|
class CustomizeConfig(Base):
|
|
"""定制表单页面配置(选项列表、流程步骤、联系方式等)"""
|
|
__tablename__ = "customize_config"
|
|
|
|
id = Column(Integer, primary_key=True, autoincrement=True)
|
|
trust_stats = Column(JSON) # [{value, unit, label}]
|
|
durations = Column(JSON) # [{value, label}]
|
|
activities = Column(JSON) # [{value, label}]
|
|
budgets = Column(JSON) # [{value, label}]
|
|
process = Column(JSON) # [{title, desc}]
|
|
contact = Column(JSON) # {wechat, tip}
|
|
updated_at = Column(DateTime, server_default=func.now(), onupdate=func.now())
|