from dataclasses import dataclass @dataclass class KWCappingRecord: """Represents one KW tier and its associated maximum loan approval limit.""" id: int kw: int # maps to the 'KW' column (uppercase in DB) max_approved_value: int