Archived
feat: initialize FastAPI project structure with job posting routes and models
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
from pydantic import BaseModel, Field
|
||||
|
||||
|
||||
class JobListing(BaseModel):
|
||||
title: str = Field(..., description="Job title")
|
||||
company: str = Field(..., description="Company name")
|
||||
location: str = Field(..., description="Location")
|
||||
description: str = Field(..., description="Job description")
|
||||
salary: int | None = Field(None, description="Salary")
|
||||
url: str = Field(..., description="Job URL")
|
||||
Reference in New Issue
Block a user