@@ -0,0 +1,1030 @@
+from service.db import db%0Afrom datetime import datetime%0Aimport sqlalchemy as sa%0A%0A%0Aclass ServerCost(db.Model):%0A    __tablename__ = 'server_costs'%0A%0A    project_url = db.Column(db.String(), sa.ForeignKey('projects.url'), nullable=False, primary_key=True)%0A    value = db.Column(db.Numeric(precision=10, scale=2), nullable=True)  # returns a decimal.Decimal object to prevent rounding errors. Pass asdecimal=False to this constructor if you want to just get floats out.%0A    created_at = db.Column(db.DateTime())%0A    updated_at = db.Column(db.DateTime())%0A%0A    def __init__(self, created_at=datetime.now(), updated_at=datetime.now(), **kwargs):%0A        %22%22%22Mostly rely on default declarative SQLAlchemy constructor. Additionally set the timestamps on object creation.%22%22%22%0A        super(ServerCost, self).__init__(**kwargs)  # use the default declarative constructor%0A        self.created_at = created_at%0A        self.updated_at = updated_at%0A%0A    def __repr__(self):%0A        return '%3Cproject url %7B0%7D value %7B1%7D%3E'.format(self.url, self.value)%0A

add server costs model