/* 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;