install.sql 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. create table config
  2. (
  3. user_id int null,
  4. config json null
  5. );
  6. create table history
  7. (
  8. id bigint auto_increment
  9. primary key,
  10. user_id int null,
  11. link json null,
  12. constraint history_id_uindex
  13. unique (id)
  14. )
  15. comment 'link历史数据';
  16. create table link
  17. (
  18. user_id int null,
  19. link json null
  20. );
  21. create table link_folder
  22. (
  23. id int auto_increment comment 'id'
  24. primary key,
  25. name varchar(50) null comment '分类名称',
  26. sort int default 0 null
  27. )
  28. comment '标签链接分类';
  29. create table linkstore
  30. (
  31. id int auto_increment
  32. primary key,
  33. name varchar(255) null,
  34. src varchar(255) null,
  35. url varchar(255) null,
  36. type varchar(20) default 'icon' null,
  37. size varchar(20) default '1x1' null,
  38. create_time datetime null,
  39. hot bigint default 0 null,
  40. area varchar(20) default '' null comment '专区',
  41. tips varchar(255) null comment '介绍',
  42. domain varchar(255) null,
  43. app int default 0 null comment '是否app',
  44. install_num int default 0 null comment '安装量',
  45. constraint linkStore_id_uindex
  46. unique (id)
  47. );
  48. create table note
  49. (
  50. id bigint auto_increment
  51. primary key,
  52. user_id bigint null,
  53. title varchar(50) null,
  54. text text null,
  55. create_time datetime null,
  56. update_time datetime null,
  57. weight int default 0 null,
  58. constraint note_id_uindex
  59. unique (id)
  60. );
  61. create index note_user_id_index
  62. on note (user_id);
  63. create table setting
  64. (
  65. `keys` varchar(200) not null
  66. primary key,
  67. value text null
  68. );
  69. create table tabbar
  70. (
  71. user_id int null,
  72. tabs json null
  73. )
  74. comment '用户页脚信息';
  75. create table token
  76. (
  77. id bigint auto_increment
  78. primary key,
  79. user_id int null,
  80. token tinytext null,
  81. create_time int null,
  82. ip tinytext null,
  83. user_agent tinytext null,
  84. constraint token_id_uindex
  85. unique (id)
  86. );
  87. create table user
  88. (
  89. id int auto_increment
  90. primary key,
  91. mail varchar(50) null,
  92. password tinytext null,
  93. create_time datetime null,
  94. login_ip varchar(100) null comment '登录IP',
  95. register_ip varchar(100) null comment '注册IP',
  96. manager int default 0 null,
  97. login_fail_count int default 0 null,
  98. login_time datetime null comment '登录时间',
  99. constraint user_id_uindex
  100. unique (id),
  101. constraint user_mail_uindex
  102. unique (mail)
  103. );
  104. create table card
  105. (
  106. id int auto_increment
  107. primary key,
  108. name varchar(200) null,
  109. name_en varchar(200) null,
  110. status int default 0 null,
  111. version int default 0 null,
  112. tips varchar(255) null comment '说明',
  113. create_time datetime null comment '添加时间',
  114. src text null comment 'logo',
  115. url varchar(255) null comment '卡片地址',
  116. `window` varchar(255) null comment '窗口地址',
  117. update_time datetime null,
  118. install_num int default 0 null
  119. )
  120. comment '卡片数据表';
  121. 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);
  122. 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);
  123. 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);
  124. 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);
  125. 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);
  126. 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);
  127. 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);
  128. 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);
  129. 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);