diff --git a/sql/bot.sql b/sql/bot.sql new file mode 100644 index 0000000..bb55a58 --- /dev/null +++ b/sql/bot.sql @@ -0,0 +1,22 @@ +create table bot +( + id int auto_increment + primary key, + user_id int not null, + title varchar(100) null, + description varchar(300) null, + content varchar(10000) null, + rating int default 1500 null, + createtime datetime null, + modifytime datetime null, + constraint id + unique (id) +); + +INSERT INTO kob.bot (id, user_id, title, description, content, rating, createtime, modifytime) VALUES (18, 1, 'Bot 的标题', 'Bot 的描述', '标题的代码', 1500, '2023-02-22 22:23:47', '2023-02-22 22:23:47'); +INSERT INTO kob.bot (id, user_id, title, description, content, rating, createtime, modifytime) VALUES (19, 1, 'Bot 的标题', 'Bot 的描述', '标题的代码', 1500, '2023-02-22 22:24:52', '2023-02-22 22:24:52'); +INSERT INTO kob.bot (id, user_id, title, description, content, rating, createtime, modifytime) VALUES (20, 1, 'Bot 的标题', 'Bot 的描述', '标题的代码', 1500, '2023-02-22 22:24:58', '2023-02-22 22:24:58'); +INSERT INTO kob.bot (id, user_id, title, description, content, rating, createtime, modifytime) VALUES (21, 1, 'Bot 的标题', 'Bot 的描述', '标题的代码', 1500, '2023-02-22 22:25:09', '2023-02-22 22:25:09'); +INSERT INTO kob.bot (id, user_id, title, description, content, rating, createtime, modifytime) VALUES (22, 2, 'Bot 的标题', 'Bot 的描述', '标题的代码', 1500, '2023-02-22 22:25:19', '2023-02-22 22:25:19'); +INSERT INTO kob.bot (id, user_id, title, description, content, rating, createtime, modifytime) VALUES (23, 2, 'Bot 的标题', 'Bot 的描述', '标题的代码', 1500, '2023-02-22 22:25:32', '2023-02-22 22:25:32'); +INSERT INTO kob.bot (id, user_id, title, description, content, rating, createtime, modifytime) VALUES (24, 2, 'Bot 的标题新24', 'Bot 的描述24', '标题的代码24', 1500, '2023-02-22 22:27:19', '2023-02-22 22:33:21'); diff --git a/sql/user.sql b/sql/user.sql new file mode 100644 index 0000000..684b4be --- /dev/null +++ b/sql/user.sql @@ -0,0 +1,17 @@ +create table user +( + id int auto_increment + primary key, + username varchar(100) null, + password varchar(100) null, + photo varchar(1000) null, + constraint id + unique (id) +); + +INSERT INTO kob.user (id, username, password, photo) VALUES (1, 'flykhan', '$2a$10$QFuXnHMmxwjRZTiqh/n5YOAuubzBd6DrVJ2dGGZ/lNJjgrGx1S7M.', 'https://cdn.acwing.com/media/user/profile/photo/253652_lg_e3d8435b66.jpg'); +INSERT INTO kob.user (id, username, password, photo) VALUES (2, 'bb', '$2a$10$dTcJdfIBzJeESHSnr.f0.ugIXmhIcyQAdIxMIt1iF.WsJqojf/Ynu', 'https://img.ddtouxiang.com/upload/touxiang/20230220/022022230820.jpg'); +INSERT INTO kob.user (id, username, password, photo) VALUES (3, 'cc', '$2a$10$UDah/ZMGAhFPtJy4axDt4.coTvw1JzCqd6PNk.IP5sgW98kVsBK.6', 'https://img.ddtouxiang.com/upload/touxiang/20230220/022022230843.jpeg'); +INSERT INTO kob.user (id, username, password, photo) VALUES (4, 'ccs', '$2a$10$NCLtNezbIwKjSoCXCf258eL4dIa7EhRrNWzsa4SGiLNz3gL79M69q', 'https://cdn.acwing.com/media/user/profile/photo/253652_lg_e3d8435b66.jpg'); +INSERT INTO kob.user (id, username, password, photo) VALUES (5, 'wws', '$2a$10$rJsaZpMi7KlWp6I6cQRlFO7QCK2ObzeVaAMApZqWWN0NHzg9eERKa', 'https://cdn.acwing.com/media/user/profile/photo/253652_lg_e3d8435b66.jpg'); +INSERT INTO kob.user (id, username, password, photo) VALUES (6, 'dd', '$2a$10$dSk83a6Q8UK0YaFfCVmeNOhg3Z7PuUdUOyggKr.ub0dgKTUx/GFXm', 'https://cdn.acwing.com/media/user/profile/photo/253652_lg_e3d8435b66.jpg');