summaryrefslogtreecommitdiff
path: root/cli/app/sql/models/page.py
diff options
context:
space:
mode:
Diffstat (limited to 'cli/app/sql/models/page.py')
-rw-r--r--cli/app/sql/models/page.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/cli/app/sql/models/page.py b/cli/app/sql/models/page.py
index f23db8d..22fcc96 100644
--- a/cli/app/sql/models/page.py
+++ b/cli/app/sql/models/page.py
@@ -16,6 +16,7 @@ class Page(Base):
graph_id = Column(Integer, ForeignKey('graph.id'), 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)
description = Column(Text(convert_unicode=True), nullable=False)
settings = Column(JSON, default={}, nullable=True)
created_at = Column(UtcDateTime(), default=utcnow())
@@ -29,6 +30,7 @@ class Page(Base):
'graph_id': self.graph_id,
'path': self.path,
'title': self.title,
+ 'username': self.username,
'description': self.description,
'settings': self.settings,
'created_at': self.created_at,