From 2f69247723510ddb804948c237351285c48679e4 Mon Sep 17 00:00:00 2001 From: p7ajvprf6 <1062535119@qq.com> Date: Tue, 12 Oct 2021 10:06:58 +0800 Subject: [PATCH] ADD file via upload --- campus.sql | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 campus.sql diff --git a/campus.sql b/campus.sql new file mode 100644 index 0000000..86c537c --- /dev/null +++ b/campus.sql @@ -0,0 +1,47 @@ +/* + Navicat Premium Data Transfer + + Source Server : MySQL57 + Source Server Type : MySQL + Source Server Version : 50725 + Source Host : localhost:3306 + Source Schema : campus + + Target Server Type : MySQL + Target Server Version : 50725 + File Encoding : 65001 + + Date: 16/06/2021 22:47:49 +*/ + +SET NAMES utf8mb4; +SET FOREIGN_KEY_CHECKS = 0; + +-- ---------------------------- +-- Table structure for goods +-- ---------------------------- +DROP TABLE IF EXISTS `goods`; +CREATE TABLE `goods` ( + `username` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, + `price` varchar(10) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, + `type` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, + `commit` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, + `img` longblob NOT NULL, + `gid` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, + `phone` varchar(11) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, + PRIMARY KEY (`gid`) USING BTREE, + INDEX `user`(`username`) USING BTREE, + CONSTRAINT `user` FOREIGN KEY (`username`) REFERENCES `user` (`username`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE = InnoDB AUTO_INCREMENT = 39 CHARACTER SET = utf8 COLLATE = utf8_bin ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Table structure for user +-- ---------------------------- +DROP TABLE IF EXISTS `user`; +CREATE TABLE `user` ( + `username` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, + `password` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, + PRIMARY KEY (`username`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin ROW_FORMAT = Dynamic; + +SET FOREIGN_KEY_CHECKS = 1;