Skip to content

Commit f4e15d7

Browse files
committed
feat: add is_active field to tool and tool_folder queries
1 parent 7070943 commit f4e15d7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

apps/tools/sql/list_tool.sql

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ from (select "id"::text,
99
"user_id",
1010
"icon",
1111
"create_time",
12-
"update_time"
12+
"update_time",
13+
"is_active"
1314
from tool ${tool_scope_query_set}
1415
UNION
1516
select "id",
@@ -22,6 +23,7 @@ from (select "id"::text,
2223
"user_id",
2324
'' as "icon",
2425
"create_time",
25-
"update_time"
26+
"update_time",
27+
'true' as "is_active"
2628
from tool_folder ${folder_query_set}) temp
2729
${tool_query_set}

0 commit comments

Comments
 (0)