Vladyslav Fedoriuk 6484b85956 Refactor the models and add a mapper
- A new mapper allows to create database repositories from the SourceGraph data
2023-08-15 13:17:14 +02:00

14 lines
286 B
Python

"""Module contains the models for the application."""
from typing import NewType
from pydantic import BaseModel
RepoId = NewType("RepoId", int)
DependencyId = NewType("DependencyId", int)
class DependencyCreateData(BaseModel):
"""A dependency of a repository."""
name: str