diff --git a/progit/model.py b/progit/model.py index f08f596..d5c429e 100644 --- a/progit/model.py +++ b/progit/model.py @@ -86,6 +86,17 @@ def create_default_status(session): session.commit() +class StatusIssue(BASE): + """ Stores the status a ticket can have. + + Table -- status_issue + """ + __tablename__ = 'status_issue' + + id = sa.Column(sa.Integer, primary_key=True) + status = sa.Column(sa.Text, nullable=False, unique=True) + + class Project(BASE): """ Stores the projects. @@ -168,17 +179,6 @@ class Comment(BASE): default=datetime.datetime.utcnow) -class StatusIssue(BASE): - """ Stores the status a ticket can have. - - Table -- status_issue - """ - __tablename__ = 'status_issue' - - id = sa.Column(sa.Integer, primary_key=True) - status = sa.Column(sa.Text, nullable=False, unique=True) - - class Issue(BASE): """ Stores the issues reported on a project.