# -*- coding: utf-8 -*- import datetime as dt from marshmallow import Schema, fields class Job(object): def __init__(self, description, amount, type): self.description = description self.time_start = 1 self.created_at = dt.datetime.now() self.type = type def __repr__(self): return "".format(self=self) class TransactionSchema(Schema): description = fields.Str() amount = fields.Number() created_at = fields.Date() type = fields.Str()