/*
 Navicat Premium Data Transfer

 Source Server         : user
 Source Server Type    : MySQL
 Source Server Version : 80034
 Source Host           : localhost:3306
 Source Schema         : wechatdata

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

 Date: 10/01/2024 17:25:55
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for attention
-- ----------------------------
DROP TABLE IF EXISTS `attention`;
CREATE TABLE `attention`  (
  `aid` int NOT NULL AUTO_INCREMENT,
  `uid` int NOT NULL,
  `nid` int NOT NULL,
  `type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  `adate` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  PRIMARY KEY (`aid`) USING BTREE,
  INDEX `uid`(`uid`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of attention
-- ----------------------------

-- ----------------------------
-- Table structure for comment
-- ----------------------------
DROP TABLE IF EXISTS `comment`;
CREATE TABLE `comment`  (
  `cid` int NOT NULL AUTO_INCREMENT,
  `uid` int NOT NULL,
  `comment` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  `ctype` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  `typeid` int NOT NULL,
  `cdate` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  PRIMARY KEY (`cid`) USING BTREE,
  INDEX `uid`(`uid`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of comment
-- ----------------------------
INSERT INTO `comment` VALUES (1, 3, '哈哈', 'post', 1, '2024-01-10 03:39:47');
INSERT INTO `comment` VALUES (7, 6, '耶', 'post', 3, '2024-01-10 04:15:02');

-- ----------------------------
-- Table structure for greens
-- ----------------------------
DROP TABLE IF EXISTS `greens`;
CREATE TABLE `greens`  (
  `gid` int NOT NULL AUTO_INCREMENT,
  `gname` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  `gstyle` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  `glabel` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  `gcover` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  `ghits` int NOT NULL,
  `gwriter` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  `gdate` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  `gneed` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  PRIMARY KEY (`gid`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of greens
-- ----------------------------
INSERT INTO `greens` VALUES (8, '炝炒白菜', '川菜', '家常菜 ', 'qcjxc.jpg', 0, 'system', '2024-01-10 08:11:31', '好吃！');
INSERT INTO `greens` VALUES (9, '番茄炒蛋', '鲁菜', '家常菜 ', 'fqcjd.jpg', 0, 'system', '2024-01-10 08:20:53', '简单易做，好吃！');
INSERT INTO `greens` VALUES (10, '糖醋鱼', '浙菜', '家常菜 ', 'tcy.jpg', 0, 'system', '2024-01-10 08:21:29', '酸酸甜甜，好吃！');
INSERT INTO `greens` VALUES (11, '糖醋排骨', '川菜', '家常菜 ', 'tcpg.jpg', 0, 'system', '2024-01-10 08:21:51', '好吃！');
INSERT INTO `greens` VALUES (12, '玉米排骨汤', '粤菜', '家常菜 ', 'ympgt.jpg', 0, 'system', '2024-01-10 08:22:17', '好喝！');

-- ----------------------------
-- Table structure for post
-- ----------------------------
DROP TABLE IF EXISTS `post`;
CREATE TABLE `post`  (
  `pid` int NOT NULL AUTO_INCREMENT,
  `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  `uid` int NOT NULL,
  `pcontent` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  `pfile` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  `hits` int NOT NULL,
  `goodnum` int NOT NULL,
  `badnum` int NOT NULL,
  `pdate` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  PRIMARY KEY (`pid`) USING BTREE,
  INDEX `uid`(`uid`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of post
-- ----------------------------
INSERT INTO `post` VALUES (1, '这是道菜', 1, '非常好吃，推荐大家做来试试', 'manager.jpg', 21, 2, 2, '2024-01-09 21:51:09');
INSERT INTO `post` VALUES (4, '爱美食', 6, '哈哈', 'lbr.jpg', 1, 0, 0, '2024-01-10 09:04:55');

-- ----------------------------
-- Table structure for step
-- ----------------------------
DROP TABLE IF EXISTS `step`;
CREATE TABLE `step`  (
  `sid` int NOT NULL AUTO_INCREMENT,
  `step` int NOT NULL,
  `gid` int NOT NULL,
  `voice` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  `sdescribe` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  `timing` int NOT NULL,
  `sphoto` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  PRIMARY KEY (`sid`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of step
-- ----------------------------
INSERT INTO `step` VALUES (1, 1, 1, '空', '猪小排洗净；葱洗净切段；老姜切片；辣椒切斜片备用。', 0, 'step01.jpg');
INSERT INTO `step` VALUES (2, 1, 2, '空', '111', 10, 'fqcjd.jpg');

-- ----------------------------
-- Table structure for we_user
-- ----------------------------
DROP TABLE IF EXISTS `we_user`;
CREATE TABLE `we_user`  (
  `uid` int NOT NULL AUTO_INCREMENT,
  `uname` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  `openid` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  `purl` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  `gender` int NOT NULL,
  `uclass` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  `state` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  PRIMARY KEY (`uid`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of we_user
-- ----------------------------
INSERT INTO `we_user` VALUES (1, 'admin', '123', 'manager.jpg', 0, '超级管理员', 'yes');
INSERT INTO `we_user` VALUES (2, '雪77', '123', 'manager.jpg', 1, '管理员', 'yes');
INSERT INTO `we_user` VALUES (3, '枫', '123', 'user02.jpg', 0, '用户', 'yes');
INSERT INTO `we_user` VALUES (6, '韩', '123', 'user01.jpg', 1, '用户', 'yes');
INSERT INTO `we_user` VALUES (7, '海', '123', 'user01.jpg', 0, '用户', 'yes');

SET FOREIGN_KEY_CHECKS = 1;
