添加简历诊断功能

This commit is contained in:
zk
2026-04-07 20:15:43 +08:00
parent 602f226377
commit 8ffcb351a6
10 changed files with 1004 additions and 10 deletions
+25
View File
@@ -0,0 +1,25 @@
"""简历诊断报告表(bg_resume_diagnosis_report"""
from datetime import datetime
from typing import Optional
from sqlalchemy import BigInteger, Integer, String, Text, DateTime
from sqlalchemy.orm import Mapped, mapped_column
from app.core.database import Base
class ResumeDiagnosisReport(Base):
"""简历诊断报告表 bg_resume_diagnosis_report"""
__tablename__ = "bg_resume_diagnosis_report"
id: Mapped[int] = mapped_column(BigInteger, primary_key=True)
resume_id: Mapped[int] = mapped_column(BigInteger, nullable=False, comment="关联bg_user_resume.id")
user_id: Mapped[int] = mapped_column(BigInteger, nullable=False, comment="用户ID")
grade: Mapped[Optional[str]] = mapped_column(String(1), nullable=True, comment="评级 A/B/C/D")
summary: Mapped[Optional[str]] = mapped_column(Text, nullable=True, comment="AI生成的整体评价")
urgent_total: Mapped[int] = mapped_column(Integer, default=0, comment="紧急修复总数")
important_total: Mapped[int] = mapped_column(Integer, default=0, comment="重点优化总数")
expression_total: Mapped[int] = mapped_column(Integer, default=0, comment="表达提升总数")
create_time: Mapped[datetime] = mapped_column(DateTime, default=datetime.now, comment="创建时间")
update_time: Mapped[datetime] = mapped_column(DateTime, default=datetime.now, onupdate=datetime.now, comment="更新时间")