fix: add Parameter model for lane_op

This commit is contained in:
Lance Edgar 2025-01-25 16:41:17 -06:00
parent 50351596ac
commit 2fe089bd57
3 changed files with 27 additions and 15 deletions

View file

@ -56,25 +56,12 @@ class StringableDateTime(sa.TypeDecorator):
raise NotImplementedError
class Parameter(Base):
class Parameter(common.ParameterBase, Base):
"""
Represents a "parameter" value.
Data model for ``parameters`` table.
"""
__tablename__ = 'parameters'
store_id = sa.Column(sa.SmallInteger(), primary_key=True, nullable=False)
lane_id = sa.Column(sa.SmallInteger(), primary_key=True, nullable=False)
param_key = sa.Column(sa.String(length=100), primary_key=True, nullable=False)
param_value = sa.Column(sa.String(length=255), nullable=True)
is_array = sa.Column(sa.Boolean(), nullable=True)
def __str__(self):
return "{}-{} {}".format(self.store_id, self.lane_id, self.param_key)
class TableSyncRule(Base):
"""