install.sql 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  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. )
  17. comment '卡片数据表';
  18. create table config
  19. (
  20. user_id int null,
  21. config json null
  22. );
  23. create index config_user_id_index
  24. on config (user_id);
  25. create table history
  26. (
  27. id bigint auto_increment
  28. primary key,
  29. user_id int null,
  30. link json null,
  31. constraint history_id_uindex
  32. unique (id)
  33. )
  34. comment 'link历史数据';
  35. create table link
  36. (
  37. user_id int null,
  38. update_time datetime null comment '更新时间',
  39. link json null
  40. );
  41. create table link_folder
  42. (
  43. id int auto_increment comment 'id'
  44. primary key,
  45. name varchar(50) null comment '分类名称',
  46. sort int default 0 null
  47. )
  48. comment '标签链接分类';
  49. create table linkstore
  50. (
  51. id int auto_increment
  52. primary key,
  53. name varchar(255) null,
  54. src varchar(255) null,
  55. url varchar(255) null,
  56. type varchar(20) default 'icon' null,
  57. size varchar(20) default '1x1' null,
  58. create_time datetime null,
  59. hot bigint default 0 null,
  60. area varchar(20) default '' null comment '专区',
  61. tips varchar(255) null comment '介绍',
  62. domain varchar(255) null,
  63. app int default 0 null comment '是否app',
  64. install_num int default 0 null comment '安装量',
  65. bgColor varchar(30) null comment '背景颜色',
  66. constraint linkStore_id_uindex
  67. unique (id)
  68. );
  69. create table note
  70. (
  71. id bigint auto_increment
  72. primary key,
  73. user_id bigint null,
  74. title varchar(50) null,
  75. text text null,
  76. create_time datetime null,
  77. update_time datetime null,
  78. weight int default 0 null,
  79. constraint note_id_uindex
  80. unique (id)
  81. );
  82. create index note_user_id_index
  83. on note (user_id);
  84. create table search_engine
  85. (
  86. id int auto_increment
  87. primary key,
  88. name varchar(50) null comment '名称',
  89. icon varchar(255) null comment '图标 128x128',
  90. url varchar(255) null comment '跳转url',
  91. sort int default 0 null comment '排序',
  92. create_time datetime null comment '添加时间',
  93. status int default 0 null comment '状态 0=关闭 1=启用',
  94. tips varchar(250) null comment '搜索引擎介绍'
  95. )
  96. comment '搜索引擎';
  97. create table setting
  98. (
  99. `keys` varchar(200) not null
  100. primary key,
  101. value text null
  102. );
  103. create table tabbar
  104. (
  105. user_id int null,
  106. tabs json null,
  107. update_time datetime null
  108. )
  109. comment '用户页脚信息';
  110. create table token
  111. (
  112. id bigint auto_increment
  113. primary key,
  114. user_id int null,
  115. token tinytext null,
  116. create_time int null,
  117. ip tinytext null,
  118. user_agent tinytext null,
  119. constraint token_id_uindex
  120. unique (id)
  121. );
  122. create table user
  123. (
  124. id int auto_increment
  125. primary key,
  126. mail varchar(50) null,
  127. password tinytext null,
  128. create_time datetime null,
  129. login_ip varchar(100) null comment '登录IP',
  130. register_ip varchar(100) null comment '注册IP',
  131. manager int default 0 null,
  132. login_fail_count int default 0 null,
  133. login_time datetime null comment '登录时间',
  134. constraint user_id_uindex
  135. unique (id),
  136. constraint user_mail_uindex
  137. unique (mail)
  138. );
  139. create table user_search_engine
  140. (
  141. user_id int not null
  142. primary key,
  143. list json null,
  144. constraint user_search_engine_pk
  145. unique (user_id)
  146. )
  147. comment '用户搜索引擎同步表';
  148. 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);
  149. 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);
  150. 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);
  151. 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);
  152. 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);
  153. 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);
  154. 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);
  155. 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);
  156. 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);
  157. 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, '中国领先的搜索引擎和互联网公司,提供全球最大的中文搜索引擎服务,同时涵盖在线地图、贴吧、知道等多个互');
  158. 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, '微软推出的搜索引擎,以直观的界面和优质搜索结果而闻名,提供全球范围内的多语言搜索服务');
  159. 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:全球最大的搜索引擎,以卓越的搜索算法、广告服务和多样化的产品而著称,成为互联网信息检索');
  160. 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, '中国领先的搜索引擎,致力于提供智能搜索和语音输入技术,以及多元化的互联网服务,深受用户喜爱');
  161. 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, '中国知名搜索引擎,注重用户隐私安全,提供全面的搜索服务,涵盖网页、图片、新闻等多个领域,致力于用户友');
  162. 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 和开发者资源的搜索引擎,为开发者提供快速准确的技术信息检索服务,支持多种编程');
  163. 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, '中国弹幕视频平台,以二次元文化为特色,提供丰富的动画、游戏、音乐等内容,用户可通过弹幕互动分享观感。');
  164. 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, '中国社交媒体平台,用户可以发布短文、图片和视频,关注他人并互动评论,是实时新闻、话题讨论和社交分享的');
  165. 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, '注重隐私保护的搜索引擎,致力于不追踪用户个人信息,提供匿名、安全的搜索服务,受到关注的隐私倡导者青睐');