diff --git a/sqeleton/abcs/database_types.py b/sqeleton/abcs/database_types.py index 59843c5..43e1a56 100644 --- a/sqeleton/abcs/database_types.py +++ b/sqeleton/abcs/database_types.py @@ -24,10 +24,6 @@ class PrecisionType(ColType): rounds: Union[bool, Unknown] = Unknown -class Boolean(ColType): - precision = 0 - - class TemporalType(PrecisionType): pass @@ -82,6 +78,10 @@ def python_type(self) -> type: return decimal.Decimal +class Boolean(ColType, IKey): + precision = 0 + python_type = bool + @dataclass class StringType(ColType): python_type = str