加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
back_system.sql 8.15 KB
一键复制 编辑 原始数据 按行查看 历史
/*
Navicat MySQL Data Transfer
Source Server : back_system1
Source Server Version : 50726
Source Host : localhost:3306
Source Database : back_system1
Target Server Type : MYSQL
Target Server Version : 50726
File Encoding : 65001
Date: 2024-02-04 10:24:52
*/
CREATE USER IF NOT EXISTS 'back_system'@'localhost' IDENTIFIED WITH mysql_native_password BY '123456';
CREATE DATABASE IF NOT EXISTS `back_system`;
GRANT ALL PRIVILEGES ON back_system.* TO 'back_system'@'localhost';
USE back_system;
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for files
-- ----------------------------
DROP TABLE IF EXISTS `files`;
CREATE TABLE `files` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`file_name` varchar(255) DEFAULT NULL,
`file_url` varchar(255) DEFAULT NULL,
`file_size` varchar(255) DEFAULT NULL,
`upload_person` varchar(255) DEFAULT NULL,
`upload_time` varchar(255) DEFAULT NULL,
`download_number` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=27 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of files
-- ----------------------------
-- ----------------------------
-- Table structure for image
-- ----------------------------
DROP TABLE IF EXISTS `image`;
CREATE TABLE `image` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`image_url` varchar(255) DEFAULT NULL,
`account` int(255) DEFAULT NULL,
`onlyId` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=12 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of image
-- ----------------------------
INSERT INTO `image` VALUES ('11', 'http://127.0.0.1:3007/upload/头像.jpg', null, 'dabc0c29-21cd-4597-92de-47d303578d6a');
-- ----------------------------
-- Table structure for login_log
-- ----------------------------
DROP TABLE IF EXISTS `login_log`;
CREATE TABLE `login_log` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`account` int(12) DEFAULT NULL,
`name` varchar(255) DEFAULT NULL,
`email` varchar(255) DEFAULT NULL,
`login_time` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of login_log
-- ----------------------------
-- ----------------------------
-- Table structure for message
-- ----------------------------
DROP TABLE IF EXISTS `message`;
CREATE TABLE `message` (
`id` int NOT NULL AUTO_INCREMENT,
`message_title` varchar(255) DEFAULT NULL,
`message_content` varchar(255) DEFAULT NULL,
`message_status` int DEFAULT NULL,
`message_level` int NOT NULL DEFAULT '0',
`message_publisher_id` int NOT NULL DEFAULT '-1',
`message_receiver_id` int NOT NULL DEFAULT '-1',
`message_click_number` int DEFAULT NULL,
`message_publish_time` varchar(255) DEFAULT NULL,
`message_update_time` varchar(255) DEFAULT NULL,
`message_delete_time` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=27 DEFAULT CHARSET=utf8mb3;
-- ----------------------------
-- Records of message
-- ----------------------------
-- ----------------------------
-- Table structure for operation_log
-- ----------------------------
DROP TABLE IF EXISTS `operation_log`;
CREATE TABLE `operation_log` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`operation_person` varchar(255) DEFAULT NULL,
`operation_content` varchar(255) DEFAULT NULL,
`operation_level` varchar(255) DEFAULT NULL,
`operation_time` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of operation_log
-- ----------------------------
-- ----------------------------
-- Table structure for outproduct
-- ----------------------------
DROP TABLE IF EXISTS `outproduct`;
CREATE TABLE `outproduct` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`product_out_id` int(11) DEFAULT NULL,
`product_out_number` int(11) DEFAULT NULL,
`product_out_price` int(11) DEFAULT NULL,
`product_out_apply_person` varchar(255) DEFAULT NULL,
`product_audit_time` varchar(255) DEFAULT NULL,
`product_out_audit_person` varchar(255) DEFAULT NULL,
`audit_memo` varchar(255) DEFAULT NULL,
`product_apply_time` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of outproduct
-- ----------------------------
-- ----------------------------
-- Table structure for product
-- ----------------------------
DROP TABLE IF EXISTS `product`;
CREATE TABLE `product` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`product_id` int(10) DEFAULT NULL,
`product_name` varchar(255) DEFAULT NULL,
`product_category` varchar(255) DEFAULT NULL,
`product_unit` varchar(255) DEFAULT NULL,
`product_in_warehouse_number` int(11) DEFAULT NULL,
`product_single_price` int(11) DEFAULT NULL,
`product_all_price` int(11) DEFAULT NULL,
`product_status` varchar(255) DEFAULT NULL,
`product_create_person` varchar(255) DEFAULT NULL,
`product_create_time` varchar(255) DEFAULT NULL,
`product_update_time` varchar(255) DEFAULT NULL,
`in_memo` varchar(255) DEFAULT NULL,
`product_out_id` int(11) DEFAULT NULL,
`product_out_number` int(11) DEFAULT NULL,
`product_out_price` int(11) DEFAULT NULL,
`product_out_apply_person` varchar(255) DEFAULT NULL,
`product_apply_time` varchar(255) DEFAULT NULL,
`apply_memo` varchar(255) DEFAULT NULL,
`product_out_status` varchar(255) DEFAULT NULL,
`product_audit_time` varchar(255) DEFAULT NULL,
`product_out_audit_person` varchar(255) DEFAULT NULL,
`audit_memo` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of product
-- ----------------------------
-- ----------------------------
-- Table structure for setting
-- ----------------------------
DROP TABLE IF EXISTS `setting`;
CREATE TABLE `setting` (
`id` int(11) NOT NULL,
`set_name` varchar(255) DEFAULT NULL,
`set_value` varchar(255) DEFAULT NULL,
`set_text` text,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of setting
-- ----------------------------
INSERT INTO `setting` VALUES ('1', 'swiper1', null, null);
INSERT INTO `setting` VALUES ('2', 'swiper2', null, null);
INSERT INTO `setting` VALUES ('3', 'swiper3', null, null);
INSERT INTO `setting` VALUES ('4', 'swiper4', null, null);
INSERT INTO `setting` VALUES ('5', 'swiper5', null, null);
INSERT INTO `setting` VALUES ('6', 'swiper6', null, null);
INSERT INTO `setting` VALUES ('7', '公司名称', '济南晏猫小酒馆', null);
INSERT INTO `setting` VALUES ('8', '公司介绍', null, null);
INSERT INTO `setting` VALUES ('9', '公司架构', null, null);
INSERT INTO `setting` VALUES ('10', '公司战略', null, null);
INSERT INTO `setting` VALUES ('11', '公司高层', null, null);
INSERT INTO `setting` VALUES ('12', '总裁办', '[\"总裁办\"]', null);
-- INSERT INTO `setting` VALUES ('13', '产品设置', '[\"食品类\"]', null);
INSERT INTO `setting` VALUES ('14', '产品设置', '[\"纯棉\", "涤纶\", "面纶\"]', null);
-- ----------------------------
-- Table structure for users
-- ----------------------------
DROP TABLE IF EXISTS `users`;
CREATE TABLE `users` (
`id` int unsigned NOT NULL AUTO_INCREMENT,
`account` varchar(20) NOT NULL,
`email` varchar(30) NOT NULL,
`password` varchar(255) NOT NULL,
`identity` int NOT NULL DEFAULT '2',
`status` int NOT NULL DEFAULT '0',
`name` varchar(20) DEFAULT NULL,
`sex` int NOT NULL DEFAULT '0',
`image_url` varchar(255) DEFAULT NULL,
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`read_list` varchar(255) DEFAULT NULL,
`read_status` int NOT NULL DEFAULT '0',
`activate_code` varchar(30) DEFAULT NULL,
`temp_password` varchar(20) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `account` (`account`),
UNIQUE KEY `email` (`email`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of users
-- ----------------------------
INSERT INTO `users` (`account`, `email`, `password`, `identity`, `status`, `name`)
VALUES ('123666', 'cp163@163.com', '$2a$10$TyJm48diZ6VgnsjxSdEKBOR9rfAiH/pcVjrH/RjUKzVWkakNFPBcu', '0', '1', 'Joe');
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化