Skip to content

Commit

Permalink
add version to schema
Browse files Browse the repository at this point in the history
  • Loading branch information
jodyphelan committed Jul 5, 2024
1 parent a9f39c1 commit 609801b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tbprofiler/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from pathogenprofiler.models import BamQC, FastaQC, VcfQC, Variant, DrVariant, BarcodePosition
from datetime import datetime

__model_schema_version__ = '1.0'


class Lineage(BaseModel):
Expand Down Expand Up @@ -59,6 +60,7 @@ class Result(BaseModel):
db_version : dict
TBProfiler database version
"""
schema_version: str = __model_schema_version__
id: str
timestamp: datetime = Field(default_factory=datetime.now)
pipeline: Pipeline
Expand Down

0 comments on commit 609801b

Please sign in to comment.