# generated by datamodel-codegen:
#   filename:  job_posting.json
#   timestamp: 2025-02-09T20:28:24+00:00

from __future__ import annotations

from typing import Optional

from pydantic import BaseModel, Field


class Location(BaseModel):
    address: Optional[str] = None
    postal_code: Optional[str] = Field(None, alias="postalCode")
    city: Optional[str] = None
    country_code: Optional[str] = Field(None, alias="countryCode")
    region: Optional[str] = None


class Skill(BaseModel):
    name: Optional[str] = None
    level: Optional[str] = None
    keywords: Optional[list[str]] = None


class JobPosting(BaseModel):
    title: Optional[str] = None
    company: Optional[str] = None
    type: Optional[str] = None
    date: Optional[str] = None
    description: Optional[str] = None
    location: Optional[Location] = None
    remote: Optional[str] = None
    salary: Optional[str] = None
    experience: Optional[str] = None
    responsibilities: Optional[list[str]] = None
    qualifications: Optional[list[str]] = None
    skills: Optional[list[Skill]] = None
