diff options
Diffstat (limited to 'cli/app/sql/models/graph.py')
| -rw-r--r-- | cli/app/sql/models/graph.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cli/app/sql/models/graph.py b/cli/app/sql/models/graph.py index fdea32a..fbfb09c 100644 --- a/cli/app/sql/models/graph.py +++ b/cli/app/sql/models/graph.py @@ -13,6 +13,7 @@ class Graph(Base): """Table for storing references to graphs""" __tablename__ = 'graph' id = Column(Integer, primary_key=True) + home_page_id = Column(Integer, nullable=True) path = Column(String(64, convert_unicode=True), nullable=False) title = Column(String(64, convert_unicode=True), nullable=False) username = Column(String(32, convert_unicode=True), nullable=False) @@ -26,6 +27,7 @@ class Graph(Base): def toJSON(self): return { 'id': self.id, + 'home_page_id': self.home_page_id, 'path': self.path, 'title': self.title, 'username': self.username, |
