# jobClasses.py
import typing as tp
from datetime import datetime
from dataclasses import dataclass


@dataclass
class Vacancy:
    id: str
    jobTitle: str
    companyName: str


@dataclass
class indeedVacancy(Vacancy):
    last_update: str
    job: str
    developer_experience: str
    salaryFrom: int
    salaryTo: int
    source = "indeed"


@dataclass
class hhVacancy(Vacancy):
    id: str
    premium: str
    has_test: str
    response_letter_required: str
    type: str
    employer_id: str
    created_at: str
    published_at: str
    requirement: str
    responsibility: str
    last_update: str
    job: str
    developer_experience: str
