mirror of
https://github.com/Kludex/awesome-fastapi-projects.git
synced 2025-05-15 21:57:04 +00:00
20 lines
392 B
Python
20 lines
392 B
Python
"""Module contains the models for the application."""
|
|
from typing import NewType
|
|
|
|
from pydantic import AnyUrl, BaseModel
|
|
|
|
RepoId = NewType("RepoId", int)
|
|
DependencyId = NewType("DependencyId", int)
|
|
|
|
|
|
class RepoCreateData(BaseModel):
|
|
"""A repository that is being tracked."""
|
|
|
|
url: AnyUrl
|
|
|
|
|
|
class DependencyCreateData(BaseModel):
|
|
"""A dependency of a repository."""
|
|
|
|
name: str
|