Files
campus_spider/app/models/recruit_announcement_category.py
T
2026-07-30 11:06:40 +08:00

20 lines
872 B
Python

"""MySQL: bg_recruit_announcement_category 招聘公告-岗位大类关联表模型"""
from datetime import datetime
from sqlalchemy import BigInteger, DateTime, String
from sqlalchemy.orm import Mapped, mapped_column
from app.core.database import MysqlBase
class RecruitAnnouncementCategory(MysqlBase):
"""招聘公告-岗位大类关联表"""
__tablename__ = "bg_recruit_announcement_category"
id: Mapped[int] = mapped_column(BigInteger, primary_key=True, comment="主键ID(雪花)")
announcement_id: Mapped[int] = mapped_column(BigInteger, nullable=False, comment="公告id")
category_name: Mapped[str] = mapped_column(String(64), nullable=False, comment="岗位分类值,取自固定分类表,如后端开发/人工智能/产品经理")
create_time: Mapped[datetime] = mapped_column(DateTime, nullable=False, comment="创建时间")