13 lines
284 B
Python
13 lines
284 B
Python
from pydantic import BaseModel
|
|
from helpers.common_helper import *
|
|
|
|
from models.attribute import Attribute
|
|
|
|
class Constraint(BaseModel):
|
|
reference_attribute: Attribute
|
|
minimum: float
|
|
maximum: float
|
|
|
|
def __init__(self, **data) -> None:
|
|
super().__init__(**data)
|