accountant/src/api/model/accounts.py

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