install.sql 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. create table card
  2. (
  3. id int auto_increment
  4. primary key,
  5. name varchar(200) null,
  6. name_en varchar(200) null,
  7. status int default 0 null,
  8. version int default 0 null,
  9. tips varchar(255) null comment '说明',
  10. create_time datetime null comment '添加时间',
  11. src text null comment 'logo',
  12. url varchar(255) null comment '卡片地址',
  13. `window` varchar(255) null comment '窗口地址',
  14. update_time datetime null,
  15. install_num int default 0 null,
  16. setting varchar(200) null comment '设置页面的url',
  17. dict_option longtext null comment '配置的参数'
  18. )
  19. comment '卡片数据表';
  20. create table config
  21. (
  22. user_id int null,
  23. config json null
  24. );
  25. create index config_user_id_index
  26. on config (user_id);
  27. create table history
  28. (
  29. id bigint auto_increment
  30. primary key,
  31. user_id int null,
  32. link json null,
  33. constraint history_id_uindex
  34. unique (id)
  35. )
  36. comment 'link历史数据';
  37. create table link
  38. (
  39. user_id int null,
  40. update_time datetime null comment '更新时间',
  41. link json null
  42. );
  43. create table link_folder
  44. (
  45. id int auto_increment comment 'id'
  46. primary key,
  47. name varchar(50) null comment '分类名称',
  48. sort int default 0 null
  49. )
  50. comment '标签链接分类';
  51. create table linkstore
  52. (
  53. id int auto_increment
  54. primary key,
  55. name varchar(255) null,
  56. src varchar(255) null,
  57. url varchar(255) null,
  58. type varchar(20) default 'icon' null,
  59. size varchar(20) default '1x1' null,
  60. create_time datetime null,
  61. hot bigint default 0 null,
  62. area varchar(20) default '' null comment '专区',
  63. tips varchar(255) null comment '介绍',
  64. domain varchar(255) null,
  65. app int default 0 null comment '是否app',
  66. install_num int default 0 null comment '安装量',
  67. bgColor varchar(30) null comment '背景颜色',
  68. constraint linkStore_id_uindex
  69. unique (id)
  70. );
  71. create table note
  72. (
  73. id bigint auto_increment
  74. primary key,
  75. user_id bigint null,
  76. title varchar(50) null,
  77. text text null,
  78. create_time datetime null,
  79. update_time datetime null,
  80. weight int default 0 null,
  81. constraint note_id_uindex
  82. unique (id)
  83. );
  84. create index note_user_id_index
  85. on note (user_id);
  86. create table search_engine
  87. (
  88. id int auto_increment
  89. primary key,
  90. name varchar(50) null comment '名称',
  91. icon varchar(255) null comment '图标 128x128',
  92. url varchar(255) null comment '跳转url',
  93. sort int default 0 null comment '排序',
  94. create_time datetime null comment '添加时间',
  95. status int default 0 null comment '状态 0=关闭 1=启用',
  96. tips varchar(250) null comment '搜索引擎介绍'
  97. )
  98. comment '搜索引擎';
  99. create table setting
  100. (
  101. `keys` varchar(200) not null
  102. primary key,
  103. value text null
  104. );
  105. create table tabbar
  106. (
  107. user_id int null,
  108. tabs json null,
  109. update_time datetime null
  110. )
  111. comment '用户页脚信息';
  112. create table token
  113. (
  114. id bigint auto_increment
  115. primary key,
  116. user_id int null,
  117. token tinytext null,
  118. create_time int null,
  119. ip tinytext null,
  120. user_agent tinytext null,
  121. constraint token_id_uindex
  122. unique (id)
  123. );
  124. create table user
  125. (
  126. id int auto_increment
  127. primary key,
  128. mail varchar(50) null,
  129. password tinytext null,
  130. create_time datetime null,
  131. login_ip varchar(100) null comment '登录IP',
  132. register_ip varchar(100) null comment '注册IP',
  133. manager int default 0 null,
  134. login_fail_count int default 0 null,
  135. login_time datetime null comment '登录时间',
  136. constraint user_id_uindex
  137. unique (id),
  138. constraint user_mail_uindex
  139. unique (mail)
  140. );
  141. create table user_search_engine
  142. (
  143. user_id int not null
  144. primary key,
  145. list json null,
  146. constraint user_search_engine_pk
  147. unique (user_id)
  148. )
  149. comment '用户搜索引擎同步表';
  150. INSERT INTO linkstore (name, src, url, type, size, create_time, hot, tips, domain, app, install_num) VALUES ('Bilibili', '/static/bilibili.png', 'https://bilibili.com', 'icon', '1x1', '2022-11-07 21:51:42', 0, 'Bilibili弹幕视频网站Acg网站', 'bilibili.com,www.bilibili.com', 0, 0);
  151. INSERT INTO linkstore (name, src, url, type, size, create_time, hot, tips, domain, app, install_num) VALUES ('蓝易云', '/static/tsy.png', 'https://www.tsyvps.com/aff/IRYIGFMX', 'icon', '1x1', '2022-11-07 22:02:41', 0, '蓝易云-持证高性价比服务器', 'www.tsyvps.com,tsyvps.com', 0, 0);
  152. INSERT INTO linkstore (name, src, url, type, size, create_time, hot, tips, domain, app, install_num) VALUES ('ImgUrl', '/static/imgurl.png', 'https://imgurl.ink', 'icon', '1x1', '2022-11-07 22:05:46', 0, 'ImgUrl图床,图片外链', 'imgurl.ink,www.imgurl.ink', 0, 0);
  153. INSERT INTO linkstore (name, src, url, type, size, create_time, hot, tips, domain, app, install_num) VALUES ('微博', '/static/weibo.png', 'http://weibo.com/', 'icon', '1x1', '2022-11-07 23:37:22', 1, '微博-随时随地发现新鲜事', 'weibo.com,www.weibo.com', 0, 0);
  154. INSERT INTO linkstore (name, src, url, type, size, create_time, hot, tips, domain, app, install_num) VALUES ('火山翻译', '/static/huoshanfanyi.png', 'https://translate.volcengine.com/translate', 'icon', '1x1', '2022-11-07 23:42:49', 1, '火山翻译-字节跳动旗下机器翻译品牌', 'translate.volcengine.com', 1, 1);
  155. INSERT INTO linkstore (name, src, url, type, size, create_time, hot, tips, domain, app, install_num) VALUES ('腾讯云', '/static/tencentcloud.png', 'https://cloud.tencent.com/', 'icon', '1x1', '2022-11-10 16:25:51', 1, '腾讯云', 'cloud.tencent.com', 0, 0);
  156. INSERT INTO linkstore (name, src, url, type, size, create_time, hot, tips, domain, app, install_num) VALUES ('阿里云', '/static/aliyun.png', 'https://www.aliyun.com/', 'icon', '1x1', '2022-11-10 17:30:17', 1, '阿里云', 'www.aliyun.com,aliyun.com', 0, 0);
  157. INSERT INTO linkstore (name, src, url, type, size, create_time, hot, tips, domain, app, install_num) VALUES ('腾讯视频', '/static/txsp.png', 'https://v.qq.com/channel/choice?channel_2022=1', 'icon', '1x1', '2022-12-19 19:34:45', 0, '腾讯视频', 'v.qq.com', 0, 0);
  158. INSERT INTO linkstore (name, src, url, type, size, create_time, hot, tips, domain, app, install_num) VALUES ('记事本', '/static/note.png', '/noteApp', 'icon', '1x1', '2023-06-14 21:13:15', 1,'记事本App', '/noteApp', 1, 3);
  159. INSERT INTO search_engine (id, name, icon, url, sort, create_time, status, tips) VALUES (1, '百度', '/static/searchEngine/baidu.svg', 'https://www.baidu.com/s?wd={1}', 0, '2024-01-14 22:12:18', 1, '中国领先的搜索引擎和互联网公司,提供全球最大的中文搜索引擎服务,同时涵盖在线地图、贴吧、知道等多个互');
  160. INSERT INTO search_engine (id, name, icon, url, sort, create_time, status, tips) VALUES (3, '必应', '/static/searchEngine/bing.svg', 'https://www.bing.com/search?q={1}', 99, '2024-01-14 23:20:03', 1, '微软推出的搜索引擎,以直观的界面和优质搜索结果而闻名,提供全球范围内的多语言搜索服务');
  161. INSERT INTO search_engine (id, name, icon, url, sort, create_time, status, tips) VALUES (4, 'Google', '/static/searchEngine/google.svg', 'https://www.google.com/search?q={1}', 98, '2024-01-14 23:20:21', 1, 'Google:全球最大的搜索引擎,以卓越的搜索算法、广告服务和多样化的产品而著称,成为互联网信息检索');
  162. INSERT INTO search_engine (id, name, icon, url, sort, create_time, status, tips) VALUES (5, '搜狗', '/static/searchEngine/sougou.svg', 'https://www.sogou.com/web?query={1}', 0, '2024-01-14 23:20:46', 1, '中国领先的搜索引擎,致力于提供智能搜索和语音输入技术,以及多元化的互联网服务,深受用户喜爱');
  163. INSERT INTO search_engine (id, name, icon, url, sort, create_time, status, tips) VALUES (6, '360', '/static/searchEngine/360.svg', 'https://www.so.com/s?q={1}', 0, '2024-01-14 23:21:07', 1, '中国知名搜索引擎,注重用户隐私安全,提供全面的搜索服务,涵盖网页、图片、新闻等多个领域,致力于用户友');
  164. INSERT INTO search_engine (id, name, icon, url, sort, create_time, status, tips) VALUES (7, '开发者搜索', '/static/searchEngine/baidudev.png', 'https://kaifa.baidu.com/searchPage?module=SEARCH&wd={1}', 0, '2024-01-14 23:21:45', 1, '专注于技术文档、API 和开发者资源的搜索引擎,为开发者提供快速准确的技术信息检索服务,支持多种编程');
  165. INSERT INTO search_engine (id, name, icon, url, sort, create_time, status, tips) VALUES (8, 'B站', '/static/searchEngine/bilibiliico.png', 'https://search.bilibili.com/all?vt=21160573&keyword={1}', 0, '2024-01-14 23:21:57', 1, '中国弹幕视频平台,以二次元文化为特色,提供丰富的动画、游戏、音乐等内容,用户可通过弹幕互动分享观感。');
  166. INSERT INTO search_engine (id, name, icon, url, sort, create_time, status, tips) VALUES (9, '微博', '/static/searchEngine/weiboico.png', 'https://s.weibo.com/weibo?q={1}', 0, '2024-01-14 23:22:12', 1, '中国社交媒体平台,用户可以发布短文、图片和视频,关注他人并互动评论,是实时新闻、话题讨论和社交分享的');
  167. INSERT INTO search_engine (id, name, icon, url, sort, create_time, status, tips) VALUES (10, 'DuckDuckGo', '/static/searchEngine/DuckDuckGo.svg', 'https://duckduckgo.com/?t=h_&q={1}&ia=web', 96, '2024-01-15 21:37:44', 1, '注重隐私保护的搜索引擎,致力于不追踪用户个人信息,提供匿名、安全的搜索服务,受到关注的隐私倡导者青睐');