Vladyslav Fedoriuk a0310ea3b1 Set up tests
2023-07-29 00:17:38 +02:00

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