添加ORM表

This commit is contained in:
zk
2026-07-24 18:27:20 +08:00
parent 75d2bf93e9
commit 8d67bc76ec
9 changed files with 186 additions and 0 deletions
@@ -0,0 +1,19 @@
"""MySQL: bg_recruit_announcement_education 招聘公告-学历要求关联表模型"""
from datetime import datetime
from sqlalchemy import BigInteger, DateTime, String
from sqlalchemy.orm import Mapped, mapped_column
from app.core.database import MysqlBase
class RecruitAnnouncementEducation(MysqlBase):
"""招聘公告-学历要求关联表"""
__tablename__ = "bg_recruit_announcement_education"
id: Mapped[int] = mapped_column(BigInteger, primary_key=True, comment="主键ID(雪花)")
announcement_id: Mapped[int] = mapped_column(BigInteger, nullable=False, comment="公告id")
education_name: Mapped[str] = mapped_column(String(32), nullable=False, comment="学历值,如本科/硕士/博士")
create_time: Mapped[datetime] = mapped_column(DateTime, nullable=False, comment="创建时间")