Sahand
initial commit
6b83428
raw
history blame
545 Bytes
# -*- 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 "<Transaction(name={self.description!r})>".format(self=self)
class TransactionSchema(Schema):
description = fields.Str()
amount = fields.Number()
created_at = fields.Date()
type = fields.Str()