16 lines
529 B
Python
16 lines
529 B
Python
from sqlalchemy import String, ForeignKey
|
|
from sqlalchemy.orm import Mapped, mapped_column, relationship
|
|
|
|
from app.domain.models.base import FileAbstract
|
|
|
|
|
|
class ApplicantResumeFile(FileAbstract):
|
|
__tablename__ = 'applicant_resume_files'
|
|
|
|
title: Mapped[str] = mapped_column(String(250), nullable=False)
|
|
|
|
applicant_id: Mapped[int] = mapped_column(ForeignKey('applicant_profiles.id'), nullable=False)
|
|
|
|
applicant_profile: Mapped['ApplicantProfile'] = relationship('ApplicantProfile', back_populates='resume_files')
|
|
|