"""MySQL: bg_recruit_announcement_batch 招聘公告-批次关联表模型""" from datetime import datetime from sqlalchemy import BigInteger, DateTime, String from sqlalchemy.orm import Mapped, mapped_column from app.core.database import MysqlBase class RecruitAnnouncementBatch(MysqlBase): """招聘公告-批次关联表""" __tablename__ = "bg_recruit_announcement_batch" id: Mapped[int] = mapped_column(BigInteger, primary_key=True, comment="主键ID(雪花)") announcement_id: Mapped[int] = mapped_column(BigInteger, nullable=False, comment="公告id") batch_name: Mapped[str] = mapped_column(String(64), nullable=False, comment="批次值,枚举:实习/暑期实习/寒假实习/秋招提前批/秋招正式批/秋招补招/春招提前批/春招正式批/春招补招/校园招聘/社招") create_time: Mapped[datetime] = mapped_column(DateTime, nullable=False, comment="创建时间")