You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
783 lines
47 KiB
783 lines
47 KiB
/*
|
|
Navicat Premium Data Transfer
|
|
|
|
Source Server : localhost连接
|
|
Source Server Type : MySQL
|
|
Source Server Version : 50737
|
|
Source Host : localhost:3306
|
|
Source Schema : python_team
|
|
|
|
Target Server Type : MySQL
|
|
Target Server Version : 50737
|
|
File Encoding : 65001
|
|
|
|
Date: 04/02/2024 17:29:54
|
|
*/
|
|
|
|
SET NAMES utf8mb4;
|
|
SET FOREIGN_KEY_CHECKS = 0;
|
|
|
|
-- ----------------------------
|
|
-- Table structure for auth_group
|
|
-- ----------------------------
|
|
DROP TABLE IF EXISTS `auth_group`;
|
|
CREATE TABLE `auth_group` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`name` varchar(150) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
|
|
PRIMARY KEY (`id`) USING BTREE,
|
|
UNIQUE INDEX `name`(`name`) USING BTREE
|
|
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
|
|
|
|
-- ----------------------------
|
|
-- Records of auth_group
|
|
-- ----------------------------
|
|
|
|
-- ----------------------------
|
|
-- Table structure for auth_group_permissions
|
|
-- ----------------------------
|
|
DROP TABLE IF EXISTS `auth_group_permissions`;
|
|
CREATE TABLE `auth_group_permissions` (
|
|
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
|
`group_id` int(11) NOT NULL,
|
|
`permission_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`) USING BTREE,
|
|
UNIQUE INDEX `auth_group_permissions_group_id_permission_id_0cd325b0_uniq`(`group_id`, `permission_id`) USING BTREE,
|
|
INDEX `auth_group_permissio_permission_id_84c5c92e_fk_auth_perm`(`permission_id`) USING BTREE,
|
|
CONSTRAINT `auth_group_permissio_permission_id_84c5c92e_fk_auth_perm` FOREIGN KEY (`permission_id`) REFERENCES `auth_permission` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
|
|
CONSTRAINT `auth_group_permissions_group_id_b120cbf9_fk_auth_group_id` FOREIGN KEY (`group_id`) REFERENCES `auth_group` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT
|
|
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
|
|
|
|
-- ----------------------------
|
|
-- Records of auth_group_permissions
|
|
-- ----------------------------
|
|
|
|
-- ----------------------------
|
|
-- Table structure for auth_permission
|
|
-- ----------------------------
|
|
DROP TABLE IF EXISTS `auth_permission`;
|
|
CREATE TABLE `auth_permission` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
|
|
`content_type_id` int(11) NOT NULL,
|
|
`codename` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
|
|
PRIMARY KEY (`id`) USING BTREE,
|
|
UNIQUE INDEX `auth_permission_content_type_id_codename_01ab375a_uniq`(`content_type_id`, `codename`) USING BTREE,
|
|
CONSTRAINT `auth_permission_content_type_id_2f476e4b_fk_django_co` FOREIGN KEY (`content_type_id`) REFERENCES `django_content_type` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT
|
|
) ENGINE = InnoDB AUTO_INCREMENT = 85 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
|
|
|
|
-- ----------------------------
|
|
-- Records of auth_permission
|
|
-- ----------------------------
|
|
INSERT INTO `auth_permission` VALUES (1, 'Can add log entry', 1, 'add_logentry');
|
|
INSERT INTO `auth_permission` VALUES (2, 'Can change log entry', 1, 'change_logentry');
|
|
INSERT INTO `auth_permission` VALUES (3, 'Can delete log entry', 1, 'delete_logentry');
|
|
INSERT INTO `auth_permission` VALUES (4, 'Can view log entry', 1, 'view_logentry');
|
|
INSERT INTO `auth_permission` VALUES (5, 'Can add permission', 2, 'add_permission');
|
|
INSERT INTO `auth_permission` VALUES (6, 'Can change permission', 2, 'change_permission');
|
|
INSERT INTO `auth_permission` VALUES (7, 'Can delete permission', 2, 'delete_permission');
|
|
INSERT INTO `auth_permission` VALUES (8, 'Can view permission', 2, 'view_permission');
|
|
INSERT INTO `auth_permission` VALUES (9, 'Can add group', 3, 'add_group');
|
|
INSERT INTO `auth_permission` VALUES (10, 'Can change group', 3, 'change_group');
|
|
INSERT INTO `auth_permission` VALUES (11, 'Can delete group', 3, 'delete_group');
|
|
INSERT INTO `auth_permission` VALUES (12, 'Can view group', 3, 'view_group');
|
|
INSERT INTO `auth_permission` VALUES (13, 'Can add user', 4, 'add_user');
|
|
INSERT INTO `auth_permission` VALUES (14, 'Can change user', 4, 'change_user');
|
|
INSERT INTO `auth_permission` VALUES (15, 'Can delete user', 4, 'delete_user');
|
|
INSERT INTO `auth_permission` VALUES (16, 'Can view user', 4, 'view_user');
|
|
INSERT INTO `auth_permission` VALUES (17, 'Can add content type', 5, 'add_contenttype');
|
|
INSERT INTO `auth_permission` VALUES (18, 'Can change content type', 5, 'change_contenttype');
|
|
INSERT INTO `auth_permission` VALUES (19, 'Can delete content type', 5, 'delete_contenttype');
|
|
INSERT INTO `auth_permission` VALUES (20, 'Can view content type', 5, 'view_contenttype');
|
|
INSERT INTO `auth_permission` VALUES (21, 'Can add session', 6, 'add_session');
|
|
INSERT INTO `auth_permission` VALUES (22, 'Can change session', 6, 'change_session');
|
|
INSERT INTO `auth_permission` VALUES (23, 'Can delete session', 6, 'delete_session');
|
|
INSERT INTO `auth_permission` VALUES (24, 'Can view session', 6, 'view_session');
|
|
INSERT INTO `auth_permission` VALUES (25, 'Can add ad', 7, 'add_ad');
|
|
INSERT INTO `auth_permission` VALUES (26, 'Can change ad', 7, 'change_ad');
|
|
INSERT INTO `auth_permission` VALUES (27, 'Can delete ad', 7, 'delete_ad');
|
|
INSERT INTO `auth_permission` VALUES (28, 'Can view ad', 7, 'view_ad');
|
|
INSERT INTO `auth_permission` VALUES (29, 'Can add classification', 8, 'add_classification');
|
|
INSERT INTO `auth_permission` VALUES (30, 'Can change classification', 8, 'change_classification');
|
|
INSERT INTO `auth_permission` VALUES (31, 'Can delete classification', 8, 'delete_classification');
|
|
INSERT INTO `auth_permission` VALUES (32, 'Can view classification', 8, 'view_classification');
|
|
INSERT INTO `auth_permission` VALUES (33, 'Can add error log', 9, 'add_errorlog');
|
|
INSERT INTO `auth_permission` VALUES (34, 'Can change error log', 9, 'change_errorlog');
|
|
INSERT INTO `auth_permission` VALUES (35, 'Can delete error log', 9, 'delete_errorlog');
|
|
INSERT INTO `auth_permission` VALUES (36, 'Can view error log', 9, 'view_errorlog');
|
|
INSERT INTO `auth_permission` VALUES (37, 'Can add login log', 10, 'add_loginlog');
|
|
INSERT INTO `auth_permission` VALUES (38, 'Can change login log', 10, 'change_loginlog');
|
|
INSERT INTO `auth_permission` VALUES (39, 'Can delete login log', 10, 'delete_loginlog');
|
|
INSERT INTO `auth_permission` VALUES (40, 'Can view login log', 10, 'view_loginlog');
|
|
INSERT INTO `auth_permission` VALUES (41, 'Can add notice', 11, 'add_notice');
|
|
INSERT INTO `auth_permission` VALUES (42, 'Can change notice', 11, 'change_notice');
|
|
INSERT INTO `auth_permission` VALUES (43, 'Can delete notice', 11, 'delete_notice');
|
|
INSERT INTO `auth_permission` VALUES (44, 'Can view notice', 11, 'view_notice');
|
|
INSERT INTO `auth_permission` VALUES (45, 'Can add op log', 12, 'add_oplog');
|
|
INSERT INTO `auth_permission` VALUES (46, 'Can change op log', 12, 'change_oplog');
|
|
INSERT INTO `auth_permission` VALUES (47, 'Can delete op log', 12, 'delete_oplog');
|
|
INSERT INTO `auth_permission` VALUES (48, 'Can view op log', 12, 'view_oplog');
|
|
INSERT INTO `auth_permission` VALUES (49, 'Can add tag', 13, 'add_tag');
|
|
INSERT INTO `auth_permission` VALUES (50, 'Can change tag', 13, 'change_tag');
|
|
INSERT INTO `auth_permission` VALUES (51, 'Can delete tag', 13, 'delete_tag');
|
|
INSERT INTO `auth_permission` VALUES (52, 'Can view tag', 13, 'view_tag');
|
|
INSERT INTO `auth_permission` VALUES (53, 'Can add user', 14, 'add_user');
|
|
INSERT INTO `auth_permission` VALUES (54, 'Can change user', 14, 'change_user');
|
|
INSERT INTO `auth_permission` VALUES (55, 'Can delete user', 14, 'delete_user');
|
|
INSERT INTO `auth_permission` VALUES (56, 'Can view user', 14, 'view_user');
|
|
INSERT INTO `auth_permission` VALUES (57, 'Can add thing', 15, 'add_thing');
|
|
INSERT INTO `auth_permission` VALUES (58, 'Can change thing', 15, 'change_thing');
|
|
INSERT INTO `auth_permission` VALUES (59, 'Can delete thing', 15, 'delete_thing');
|
|
INSERT INTO `auth_permission` VALUES (60, 'Can view thing', 15, 'view_thing');
|
|
INSERT INTO `auth_permission` VALUES (61, 'Can add record', 16, 'add_record');
|
|
INSERT INTO `auth_permission` VALUES (62, 'Can change record', 16, 'change_record');
|
|
INSERT INTO `auth_permission` VALUES (63, 'Can delete record', 16, 'delete_record');
|
|
INSERT INTO `auth_permission` VALUES (64, 'Can view record', 16, 'view_record');
|
|
INSERT INTO `auth_permission` VALUES (65, 'Can add order log', 17, 'add_orderlog');
|
|
INSERT INTO `auth_permission` VALUES (66, 'Can change order log', 17, 'change_orderlog');
|
|
INSERT INTO `auth_permission` VALUES (67, 'Can delete order log', 17, 'delete_orderlog');
|
|
INSERT INTO `auth_permission` VALUES (68, 'Can view order log', 17, 'view_orderlog');
|
|
INSERT INTO `auth_permission` VALUES (69, 'Can add order', 18, 'add_order');
|
|
INSERT INTO `auth_permission` VALUES (70, 'Can change order', 18, 'change_order');
|
|
INSERT INTO `auth_permission` VALUES (71, 'Can delete order', 18, 'delete_order');
|
|
INSERT INTO `auth_permission` VALUES (72, 'Can view order', 18, 'view_order');
|
|
INSERT INTO `auth_permission` VALUES (73, 'Can add comment', 19, 'add_comment');
|
|
INSERT INTO `auth_permission` VALUES (74, 'Can change comment', 19, 'change_comment');
|
|
INSERT INTO `auth_permission` VALUES (75, 'Can delete comment', 19, 'delete_comment');
|
|
INSERT INTO `auth_permission` VALUES (76, 'Can view comment', 19, 'view_comment');
|
|
INSERT INTO `auth_permission` VALUES (77, 'Can add banner', 20, 'add_banner');
|
|
INSERT INTO `auth_permission` VALUES (78, 'Can change banner', 20, 'change_banner');
|
|
INSERT INTO `auth_permission` VALUES (79, 'Can delete banner', 20, 'delete_banner');
|
|
INSERT INTO `auth_permission` VALUES (80, 'Can view banner', 20, 'view_banner');
|
|
INSERT INTO `auth_permission` VALUES (81, 'Can add address', 21, 'add_address');
|
|
INSERT INTO `auth_permission` VALUES (82, 'Can change address', 21, 'change_address');
|
|
INSERT INTO `auth_permission` VALUES (83, 'Can delete address', 21, 'delete_address');
|
|
INSERT INTO `auth_permission` VALUES (84, 'Can view address', 21, 'view_address');
|
|
|
|
-- ----------------------------
|
|
-- Table structure for auth_user
|
|
-- ----------------------------
|
|
DROP TABLE IF EXISTS `auth_user`;
|
|
CREATE TABLE `auth_user` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`password` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
|
|
`last_login` datetime(6) NULL DEFAULT NULL,
|
|
`is_superuser` tinyint(1) NOT NULL,
|
|
`username` varchar(150) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
|
|
`first_name` varchar(150) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
|
|
`last_name` varchar(150) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
|
|
`email` varchar(254) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
|
|
`is_staff` tinyint(1) NOT NULL,
|
|
`is_active` tinyint(1) NOT NULL,
|
|
`date_joined` datetime(6) NOT NULL,
|
|
PRIMARY KEY (`id`) USING BTREE,
|
|
UNIQUE INDEX `username`(`username`) USING BTREE
|
|
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
|
|
|
|
-- ----------------------------
|
|
-- Records of auth_user
|
|
-- ----------------------------
|
|
|
|
-- ----------------------------
|
|
-- Table structure for auth_user_groups
|
|
-- ----------------------------
|
|
DROP TABLE IF EXISTS `auth_user_groups`;
|
|
CREATE TABLE `auth_user_groups` (
|
|
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
|
`user_id` int(11) NOT NULL,
|
|
`group_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`) USING BTREE,
|
|
UNIQUE INDEX `auth_user_groups_user_id_group_id_94350c0c_uniq`(`user_id`, `group_id`) USING BTREE,
|
|
INDEX `auth_user_groups_group_id_97559544_fk_auth_group_id`(`group_id`) USING BTREE,
|
|
CONSTRAINT `auth_user_groups_group_id_97559544_fk_auth_group_id` FOREIGN KEY (`group_id`) REFERENCES `auth_group` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
|
|
CONSTRAINT `auth_user_groups_user_id_6a12ed8b_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT
|
|
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
|
|
|
|
-- ----------------------------
|
|
-- Records of auth_user_groups
|
|
-- ----------------------------
|
|
|
|
-- ----------------------------
|
|
-- Table structure for auth_user_user_permissions
|
|
-- ----------------------------
|
|
DROP TABLE IF EXISTS `auth_user_user_permissions`;
|
|
CREATE TABLE `auth_user_user_permissions` (
|
|
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
|
`user_id` int(11) NOT NULL,
|
|
`permission_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`) USING BTREE,
|
|
UNIQUE INDEX `auth_user_user_permissions_user_id_permission_id_14a6b632_uniq`(`user_id`, `permission_id`) USING BTREE,
|
|
INDEX `auth_user_user_permi_permission_id_1fbb5f2c_fk_auth_perm`(`permission_id`) USING BTREE,
|
|
CONSTRAINT `auth_user_user_permi_permission_id_1fbb5f2c_fk_auth_perm` FOREIGN KEY (`permission_id`) REFERENCES `auth_permission` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
|
|
CONSTRAINT `auth_user_user_permissions_user_id_a95ead1b_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT
|
|
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
|
|
|
|
-- ----------------------------
|
|
-- Records of auth_user_user_permissions
|
|
-- ----------------------------
|
|
|
|
-- ----------------------------
|
|
-- Table structure for b_ad
|
|
-- ----------------------------
|
|
DROP TABLE IF EXISTS `b_ad`;
|
|
CREATE TABLE `b_ad` (
|
|
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
|
`image` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
|
`link` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
|
`create_time` datetime(6) NULL DEFAULT NULL,
|
|
PRIMARY KEY (`id`) USING BTREE
|
|
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
|
|
|
|
-- ----------------------------
|
|
-- Records of b_ad
|
|
-- ----------------------------
|
|
INSERT INTO `b_ad` VALUES (1, '', 'http://www.baidu.com111', '2024-02-04 17:26:04.553627');
|
|
|
|
-- ----------------------------
|
|
-- Table structure for b_address
|
|
-- ----------------------------
|
|
DROP TABLE IF EXISTS `b_address`;
|
|
CREATE TABLE `b_address` (
|
|
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
|
`name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
|
`mobile` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
|
`desc` varchar(300) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
|
`default` tinyint(1) NULL DEFAULT NULL,
|
|
`create_time` datetime(6) NULL DEFAULT NULL,
|
|
`user_id` bigint(20) NULL DEFAULT NULL,
|
|
PRIMARY KEY (`id`) USING BTREE,
|
|
INDEX `b_address_user_id_a37a8d6a_fk_b_user_id`(`user_id`) USING BTREE,
|
|
CONSTRAINT `b_address_user_id_a37a8d6a_fk_b_user_id` FOREIGN KEY (`user_id`) REFERENCES `b_user` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT
|
|
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
|
|
|
|
-- ----------------------------
|
|
-- Records of b_address
|
|
-- ----------------------------
|
|
|
|
-- ----------------------------
|
|
-- Table structure for b_banner
|
|
-- ----------------------------
|
|
DROP TABLE IF EXISTS `b_banner`;
|
|
CREATE TABLE `b_banner` (
|
|
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
|
`image` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
|
`create_time` datetime(6) NULL DEFAULT NULL,
|
|
`thing_id` bigint(20) NULL DEFAULT NULL,
|
|
PRIMARY KEY (`id`) USING BTREE,
|
|
INDEX `b_banner_thing_id_3f307d00_fk_b_thing_id`(`thing_id`) USING BTREE,
|
|
CONSTRAINT `b_banner_thing_id_3f307d00_fk_b_thing_id` FOREIGN KEY (`thing_id`) REFERENCES `b_thing` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT
|
|
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
|
|
|
|
-- ----------------------------
|
|
-- Records of b_banner
|
|
-- ----------------------------
|
|
|
|
-- ----------------------------
|
|
-- Table structure for b_classification
|
|
-- ----------------------------
|
|
DROP TABLE IF EXISTS `b_classification`;
|
|
CREATE TABLE `b_classification` (
|
|
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
|
`title` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
|
`create_time` datetime(6) NULL DEFAULT NULL,
|
|
PRIMARY KEY (`id`) USING BTREE
|
|
) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
|
|
|
|
-- ----------------------------
|
|
-- Records of b_classification
|
|
-- ----------------------------
|
|
INSERT INTO `b_classification` VALUES (1, '体育类', '2024-02-04 16:39:13.697593');
|
|
INSERT INTO `b_classification` VALUES (2, '运动类', '2024-02-04 16:39:19.397394');
|
|
INSERT INTO `b_classification` VALUES (3, '文艺类', '2024-02-04 16:39:24.633287');
|
|
INSERT INTO `b_classification` VALUES (4, '电子类', '2024-02-04 16:39:59.841608');
|
|
|
|
-- ----------------------------
|
|
-- Table structure for b_comment
|
|
-- ----------------------------
|
|
DROP TABLE IF EXISTS `b_comment`;
|
|
CREATE TABLE `b_comment` (
|
|
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
|
`content` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
|
`comment_time` datetime(6) NULL DEFAULT NULL,
|
|
`like_count` int(11) NOT NULL,
|
|
`thing_id` bigint(20) NULL DEFAULT NULL,
|
|
`user_id` bigint(20) NULL DEFAULT NULL,
|
|
PRIMARY KEY (`id`) USING BTREE,
|
|
INDEX `b_comment_thing_id_57ab492b_fk_b_thing_id`(`thing_id`) USING BTREE,
|
|
INDEX `b_comment_user_id_46f0670f_fk_b_user_id`(`user_id`) USING BTREE,
|
|
CONSTRAINT `b_comment_thing_id_57ab492b_fk_b_thing_id` FOREIGN KEY (`thing_id`) REFERENCES `b_thing` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
|
|
CONSTRAINT `b_comment_user_id_46f0670f_fk_b_user_id` FOREIGN KEY (`user_id`) REFERENCES `b_user` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT
|
|
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
|
|
|
|
-- ----------------------------
|
|
-- Records of b_comment
|
|
-- ----------------------------
|
|
INSERT INTO `b_comment` VALUES (1, 'dasdf', '2024-02-04 16:58:15.144159', 1, 5, 4);
|
|
INSERT INTO `b_comment` VALUES (2, 'dfasdfff', '2024-02-04 16:58:17.850901', 1, 5, 4);
|
|
INSERT INTO `b_comment` VALUES (3, '的地方211', '2024-02-04 17:00:55.346951', 2, 5, 4);
|
|
|
|
-- ----------------------------
|
|
-- Table structure for b_error_log
|
|
-- ----------------------------
|
|
DROP TABLE IF EXISTS `b_error_log`;
|
|
CREATE TABLE `b_error_log` (
|
|
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
|
`ip` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
|
`url` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
|
`method` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
|
`content` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
|
`log_time` datetime(6) NULL DEFAULT NULL,
|
|
PRIMARY KEY (`id`) USING BTREE
|
|
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
|
|
|
|
-- ----------------------------
|
|
-- Records of b_error_log
|
|
-- ----------------------------
|
|
|
|
-- ----------------------------
|
|
-- Table structure for b_login_log
|
|
-- ----------------------------
|
|
DROP TABLE IF EXISTS `b_login_log`;
|
|
CREATE TABLE `b_login_log` (
|
|
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
|
`username` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
|
`ip` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
|
`ua` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
|
`log_time` datetime(6) NULL DEFAULT NULL,
|
|
PRIMARY KEY (`id`) USING BTREE
|
|
) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
|
|
|
|
-- ----------------------------
|
|
-- Records of b_login_log
|
|
-- ----------------------------
|
|
INSERT INTO `b_login_log` VALUES (1, 'admin', '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36', '2024-02-04 16:36:19.239685');
|
|
INSERT INTO `b_login_log` VALUES (2, 'aaa', '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36', '2024-02-04 16:57:10.644691');
|
|
INSERT INTO `b_login_log` VALUES (3, 'admin123', '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36', '2024-02-04 17:18:37.112379');
|
|
INSERT INTO `b_login_log` VALUES (4, 'admin', '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36', '2024-02-04 17:25:59.480266');
|
|
INSERT INTO `b_login_log` VALUES (5, 'aaa', '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36', '2024-02-04 17:27:08.481837');
|
|
|
|
-- ----------------------------
|
|
-- Table structure for b_notice
|
|
-- ----------------------------
|
|
DROP TABLE IF EXISTS `b_notice`;
|
|
CREATE TABLE `b_notice` (
|
|
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
|
`title` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
|
`content` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
|
`create_time` datetime(6) NULL DEFAULT NULL,
|
|
PRIMARY KEY (`id`) USING BTREE
|
|
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
|
|
|
|
-- ----------------------------
|
|
-- Records of b_notice
|
|
-- ----------------------------
|
|
INSERT INTO `b_notice` VALUES (1, 'abcd', '欢迎申请', '2024-02-04 17:26:10.000000');
|
|
INSERT INTO `b_notice` VALUES (2, '新建社团123', '安德森对方', '2024-02-04 17:26:20.948813');
|
|
|
|
-- ----------------------------
|
|
-- Table structure for b_op_log
|
|
-- ----------------------------
|
|
DROP TABLE IF EXISTS `b_op_log`;
|
|
CREATE TABLE `b_op_log` (
|
|
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
|
`re_ip` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
|
`re_time` datetime(6) NULL DEFAULT NULL,
|
|
`re_url` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
|
`re_method` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
|
`re_content` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
|
`access_time` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
|
PRIMARY KEY (`id`) USING BTREE
|
|
) ENGINE = InnoDB AUTO_INCREMENT = 25 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
|
|
|
|
-- ----------------------------
|
|
-- Records of b_op_log
|
|
-- ----------------------------
|
|
INSERT INTO `b_op_log` VALUES (1, '127.0.0.1', '2024-02-04 17:25:16.003630', '/myapp/admin/loginLog/list', 'GET', NULL, '25');
|
|
INSERT INTO `b_op_log` VALUES (2, '127.0.0.1', '2024-02-04 17:25:16.125409', '/myapp/admin/opLog/list', 'GET', NULL, '28');
|
|
INSERT INTO `b_op_log` VALUES (3, '127.0.0.1', '2024-02-04 17:25:16.735706', '/myapp/admin/errorLog/list', 'GET', NULL, '4');
|
|
INSERT INTO `b_op_log` VALUES (4, '127.0.0.1', '2024-02-04 17:25:17.091962', '/myapp/admin/opLog/list', 'GET', NULL, '28');
|
|
INSERT INTO `b_op_log` VALUES (5, '127.0.0.1', '2024-02-04 17:25:17.996686', '/myapp/admin/comment/list', 'GET', NULL, '24');
|
|
INSERT INTO `b_op_log` VALUES (6, '127.0.0.1', '2024-02-04 17:25:18.508752', '/myapp/admin/tag/list', 'GET', NULL, '28');
|
|
INSERT INTO `b_op_log` VALUES (7, '127.0.0.1', '2024-02-04 17:25:18.995965', '/myapp/admin/order/list', 'GET', NULL, '25');
|
|
INSERT INTO `b_op_log` VALUES (8, '127.0.0.1', '2024-02-04 17:25:19.517164', '/myapp/admin/classification/list', 'GET', NULL, '25');
|
|
INSERT INTO `b_op_log` VALUES (9, '127.0.0.1', '2024-02-04 17:25:19.951784', '/myapp/admin/order/list', 'GET', NULL, '8');
|
|
INSERT INTO `b_op_log` VALUES (10, '127.0.0.1', '2024-02-04 17:25:20.517535', '/myapp/admin/tag/list', 'GET', NULL, '17');
|
|
INSERT INTO `b_op_log` VALUES (11, '127.0.0.1', '2024-02-04 17:25:20.899065', '/myapp/admin/comment/list', 'GET', NULL, '7');
|
|
INSERT INTO `b_op_log` VALUES (12, '127.0.0.1', '2024-02-04 17:25:21.391965', '/myapp/admin/user/list', 'GET', NULL, '20');
|
|
INSERT INTO `b_op_log` VALUES (13, '127.0.0.1', '2024-02-04 17:25:21.677749', '/myapp/admin/comment/list', 'GET', NULL, '5');
|
|
INSERT INTO `b_op_log` VALUES (14, '127.0.0.1', '2024-02-04 17:25:24.066175', '/myapp/index/comment/list', 'GET', NULL, '3');
|
|
INSERT INTO `b_op_log` VALUES (15, '127.0.0.1', '2024-02-04 17:25:24.083944', '/myapp/index/comment/list', 'GET', NULL, '22');
|
|
INSERT INTO `b_op_log` VALUES (16, '127.0.0.1', '2024-02-04 17:25:24.084992', '/myapp/index/comment/list', 'GET', NULL, '23');
|
|
INSERT INTO `b_op_log` VALUES (17, '127.0.0.1', '2024-02-04 17:25:24.090525', '/myapp/index/comment/list', 'GET', NULL, '29');
|
|
INSERT INTO `b_op_log` VALUES (18, '127.0.0.1', '2024-02-04 17:25:24.094806', '/upload/cover/1707036810262.jpeg', 'GET', NULL, '1');
|
|
INSERT INTO `b_op_log` VALUES (19, '127.0.0.1', '2024-02-04 17:25:24.109564', '/upload/cover/1707036756214.jpeg', 'GET', NULL, '1');
|
|
INSERT INTO `b_op_log` VALUES (20, '127.0.0.1', '2024-02-04 17:25:24.109564', '/upload/cover/1707036858212.jpeg', 'GET', NULL, '0');
|
|
INSERT INTO `b_op_log` VALUES (21, '127.0.0.1', '2024-02-04 17:25:24.109564', '/upload/cover/1707036756214.jpeg', 'GET', NULL, '0');
|
|
INSERT INTO `b_op_log` VALUES (22, '127.0.0.1', '2024-02-04 17:25:24.110577', '/upload/cover/1707036638009.jpeg', 'GET', NULL, '1');
|
|
INSERT INTO `b_op_log` VALUES (23, '127.0.0.1', '2024-02-04 17:25:24.110577', '/upload/cover/1707036701716.jpeg', 'GET', NULL, '0');
|
|
INSERT INTO `b_op_log` VALUES (24, '127.0.0.1', '2024-02-04 17:25:27.073752', '/myapp/admin/opLog/list', 'GET', NULL, '4');
|
|
|
|
-- ----------------------------
|
|
-- Table structure for b_order
|
|
-- ----------------------------
|
|
DROP TABLE IF EXISTS `b_order`;
|
|
CREATE TABLE `b_order` (
|
|
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
|
`order_number` varchar(13) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
|
`count` int(11) NOT NULL,
|
|
`status` varchar(2) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
|
`order_time` datetime(6) NULL DEFAULT NULL,
|
|
`pay_time` datetime(6) NULL DEFAULT NULL,
|
|
`receiver_name` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
|
`receiver_address` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
|
`receiver_phone` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
|
`remark` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
|
`thing_id` bigint(20) NULL DEFAULT NULL,
|
|
`user_id` bigint(20) NULL DEFAULT NULL,
|
|
PRIMARY KEY (`id`) USING BTREE,
|
|
INDEX `b_order_thing_id_4e345e2c_fk_b_thing_id`(`thing_id`) USING BTREE,
|
|
INDEX `b_order_user_id_64854046_fk_b_user_id`(`user_id`) USING BTREE,
|
|
CONSTRAINT `b_order_thing_id_4e345e2c_fk_b_thing_id` FOREIGN KEY (`thing_id`) REFERENCES `b_thing` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
|
|
CONSTRAINT `b_order_user_id_64854046_fk_b_user_id` FOREIGN KEY (`user_id`) REFERENCES `b_user` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT
|
|
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
|
|
|
|
-- ----------------------------
|
|
-- Records of b_order
|
|
-- ----------------------------
|
|
INSERT INTO `b_order` VALUES (1, '1707037383809', 1, '2', '2024-02-04 17:03:03.811334', NULL, NULL, NULL, NULL, NULL, 5, 4);
|
|
INSERT INTO `b_order` VALUES (2, '1707037601900', 1, '2', '2024-02-04 17:06:41.903354', NULL, NULL, NULL, NULL, NULL, 5, 4);
|
|
INSERT INTO `b_order` VALUES (3, '1707038198529', 1, '7', '2024-02-04 17:16:38.534185', NULL, NULL, NULL, NULL, NULL, 1, 4);
|
|
|
|
-- ----------------------------
|
|
-- Table structure for b_order_log
|
|
-- ----------------------------
|
|
DROP TABLE IF EXISTS `b_order_log`;
|
|
CREATE TABLE `b_order_log` (
|
|
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
|
`action` varchar(2) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
|
`log_time` datetime(6) NULL DEFAULT NULL,
|
|
`thing_id` bigint(20) NULL DEFAULT NULL,
|
|
`user_id` bigint(20) NULL DEFAULT NULL,
|
|
PRIMARY KEY (`id`) USING BTREE,
|
|
INDEX `b_order_log_thing_id_7306f624_fk_b_thing_id`(`thing_id`) USING BTREE,
|
|
INDEX `b_order_log_user_id_1003e839_fk_b_user_id`(`user_id`) USING BTREE,
|
|
CONSTRAINT `b_order_log_thing_id_7306f624_fk_b_thing_id` FOREIGN KEY (`thing_id`) REFERENCES `b_thing` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
|
|
CONSTRAINT `b_order_log_user_id_1003e839_fk_b_user_id` FOREIGN KEY (`user_id`) REFERENCES `b_user` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT
|
|
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
|
|
|
|
-- ----------------------------
|
|
-- Records of b_order_log
|
|
-- ----------------------------
|
|
|
|
-- ----------------------------
|
|
-- Table structure for b_record
|
|
-- ----------------------------
|
|
DROP TABLE IF EXISTS `b_record`;
|
|
CREATE TABLE `b_record` (
|
|
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
|
`title` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
|
`record_time` datetime(6) NULL DEFAULT NULL,
|
|
`classification_id` bigint(20) NULL DEFAULT NULL,
|
|
`thing_id` bigint(20) NULL DEFAULT NULL,
|
|
`user_id` bigint(20) NULL DEFAULT NULL,
|
|
PRIMARY KEY (`id`) USING BTREE,
|
|
INDEX `b_record_classification_id_52591cc9_fk_b_classification_id`(`classification_id`) USING BTREE,
|
|
INDEX `b_record_thing_id_d8e773c0_fk_b_thing_id`(`thing_id`) USING BTREE,
|
|
INDEX `b_record_user_id_7e5958b0_fk_b_user_id`(`user_id`) USING BTREE,
|
|
CONSTRAINT `b_record_classification_id_52591cc9_fk_b_classification_id` FOREIGN KEY (`classification_id`) REFERENCES `b_classification` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
|
|
CONSTRAINT `b_record_thing_id_d8e773c0_fk_b_thing_id` FOREIGN KEY (`thing_id`) REFERENCES `b_thing` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
|
|
CONSTRAINT `b_record_user_id_7e5958b0_fk_b_user_id` FOREIGN KEY (`user_id`) REFERENCES `b_user` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT
|
|
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
|
|
|
|
-- ----------------------------
|
|
-- Records of b_record
|
|
-- ----------------------------
|
|
|
|
-- ----------------------------
|
|
-- Table structure for b_tag
|
|
-- ----------------------------
|
|
DROP TABLE IF EXISTS `b_tag`;
|
|
CREATE TABLE `b_tag` (
|
|
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
|
`title` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
|
`create_time` datetime(6) NULL DEFAULT NULL,
|
|
PRIMARY KEY (`id`) USING BTREE
|
|
) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
|
|
|
|
-- ----------------------------
|
|
-- Records of b_tag
|
|
-- ----------------------------
|
|
INSERT INTO `b_tag` VALUES (1, '美女多', '2024-02-04 16:38:34.240261');
|
|
INSERT INTO `b_tag` VALUES (2, '高材生', '2024-02-04 16:38:41.618448');
|
|
INSERT INTO `b_tag` VALUES (3, '帅哥多', '2024-02-04 16:38:48.542216');
|
|
INSERT INTO `b_tag` VALUES (4, '读书', '2024-02-04 16:38:57.500728');
|
|
INSERT INTO `b_tag` VALUES (5, '跑步', '2024-02-04 16:39:05.464820');
|
|
|
|
-- ----------------------------
|
|
-- Table structure for b_thing
|
|
-- ----------------------------
|
|
DROP TABLE IF EXISTS `b_thing`;
|
|
CREATE TABLE `b_thing` (
|
|
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
|
`title` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
|
`cover` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
|
`description` longtext CHARACTER SET utf8 COLLATE utf8_general_ci NULL,
|
|
`mobile` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
|
`location` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
|
`status` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
|
|
`create_time` datetime(6) NULL DEFAULT NULL,
|
|
`pv` int(11) NOT NULL,
|
|
`recommend_count` int(11) NOT NULL,
|
|
`wish_count` int(11) NOT NULL,
|
|
`collect_count` int(11) NOT NULL,
|
|
`classification_id` bigint(20) NULL DEFAULT NULL,
|
|
`user_id` bigint(20) NULL DEFAULT NULL,
|
|
`email` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
|
`zongzhi` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
|
PRIMARY KEY (`id`) USING BTREE,
|
|
INDEX `b_thing_classification_id_47675ac4_fk_b_classification_id`(`classification_id`) USING BTREE,
|
|
INDEX `b_thing_user_id_9918a633_fk_b_user_id`(`user_id`) USING BTREE,
|
|
CONSTRAINT `b_thing_classification_id_47675ac4_fk_b_classification_id` FOREIGN KEY (`classification_id`) REFERENCES `b_classification` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
|
|
CONSTRAINT `b_thing_user_id_9918a633_fk_b_user_id` FOREIGN KEY (`user_id`) REFERENCES `b_user` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT
|
|
) ENGINE = InnoDB AUTO_INCREMENT = 8 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
|
|
|
|
-- ----------------------------
|
|
-- Records of b_thing
|
|
-- ----------------------------
|
|
INSERT INTO `b_thing` VALUES (1, '街舞团', 'cover/1707036603261.jpeg', 'abcfdasdf', '13422221111', '教学楼3号楼1层', '0', '2024-02-04 16:45:44.682923', 4, 0, 1, 1, 2, NULL, '123@qq.com', '为人民服务');
|
|
INSERT INTO `b_thing` VALUES (2, 'beyond502乐队', 'cover/1707036638009.jpeg', '江河湖海就将计就计哈哈哈哈哈哈哈哈', '13455555555', '6号宿舍楼', '0', '2024-02-04 16:51:15.254882', 1, 0, 0, 0, 3, NULL, '12345@qq.com', '为了音乐而生');
|
|
INSERT INTO `b_thing` VALUES (3, '轮滑俱乐部', 'cover/1707036701716.jpeg', '哈哈哈哈哈哈哈哈哈哈', '13422221111', '9号宿舍楼', '0', '2024-02-04 16:52:13.713017', 0, 0, 0, 0, 2, NULL, '1234@126.com', '为了运动努力');
|
|
INSERT INTO `b_thing` VALUES (4, '王羲之书法俱乐部', 'cover/1707036756214.jpeg', '江河湖海哼哼唧唧哼哼唧唧就哈哈哈哈话剧', '13211112222', '颐和园路5号', '0', '2024-02-04 16:53:09.100387', 2, 0, 0, 0, 3, NULL, '123@qq.com', '为了哈哈哈');
|
|
INSERT INTO `b_thing` VALUES (5, '电子琴俱乐部', 'cover/1707036810262.jpeg', '就很好很好灌灌哈哈哈哈嘎嘎嘎嘎', '13455555555', '12号教学楼', '0', '2024-02-04 16:53:56.425555', 16, 0, 1, 1, 4, NULL, '12245@qq.com', '为了生活');
|
|
INSERT INTO `b_thing` VALUES (6, '夜跑俱乐部', 'cover/1707036858212.jpeg', '就啊哈哈的观点嘎哈韩国', '13222221111', '9号教学楼', '0', '2024-02-04 16:54:43.049737', 3, 0, 0, 0, 1, NULL, '999888@qq.com', '为了跑步');
|
|
|
|
-- ----------------------------
|
|
-- Table structure for b_thing_collect
|
|
-- ----------------------------
|
|
DROP TABLE IF EXISTS `b_thing_collect`;
|
|
CREATE TABLE `b_thing_collect` (
|
|
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
|
`thing_id` bigint(20) NOT NULL,
|
|
`user_id` bigint(20) NOT NULL,
|
|
PRIMARY KEY (`id`) USING BTREE,
|
|
UNIQUE INDEX `b_thing_collect_thing_id_user_id_45b9f252_uniq`(`thing_id`, `user_id`) USING BTREE,
|
|
INDEX `b_thing_collect_user_id_e5d69968_fk_b_user_id`(`user_id`) USING BTREE,
|
|
CONSTRAINT `b_thing_collect_thing_id_8edce8b3_fk_b_thing_id` FOREIGN KEY (`thing_id`) REFERENCES `b_thing` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
|
|
CONSTRAINT `b_thing_collect_user_id_e5d69968_fk_b_user_id` FOREIGN KEY (`user_id`) REFERENCES `b_user` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT
|
|
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
|
|
|
|
-- ----------------------------
|
|
-- Records of b_thing_collect
|
|
-- ----------------------------
|
|
INSERT INTO `b_thing_collect` VALUES (2, 1, 4);
|
|
INSERT INTO `b_thing_collect` VALUES (1, 5, 4);
|
|
|
|
-- ----------------------------
|
|
-- Table structure for b_thing_tag
|
|
-- ----------------------------
|
|
DROP TABLE IF EXISTS `b_thing_tag`;
|
|
CREATE TABLE `b_thing_tag` (
|
|
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
|
`thing_id` bigint(20) NOT NULL,
|
|
`tag_id` bigint(20) NOT NULL,
|
|
PRIMARY KEY (`id`) USING BTREE,
|
|
UNIQUE INDEX `b_thing_tag_thing_id_tag_id_a5d426b2_uniq`(`thing_id`, `tag_id`) USING BTREE,
|
|
INDEX `b_thing_tag_tag_id_d02b28a1_fk_b_tag_id`(`tag_id`) USING BTREE,
|
|
CONSTRAINT `b_thing_tag_tag_id_d02b28a1_fk_b_tag_id` FOREIGN KEY (`tag_id`) REFERENCES `b_tag` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
|
|
CONSTRAINT `b_thing_tag_thing_id_fb8ecf3f_fk_b_thing_id` FOREIGN KEY (`thing_id`) REFERENCES `b_thing` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT
|
|
) ENGINE = InnoDB AUTO_INCREMENT = 22 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
|
|
|
|
-- ----------------------------
|
|
-- Records of b_thing_tag
|
|
-- ----------------------------
|
|
INSERT INTO `b_thing_tag` VALUES (1, 1, 2);
|
|
INSERT INTO `b_thing_tag` VALUES (2, 1, 3);
|
|
INSERT INTO `b_thing_tag` VALUES (3, 1, 4);
|
|
INSERT INTO `b_thing_tag` VALUES (4, 1, 5);
|
|
INSERT INTO `b_thing_tag` VALUES (5, 2, 1);
|
|
INSERT INTO `b_thing_tag` VALUES (6, 2, 2);
|
|
INSERT INTO `b_thing_tag` VALUES (7, 2, 3);
|
|
INSERT INTO `b_thing_tag` VALUES (8, 2, 5);
|
|
INSERT INTO `b_thing_tag` VALUES (9, 3, 1);
|
|
INSERT INTO `b_thing_tag` VALUES (10, 3, 2);
|
|
INSERT INTO `b_thing_tag` VALUES (11, 3, 3);
|
|
INSERT INTO `b_thing_tag` VALUES (12, 3, 4);
|
|
INSERT INTO `b_thing_tag` VALUES (13, 3, 5);
|
|
INSERT INTO `b_thing_tag` VALUES (14, 4, 2);
|
|
INSERT INTO `b_thing_tag` VALUES (15, 4, 4);
|
|
INSERT INTO `b_thing_tag` VALUES (16, 4, 5);
|
|
INSERT INTO `b_thing_tag` VALUES (17, 5, 2);
|
|
INSERT INTO `b_thing_tag` VALUES (18, 5, 4);
|
|
INSERT INTO `b_thing_tag` VALUES (19, 6, 1);
|
|
INSERT INTO `b_thing_tag` VALUES (20, 6, 2);
|
|
INSERT INTO `b_thing_tag` VALUES (21, 6, 5);
|
|
|
|
-- ----------------------------
|
|
-- Table structure for b_thing_wish
|
|
-- ----------------------------
|
|
DROP TABLE IF EXISTS `b_thing_wish`;
|
|
CREATE TABLE `b_thing_wish` (
|
|
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
|
`thing_id` bigint(20) NOT NULL,
|
|
`user_id` bigint(20) NOT NULL,
|
|
PRIMARY KEY (`id`) USING BTREE,
|
|
UNIQUE INDEX `b_thing_wish_thing_id_user_id_9d647bbb_uniq`(`thing_id`, `user_id`) USING BTREE,
|
|
INDEX `b_thing_wish_user_id_e2d94f6c_fk_b_user_id`(`user_id`) USING BTREE,
|
|
CONSTRAINT `b_thing_wish_thing_id_f0864b16_fk_b_thing_id` FOREIGN KEY (`thing_id`) REFERENCES `b_thing` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
|
|
CONSTRAINT `b_thing_wish_user_id_e2d94f6c_fk_b_user_id` FOREIGN KEY (`user_id`) REFERENCES `b_user` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT
|
|
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
|
|
|
|
-- ----------------------------
|
|
-- Records of b_thing_wish
|
|
-- ----------------------------
|
|
INSERT INTO `b_thing_wish` VALUES (2, 1, 4);
|
|
INSERT INTO `b_thing_wish` VALUES (1, 5, 4);
|
|
|
|
-- ----------------------------
|
|
-- Table structure for b_user
|
|
-- ----------------------------
|
|
DROP TABLE IF EXISTS `b_user`;
|
|
CREATE TABLE `b_user` (
|
|
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
|
`username` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
|
`password` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
|
`role` varchar(2) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
|
`status` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
|
|
`nickname` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
|
`avatar` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
|
`mobile` varchar(13) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
|
`email` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
|
`gender` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
|
`description` longtext CHARACTER SET utf8 COLLATE utf8_general_ci NULL,
|
|
`create_time` datetime(6) NULL DEFAULT NULL,
|
|
`score` int(11) NULL DEFAULT NULL,
|
|
`push_email` varchar(40) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
|
`push_switch` tinyint(1) NULL DEFAULT NULL,
|
|
`admin_token` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
|
`token` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
|
PRIMARY KEY (`id`) USING BTREE
|
|
) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
|
|
|
|
-- ----------------------------
|
|
-- Records of b_user
|
|
-- ----------------------------
|
|
INSERT INTO `b_user` VALUES (1, 'admin', '78aafd3207ec4ef6d16f9fc07e95ebc3', '1', '0', NULL, '', NULL, NULL, NULL, NULL, '2024-02-04 16:36:13.029265', 0, NULL, 0, '21232f297a57a5a743894a0e4a801fc3', NULL);
|
|
INSERT INTO `b_user` VALUES (2, 'admin123', '0192023a7bbd73250516f069df18b500', '1', '0', NULL, '', NULL, NULL, NULL, NULL, '2024-02-04 16:40:18.754982', 0, NULL, 0, '0192023a7bbd73250516f069df18b500', NULL);
|
|
INSERT INTO `b_user` VALUES (3, 'test', '098f6bcd4621d373cade4e832627b4f6', '3', '0', NULL, '', NULL, NULL, NULL, NULL, '2024-02-04 16:40:35.603385', 0, NULL, 0, NULL, NULL);
|
|
INSERT INTO `b_user` VALUES (4, 'aaa', '47bce5c74f589f4867dbd57e9ca9f808', '2', '0', '1233', '', NULL, NULL, NULL, NULL, '2024-02-04 16:57:07.608626', 0, NULL, 0, NULL, '47bce5c74f589f4867dbd57e9ca9f808');
|
|
|
|
-- ----------------------------
|
|
-- Table structure for django_admin_log
|
|
-- ----------------------------
|
|
DROP TABLE IF EXISTS `django_admin_log`;
|
|
CREATE TABLE `django_admin_log` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`action_time` datetime(6) NOT NULL,
|
|
`object_id` longtext CHARACTER SET utf8 COLLATE utf8_general_ci NULL,
|
|
`object_repr` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
|
|
`action_flag` smallint(5) UNSIGNED NOT NULL,
|
|
`change_message` longtext CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
|
|
`content_type_id` int(11) NULL DEFAULT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`) USING BTREE,
|
|
INDEX `django_admin_log_content_type_id_c4bce8eb_fk_django_co`(`content_type_id`) USING BTREE,
|
|
INDEX `django_admin_log_user_id_c564eba6_fk_auth_user_id`(`user_id`) USING BTREE,
|
|
CONSTRAINT `django_admin_log_content_type_id_c4bce8eb_fk_django_co` FOREIGN KEY (`content_type_id`) REFERENCES `django_content_type` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
|
|
CONSTRAINT `django_admin_log_user_id_c564eba6_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT
|
|
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
|
|
|
|
-- ----------------------------
|
|
-- Records of django_admin_log
|
|
-- ----------------------------
|
|
|
|
-- ----------------------------
|
|
-- Table structure for django_content_type
|
|
-- ----------------------------
|
|
DROP TABLE IF EXISTS `django_content_type`;
|
|
CREATE TABLE `django_content_type` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`app_label` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
|
|
`model` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
|
|
PRIMARY KEY (`id`) USING BTREE,
|
|
UNIQUE INDEX `django_content_type_app_label_model_76bd3d3b_uniq`(`app_label`, `model`) USING BTREE
|
|
) ENGINE = InnoDB AUTO_INCREMENT = 22 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
|
|
|
|
-- ----------------------------
|
|
-- Records of django_content_type
|
|
-- ----------------------------
|
|
INSERT INTO `django_content_type` VALUES (1, 'admin', 'logentry');
|
|
INSERT INTO `django_content_type` VALUES (3, 'auth', 'group');
|
|
INSERT INTO `django_content_type` VALUES (2, 'auth', 'permission');
|
|
INSERT INTO `django_content_type` VALUES (4, 'auth', 'user');
|
|
INSERT INTO `django_content_type` VALUES (5, 'contenttypes', 'contenttype');
|
|
INSERT INTO `django_content_type` VALUES (7, 'myapp', 'ad');
|
|
INSERT INTO `django_content_type` VALUES (21, 'myapp', 'address');
|
|
INSERT INTO `django_content_type` VALUES (20, 'myapp', 'banner');
|
|
INSERT INTO `django_content_type` VALUES (8, 'myapp', 'classification');
|
|
INSERT INTO `django_content_type` VALUES (19, 'myapp', 'comment');
|
|
INSERT INTO `django_content_type` VALUES (9, 'myapp', 'errorlog');
|
|
INSERT INTO `django_content_type` VALUES (10, 'myapp', 'loginlog');
|
|
INSERT INTO `django_content_type` VALUES (11, 'myapp', 'notice');
|
|
INSERT INTO `django_content_type` VALUES (12, 'myapp', 'oplog');
|
|
INSERT INTO `django_content_type` VALUES (18, 'myapp', 'order');
|
|
INSERT INTO `django_content_type` VALUES (17, 'myapp', 'orderlog');
|
|
INSERT INTO `django_content_type` VALUES (16, 'myapp', 'record');
|
|
INSERT INTO `django_content_type` VALUES (13, 'myapp', 'tag');
|
|
INSERT INTO `django_content_type` VALUES (15, 'myapp', 'thing');
|
|
INSERT INTO `django_content_type` VALUES (14, 'myapp', 'user');
|
|
INSERT INTO `django_content_type` VALUES (6, 'sessions', 'session');
|
|
|
|
-- ----------------------------
|
|
-- Table structure for django_migrations
|
|
-- ----------------------------
|
|
DROP TABLE IF EXISTS `django_migrations`;
|
|
CREATE TABLE `django_migrations` (
|
|
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
|
`app` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
|
|
`name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
|
|
`applied` datetime(6) NOT NULL,
|
|
PRIMARY KEY (`id`) USING BTREE
|
|
) ENGINE = InnoDB AUTO_INCREMENT = 22 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
|
|
|
|
-- ----------------------------
|
|
-- Records of django_migrations
|
|
-- ----------------------------
|
|
INSERT INTO `django_migrations` VALUES (1, 'contenttypes', '0001_initial', '2024-02-04 16:32:51.298695');
|
|
INSERT INTO `django_migrations` VALUES (2, 'auth', '0001_initial', '2024-02-04 16:32:51.549701');
|
|
INSERT INTO `django_migrations` VALUES (3, 'admin', '0001_initial', '2024-02-04 16:32:51.606242');
|
|
INSERT INTO `django_migrations` VALUES (4, 'admin', '0002_logentry_remove_auto_add', '2024-02-04 16:32:51.613953');
|
|
INSERT INTO `django_migrations` VALUES (5, 'admin', '0003_logentry_add_action_flag_choices', '2024-02-04 16:32:51.619196');
|
|
INSERT INTO `django_migrations` VALUES (6, 'contenttypes', '0002_remove_content_type_name', '2024-02-04 16:32:51.687139');
|
|
INSERT INTO `django_migrations` VALUES (7, 'auth', '0002_alter_permission_name_max_length', '2024-02-04 16:32:51.729044');
|
|
INSERT INTO `django_migrations` VALUES (8, 'auth', '0003_alter_user_email_max_length', '2024-02-04 16:32:51.771331');
|
|
INSERT INTO `django_migrations` VALUES (9, 'auth', '0004_alter_user_username_opts', '2024-02-04 16:32:51.777711');
|
|
INSERT INTO `django_migrations` VALUES (10, 'auth', '0005_alter_user_last_login_null', '2024-02-04 16:32:51.813729');
|
|
INSERT INTO `django_migrations` VALUES (11, 'auth', '0006_require_contenttypes_0002', '2024-02-04 16:32:51.817877');
|
|
INSERT INTO `django_migrations` VALUES (12, 'auth', '0007_alter_validators_add_error_messages', '2024-02-04 16:32:51.823354');
|
|
INSERT INTO `django_migrations` VALUES (13, 'auth', '0008_alter_user_username_max_length', '2024-02-04 16:32:51.865155');
|
|
INSERT INTO `django_migrations` VALUES (14, 'auth', '0009_alter_user_last_name_max_length', '2024-02-04 16:32:51.907643');
|
|
INSERT INTO `django_migrations` VALUES (15, 'auth', '0010_alter_group_name_max_length', '2024-02-04 16:32:51.951019');
|
|
INSERT INTO `django_migrations` VALUES (16, 'auth', '0011_update_proxy_permissions', '2024-02-04 16:32:51.958587');
|
|
INSERT INTO `django_migrations` VALUES (17, 'auth', '0012_alter_user_first_name_max_length', '2024-02-04 16:32:52.003585');
|
|
INSERT INTO `django_migrations` VALUES (18, 'myapp', '0001_initial', '2024-02-04 16:32:52.698876');
|
|
INSERT INTO `django_migrations` VALUES (19, 'myapp', '0002_thing_user', '2024-02-04 16:32:52.738582');
|
|
INSERT INTO `django_migrations` VALUES (20, 'myapp', '0003_auto_20240204_1632', '2024-02-04 16:32:52.933013');
|
|
INSERT INTO `django_migrations` VALUES (21, 'sessions', '0001_initial', '2024-02-04 16:32:52.969896');
|
|
|
|
-- ----------------------------
|
|
-- Table structure for django_session
|
|
-- ----------------------------
|
|
DROP TABLE IF EXISTS `django_session`;
|
|
CREATE TABLE `django_session` (
|
|
`session_key` varchar(40) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
|
|
`session_data` longtext CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
|
|
`expire_date` datetime(6) NOT NULL,
|
|
PRIMARY KEY (`session_key`) USING BTREE,
|
|
INDEX `django_session_expire_date_a5c62663`(`expire_date`) USING BTREE
|
|
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
|
|
|
|
-- ----------------------------
|
|
-- Records of django_session
|
|
-- ----------------------------
|
|
|
|
SET FOREIGN_KEY_CHECKS = 1;
|