-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Expand file tree
/
Copy pathtest_data.sql
More file actions
36 lines (31 loc) · 2.01 KB
/
test_data.sql
File metadata and controls
36 lines (31 loc) · 2.01 KB
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
29
30
31
32
33
34
35
36
-- 添加测试分组
INSERT INTO groups (name, order_num, is_public) VALUES
('开发工具', 1, 1),
('社交媒体', 2, 1),
('搜索引擎', 3, 1),
('私密资源', 4, 0);
-- 添加测试站点 - 开发工具分组
INSERT INTO sites (group_id, name, url, icon, description, notes, order_num, is_public) VALUES
(1, 'GitHub', 'https://github.com', 'https://github.githubassets.com/favicons/favicon.svg', '全球最大的代码托管平台', '', 1, 1),
(1, 'Stack Overflow', 'stackoverflow.com', 'https://cdn.sstatic.net/Sites/stackoverflow/Img/favicon.ico', '开发者问答社区', '', 2, 1),
(1, 'MDN Web Docs', 'developer.mozilla.org', 'https://developer.mozilla.org/favicon-48x48.cbbd161b.png', 'Web开发权威文档', '', 3, 1);
-- 添加测试站点 - 社交媒体分组
INSERT INTO sites (group_id, name, url, icon, description, notes, order_num, is_public) VALUES
(2, 'Twitter', 'https://twitter.com', 'https://abs.twimg.com/favicons/twitter.3.ico', '社交媒体平台', '', 1, 1),
(2, 'Reddit', 'reddit.com', 'https://www.redditstatic.com/desktop2x/img/favicon/favicon-32x32.png', '全球最大的论坛社区', '', 2, 1);
-- 添加测试站点 - 搜索引擎分组
INSERT INTO sites (group_id, name, url, icon, description, notes, order_num, is_public) VALUES
(3, 'Google', 'google.com', 'https://www.google.com/favicon.ico', '全球最大搜索引擎', '', 1, 1),
(3, 'Bing', 'bing.com', 'https://www.bing.com/favicon.ico', '微软搜索引擎', '', 2, 1);
-- 添加测试站点 - 私密资源分组(仅管理员可见)
INSERT INTO sites (group_id, name, url, icon, description, notes, order_num, is_public) VALUES
(4, '内部文档', 'docs.internal.com', '', '公司内部文档系统', '仅限内部访问', 1, 0),
(4, '管理后台', 'admin.internal.com', '', '系统管理后台', '管理员专用', 2, 0);
-- 添加配置数据
INSERT INTO configs (key, value) VALUES
('SITE_TITLE', 'NaviHive 测试站'),
('SITE_NAME', '导航测试'),
('CUSTOM_CSS', '/* 自定义样式 */
body {
/* 可以在这里添加自定义CSS */
}');