2013-01-24 00:01:42 +01:00
|
|
|
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 00:01:42 +01:00
|
|
|
|
2013-01-24 20:44:09 +01:00
|
|
|
def __init__(self, name, authorized_overdraft):
|
2013-01-24 00:01:42 +01:00
|
|
|
self.name = name
|
2013-01-24 20:44:09 +01:00
|
|
|
self.authorized_overdraft = authorized_overdraft
|
2013-01-24 00:01:42 +01:00
|
|
|
|