feat:新增基金产品列表接口,历史业绩接口,客户注册提交接口,问卷提交接口
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
"""ops_question 问卷题目表 ORM 模型。"""
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import Any
|
||||
|
||||
from sqlalchemy import BigInteger, Integer, JSON, String
|
||||
from sqlalchemy.orm import Mapped, mapped_column
|
||||
|
||||
from model.base import Base
|
||||
|
||||
|
||||
class OpsQuestion(Base):
|
||||
__tablename__ = "ops_question"
|
||||
__table_args__ = {"comment": "问卷题目表(题目/选项/分值可运营配置)"}
|
||||
|
||||
id: Mapped[int] = mapped_column(BigInteger, primary_key=True, autoincrement=True)
|
||||
questionnaire_id: Mapped[int] = mapped_column(BigInteger)
|
||||
question_no: Mapped[int] = mapped_column(Integer)
|
||||
content: Mapped[str] = mapped_column(String(512))
|
||||
option_json: Mapped[list[Any] | None] = mapped_column(JSON)
|
||||
score_json: Mapped[dict[str, Any] | None] = mapped_column(JSON)
|
||||
sort: Mapped[int] = mapped_column(Integer, server_default="0")
|
||||
Reference in New Issue
Block a user