dieterich-lab / scimodom

GNU Affero General Public License v3.0
0 stars 0 forks source link

Mismatch between db check contrainst and model dto #114

Open eboileau opened 1 week ago

eboileau commented 1 week ago

Aims/objectives.

CheckConstraint("coverage > 0", name="cov_strict"),
CheckConstraint("frequency > 0", name="freq_strict"),

vs.

NonNegativInt = Annotated[int, Field(ge=0)]
Score = Annotated[int, Field(ge=0, le=1000)]
PercentInt = Annotated[int, Field(ge=0, le=100)]

A clear and concise description of todo items.

Harmonize constraints in sync with latest EUF specs.