/*
 Navicat Premium Data Transfer

 Source Server         : localhost
 Source Server Type    : MySQL
 Source Server Version : 50557
 Source Host           : localhost:3306
 Source Schema         : exam-week-0730

 Target Server Type    : MySQL
 Target Server Version : 50557
 File Encoding         : 65001

 Date: 30/07/2024 15:47:28
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for t_home
-- ----------------------------
DROP TABLE IF EXISTS `t_home`;
CREATE TABLE `t_home`  (
  `home_id` int(11) NOT NULL AUTO_INCREMENT,
  `home_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  `home_way` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  `home_area` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  `home_image` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  `home_price` decimal(10, 2) NULL DEFAULT NULL,
  PRIMARY KEY (`home_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of t_home
-- ----------------------------
INSERT INTO `t_home` VALUES (1, '通天苑', '整租', '120平方米', 'http://106.54.42.224:8888/group1/M00/00/03/CgAEDGaoY0yAbT9AAABXITVx7x8744.png', 3900.00);
INSERT INTO `t_home` VALUES (2, '南天门', '单间', '70平方米', 'http://106.54.42.224:8888/group1/M00/00/03/CgAEDGaoY0yAbT9AAABXITVx7x8744.png', 2900.00);
INSERT INTO `t_home` VALUES (3, '南苑小区', '整租', '90平方米', 'http://106.54.42.224:8888/group1/M00/00/03/CgAEDGaoY0yAbT9AAABXITVx7x8744.png', 3400.00);
INSERT INTO `t_home` VALUES (4, '海湾镇', '单间', '45平方米', 'http://106.54.42.224:8888/group1/M00/00/03/CgAEDGaoY0yAbT9AAABXITVx7x8744.png', 2200.00);

-- ----------------------------
-- Table structure for t_rent
-- ----------------------------
DROP TABLE IF EXISTS `t_rent`;
CREATE TABLE `t_rent`  (
  `rent_id` int(11) NOT NULL AUTO_INCREMENT,
  `rent_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  `rent_sex` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  `rent_age` int(255) NULL DEFAULT NULL,
  `rent_home` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  `rent_date` datetime NULL DEFAULT NULL,
  `rent_way` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  `rent_time` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  `rent_price` decimal(10, 2) NULL DEFAULT NULL,
  `rent_state` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  `rent_remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  PRIMARY KEY (`rent_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of t_rent
-- ----------------------------
INSERT INTO `t_rent` VALUES (3, '张三', '男', 18, '通天苑', '2024-07-30 15:27:24', '整租', '3', 11115.00, '待审核', '');
INSERT INTO `t_rent` VALUES (4, '李四', '女', 19, '通天苑', '2024-07-30 15:43:50', '整租', '24', 84240.00, '待审核', '');

-- ----------------------------
-- Table structure for t_user
-- ----------------------------
DROP TABLE IF EXISTS `t_user`;
CREATE TABLE `t_user`  (
  `user_id` int(11) NOT NULL AUTO_INCREMENT,
  `user_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  `user_sex` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  `user_age` int(11) NULL DEFAULT NULL,
  `user_user` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  `user_pwd` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  `user_credit` int(11) NULL DEFAULT NULL,
  `user_state` int(11) NULL DEFAULT NULL,
  PRIMARY KEY (`user_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of t_user
-- ----------------------------
INSERT INTO `t_user` VALUES (1, '张三', '男', 18, 'admin1', 'admin', 100, 0);
INSERT INTO `t_user` VALUES (2, '李四', '女', 19, 'admin2', 'admin', 100, 0);

SET FOREIGN_KEY_CHECKS = 1;
