Skip to content

Commit

Permalink
add new genotype base
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrOertlin committed Mar 19, 2024
1 parent 8483504 commit 6cef9e2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion genotype_api/dto/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from pydantic import BaseModel

from genotype_api.constants import SEXES, TYPES
from genotype_api.database.models import GenotypeBase
from genotype_api.dto.genotype import GenotypeBase


class AnalysisWithGenotypeResponse(BaseModel):
Expand Down
10 changes: 10 additions & 0 deletions genotype_api/dto/genotype.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
"""Module to hold the genotype dtos."""

from pydantic import BaseModel, Field


class GenotypeBase(BaseModel):
rsnumber: str = Field(max_length=10)
analysis_id: int
allele_1: str = Field(max_length=1)
allele_2: str = Field(max_length=1)

0 comments on commit 6cef9e2

Please sign in to comment.