-
Notifications
You must be signed in to change notification settings - Fork 0
/
db_dump.sqlite.sql
35 lines (24 loc) · 1.2 KB
/
db_dump.sqlite.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--- Script for initialize the DB ---
-- delete table if already exists --
-- DROP TABLE IF EXISTS USERS_GRAPHS;
-----------------------------------------------------------------
-- `USERS_GRAPHS` table: --
-- --
-- username : --
-- fgname : forwarding-graph name --
-- fgid : forwarding-graph id --
-- fg : file json of the forwarding-graph --
-- fgpos : file json positioning of the forwarding-graph --
-- --
-----------------------------------------------------------------
CREATE TABLE IF NOT EXISTS `users_graphs` (
`username` varchar(32) NOT NULL,
`fgname` varchar(32) NOT NULL,
`fgid` varchar(32) NOT NULL,
`fg` text NOT NULL,
`fgpos` text,
PRIMARY KEY (`username`,`fgname`)
);
-- insert the default graph --
INSERT INTO `USERS_GRAPHS`(`username`, `fgname`, `fgid`, `fg`, `fgpos`) VALUES (
"giacomo","default","00000000",'{"forwarding-graph":{"id":"00000000","name":"Forwarding graph","VNFs":[],"end-points":[],"big-switch":{"flow-rules":[]}}}',NULL);