"""MySQL: bg_recruit_announcement_year 招聘公告-招聘届数关联表模型""" from datetime import datetime from sqlalchemy import BigInteger, DateTime, SmallInteger from sqlalchemy.orm import Mapped, mapped_column from app.core.database import MysqlBase class RecruitAnnouncementYear(MysqlBase): """招聘公告-招聘届数关联表""" __tablename__ = "bg_recruit_announcement_year" id: Mapped[int] = mapped_column(BigInteger, primary_key=True, comment="主键ID(雪花)") announcement_id: Mapped[int] = mapped_column(BigInteger, nullable=False, comment="公告id") recruit_year: Mapped[int] = mapped_column(SmallInteger, nullable=False, comment="招聘届数,如2027") create_time: Mapped[datetime] = mapped_column(DateTime, nullable=False, comment="创建时间")