Files
offerpai_python_ai/app/models/resume_diagnosis_report.py
2026-04-07 20:15:43 +08:00

26 lines
1.4 KiB
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"""简历诊断报告表(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="更新时间")