Skip to content

Commit

Permalink
Update ddl.gsql
Browse files Browse the repository at this point in the history
add comment
  • Loading branch information
mingxiw authored Sep 12, 2024
1 parent 7c0dec8 commit 06b3420
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions demos/guru_scripts/docker/tutorial/4.x/script/ddl.gsql
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
//create vertex types
CREATE VERTEX Account ( name STRING PRIMARY KEY, isBlocked BOOL)
CREATE VERTEX City ( name STRING PRIMARY KEY)
CREATE VERTEX Phone (nmuber STRING PRIMARY KEY, isBlocked BOOL)

//create edge types
CREATE DIRECTED EDGE transfer (FROM Account, TO Account, DISCRIMINATOR(date DATETIME), amount UINT) WITH REVERSE_EDGE="transfer_reverse"
CREATE UNDIRECTED EDGE hasPhone (FROM Account, TO Phone)
CREATE DIRECTED EDGE isLocatedIn (FROM Account, TO City)

//create graph; * means include all graph element types in the graph.
CREATE GRAPH financialGraph (*)

0 comments on commit 06b3420

Please sign in to comment.