/Dependence/MySQL/Data.sql
https://bitbucket.org/ljlon/medicine · SQL · 203 lines · 124 code · 31 blank · 48 comment · 0 complexity · 982265e3c2cfb1c5263725fa1211ffb4 MD5 · raw file
- CREATE DATABASE IF NOT EXISTS `store` /*!40100 DEFAULT CHARACTER SET utf8 */;
- USE `store`;
- -- MySQL dump 10.13 Distrib 5.5.16, for Win32 (x86)
- --
- -- Host: localhost Database: store
- -- ------------------------------------------------------
- -- Server version 5.5.24
- /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
- /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
- /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
- /*!40101 SET NAMES utf8 */;
- /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
- /*!40103 SET TIME_ZONE='+00:00' */;
- /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
- /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
- /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
- /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
- --
- -- Table structure for table `medicine_class`
- --
- DROP TABLE IF EXISTS `medicine_class`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE `medicine_class` (
- `id` int(11) NOT NULL,
- `name` varchar(45) DEFAULT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Dumping data for table `medicine_class`
- --
- LOCK TABLES `medicine_class` WRITE;
- /*!40000 ALTER TABLE `medicine_class` DISABLE KEYS */;
- /*!40000 ALTER TABLE `medicine_class` ENABLE KEYS */;
- UNLOCK TABLES;
- --
- -- Table structure for table `user_role`
- --
- DROP TABLE IF EXISTS `user_role`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE `user_role` (
- `id` int(11) NOT NULL,
- `name` varchar(45) DEFAULT NULL,
- PRIMARY KEY (`id`),
- UNIQUE KEY `id_UNIQUE` (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Dumping data for table `user_role`
- --
- LOCK TABLES `user_role` WRITE;
- /*!40000 ALTER TABLE `user_role` DISABLE KEYS */;
- INSERT INTO `user_role` VALUES (0,'超级管理员'),(1,'管理员'),(2,'录入员'),(3,'收银员');
- /*!40000 ALTER TABLE `user_role` ENABLE KEYS */;
- UNLOCK TABLES;
- --
- -- Table structure for table `user`
- --
- DROP TABLE IF EXISTS `user`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE `user` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `uid` varchar(50) NOT NULL,
- `pwd` varchar(50) DEFAULT NULL,
- `name` varchar(50) DEFAULT NULL,
- `random_key` varchar(50) DEFAULT NULL,
- `role_id` int(11) DEFAULT '0',
- `create_time` datetime DEFAULT NULL,
- PRIMARY KEY (`id`),
- UNIQUE KEY `uid_UNIQUE` (`uid`)
- ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Dumping data for table `user`
- --
- LOCK TABLES `user` WRITE;
- /*!40000 ALTER TABLE `user` DISABLE KEYS */;
- INSERT INTO `user` VALUES (0,'0000','4df3cb619d95b5c03c64373541d022ff','刘金龙','090DD3E5',0,'2012-11-09 11:33:23');
- /*!40000 ALTER TABLE `user` ENABLE KEYS */;
- UNLOCK TABLES;
- --
- -- Table structure for table `medicine_type`
- --
- DROP TABLE IF EXISTS `medicine_type`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE `medicine_type` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `name` varchar(45) DEFAULT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Dumping data for table `medicine_type`
- --
- LOCK TABLES `medicine_type` WRITE;
- /*!40000 ALTER TABLE `medicine_type` DISABLE KEYS */;
- INSERT INTO `medicine_type` VALUES (0,'中成药'),(1,'保健药'),(2,'中草药'),(3,'西药'),(4,'医疗器械');
- /*!40000 ALTER TABLE `medicine_type` ENABLE KEYS */;
- UNLOCK TABLES;
- --
- -- Table structure for table `medicine_form`
- --
- DROP TABLE IF EXISTS `medicine_form`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE `medicine_form` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `name` varchar(45) DEFAULT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Dumping data for table `medicine_form`
- --
- LOCK TABLES `medicine_form` WRITE;
- /*!40000 ALTER TABLE `medicine_form` DISABLE KEYS */;
- INSERT INTO `medicine_form` VALUES (0,'片剂'),(1,'胶囊剂'),(2,'注射剂'),(3,'颗粒剂'),(4,'溶液剂'),(5,'粉剂'),(6,'滴剂'),(7,'散剂'),(8,'贴剂'),(9,'涂剂'),(10,'膏剂'),(11,'霜剂'),(12,'丸剂'),(13,'凝胶剂'),(14,'喷雾剂'),(15,'洗剂'),(16,'栓剂'),(17,'其他剂型');
- /*!40000 ALTER TABLE `medicine_form` ENABLE KEYS */;
- UNLOCK TABLES;
- --
- -- Table structure for table `medicine_unit`
- --
- DROP TABLE IF EXISTS `medicine_unit`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE `medicine_unit` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `name` varchar(45) DEFAULT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Dumping data for table `medicine_unit`
- --
- LOCK TABLES `medicine_unit` WRITE;
- /*!40000 ALTER TABLE `medicine_unit` DISABLE KEYS */;
- INSERT INTO `medicine_unit` VALUES (0,'盒'),(1,'瓶'),(2,'袋'),(3,'支');
- /*!40000 ALTER TABLE `medicine_unit` ENABLE KEYS */;
- UNLOCK TABLES;
- --
- -- Table structure for table `medicine_otc`
- --
- DROP TABLE IF EXISTS `medicine_otc`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE `medicine_otc` (
- `id` int(11) NOT NULL,
- `name` varchar(45) DEFAULT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Dumping data for table `medicine_otc`
- --
- LOCK TABLES `medicine_otc` WRITE;
- /*!40000 ALTER TABLE `medicine_otc` DISABLE KEYS */;
- INSERT INTO `medicine_otc` VALUES (0,'OTC类'),(1,'处方类');
- /*!40000 ALTER TABLE `medicine_otc` ENABLE KEYS */;
- UNLOCK TABLES;
- /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
- /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
- /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
- /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
- /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
- /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
- /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
- /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
- -- Dump completed on 2012-11-28 14:28:51