class AggregationStats(Base): aggregation = EnumField(AggregationType) values = ListField(float)
class EditUserReq(Base): user = StringField(required=True) role = EnumField(Role.get_company_roles())
class StatItem(Base): key = StringField(required=True) aggregation = EnumField(AggregationType, default=AggregationType.avg)