diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-06-02 16:09:59 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-06-02 16:09:59 +0200 |
| commit | 2db55c3d261ddee52019bbd06dc5f6545db39c16 (patch) | |
| tree | 4afe164982b81ca8cbd239e9f08567e8ae7fb2cf /cli/app/sql/models/graph.py | |
| parent | 42d5e59335d97aa0cf165f2aedf8d04f60db9310 (diff) | |
form for making a new graph. add username field to db
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 1f553e9..0d3fdab 100644 --- a/cli/app/sql/models/graph.py +++ b/cli/app/sql/models/graph.py @@ -17,6 +17,7 @@ class Graph(Base): id = Column(Integer, primary_key=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 Graph(Base): 'id': self.id, 'path': self.path, 'title': self.title, + 'username': self.username, 'description': self.description, 'settings': self.settings, 'created_at': self.created_at, |
