feat #I63B4Y 增加 sql-lite sql 文件

This commit is contained in:
gaibu 2022-11-27 10:56:20 +08:00
parent cec930269a
commit d0a4bcd658
2 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,10 @@
DELETE FROM EL_TABLE;
INSERT INTO EL_TABLE (APPLICATION_NAME,CHAIN_NAME,EL_DATA) values ('demo','chain1','THEN(a, b, c);');
INSERT INTO EL_TABLE (APPLICATION_NAME,CHAIN_NAME,EL_DATA) values ('demo','chain2','THEN(a, b, c);');
INSERT INTO EL_TABLE (APPLICATION_NAME,CHAIN_NAME,EL_DATA) values ('demo','chain3','IF(x0, THEN(a, b));');
DELETE FROM SCRIPT_NODE_TABLE;
INSERT INTO SCRIPT_NODE_TABLE (APPLICATION_NAME,SCRIPT_NODE_ID,SCRIPT_NODE_NAME,SCRIPT_NODE_TYPE,SCRIPT_NODE_DATA) values ('demo','x0','if 脚本','if_script','return true');
INSERT INTO SCRIPT_NODE_TABLE (APPLICATION_NAME,SCRIPT_NODE_ID,SCRIPT_NODE_NAME,SCRIPT_NODE_TYPE,SCRIPT_NODE_DATA) values ('demo','x1','if 脚本','if_script','return false');

View File

@ -0,0 +1,19 @@
create table `EL_TABLE`
(
`id` integer NOT NULL,
`application_name` text NOT NULL,
`chain_name` text NOT NULL,
`el_data` text NOT NULL,
PRIMARY KEY (`id`)
);
create table `script_node_table`
(
`id` integer NOT NULL,
`application_name` text NOT NULL,
`script_node_id` text NOT NULL,
`script_node_name` text NOT NULL,
`script_node_type` text NOT NULL,
`script_node_data` text NOT NULL,
PRIMARY KEY (`id`)
);