accountant-ui/src/api/model/accounts.py

13 lines
386 B
Python
Raw Normal View History

from app import app
from app import db
class Account(db.Model):
id = db.Column(db.Integer, primary_key = True)
name = db.Column(db.String(200), nullable = False)
2013-01-24 20:44:09 +01:00
authorized_overdraft = db.Column(db.Integer, nullable = True, default = 0)
2013-01-24 20:44:09 +01:00
def __init__(self, name, authorized_overdraft):
self.name = name
2013-01-24 20:44:09 +01:00
self.authorized_overdraft = authorized_overdraft