accountant-ui/src/api/model/accounts.py
2013-01-24 13:31:42 +01:00

11 lines
228 B
Python

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)
def __init__(self, name):
self.name = name