feat:新增基金产品列表接口,历史业绩接口,客户注册提交接口,问卷提交接口
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
"""ops_questionnaire 问卷模板表 ORM 模型。"""
|
||||
from __future__ import annotations
|
||||
|
||||
from datetime import datetime
|
||||
|
||||
from sqlalchemy import BigInteger, DateTime, String, func
|
||||
from sqlalchemy.orm import Mapped, mapped_column
|
||||
|
||||
from model.base import Base
|
||||
|
||||
|
||||
class OpsQuestionnaire(Base):
|
||||
__tablename__ = "ops_questionnaire"
|
||||
__table_args__ = {"comment": "问卷模板表"}
|
||||
|
||||
id: Mapped[int] = mapped_column(BigInteger, primary_key=True, autoincrement=True)
|
||||
name: Mapped[str] = mapped_column(String(64))
|
||||
q_type: Mapped[str] = mapped_column(String(16))
|
||||
version: Mapped[str] = mapped_column(String(16), server_default="v1")
|
||||
status: Mapped[str] = mapped_column(String(16), server_default="启用")
|
||||
create_time: Mapped[datetime] = mapped_column(DateTime, server_default=func.now())
|
||||
update_time: Mapped[datetime] = mapped_column(
|
||||
DateTime, server_default=func.now(), onupdate=func.now()
|
||||
)
|
||||
Reference in New Issue
Block a user