1 /* 2 SQLyog v10.2 3 MySQL - 5.5.27 : Database - restrant 4 ********************************************************************* 5 */ 6 7 8 /*!40101 SET NAMES utf8 */; 9 10 /*!40101 SET SQL_MODE=''*/; 11 12 /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; 13 /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; 14 /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; 15 /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 16 CREATE DATABASE /*!32312 IF NOT EXISTS*/`restrant` /*!40100 DEFAULT CHARACTER SET utf8 */; 17 18 USE `restrant`; 19 20 /*Table structure for table `admin` */ 21 22 DROP TABLE IF EXISTS `admin`; 23 24 CREATE TABLE `admin` ( 25 `Id` int(4) NOT NULL AUTO_INCREMENT, 26 `LoginName` varchar(20) DEFAULT NULL, 27 `LoginPwd` varchar(20) DEFAULT NULL, 28 PRIMARY KEY (`Id`) 29 ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; 30 31 /*Data for the table `admin` */ 32 33 insert into `admin`(`Id`,`LoginName`,`LoginPwd`) values (1,'admin','123456'); 34 35 /*Table structure for table `functions` */ 36 37 DROP TABLE IF EXISTS `functions`; 38 39 CREATE TABLE `functions` ( 40 `id` int(4) NOT NULL AUTO_INCREMENT, 41 `name` varchar(20) DEFAULT NULL, 42 `parentid` int(4) DEFAULT NULL, 43 `url` varchar(50) DEFAULT NULL, 44 `isleaf` bit(1) DEFAULT NULL, 45 `nodeorder` int(4) DEFAULT NULL, 46 PRIMARY KEY (`id`) 47 ) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8; 48 49 /*Data for the table `functions` */ 50 51 insert into `functions`(`id`,`name`,`parentid`,`url`,`isleaf`,`nodeorder`) values (1,'订餐系统管理后台',0,NULL,'