一些sql 一些sql

一些sql

 
/*Table structure for table `ad_not` */

DROP TABLE IF EXISTS `ad_not`;

CREATE TABLE `ad_not` (
  `n_id` int(11) NOT NULL,
  `a_id` int(11) NOT NULL,
  PRIMARY KEY (`a_id`,`n_id`),
  KEY `FK749908D77C55283` (`a_id`),
  KEY `FK749908D7261F349` (`n_id`),
  CONSTRAINT `FK749908D7261F349` FOREIGN KEY (`n_id`) REFERENCES `notice` (`id`),
  CONSTRAINT `FK749908D77C55283` FOREIGN KEY (`a_id`) REFERENCES `admin` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

/*Data for the table `ad_not` */

insert  into `ad_not`(`n_id`,`a_id`) values (1,1),(2,1),(3,1),(4,1),(5,1),(6,1),(7,1),(8,1);

/*Table structure for table `admin` */
/*
DROP TABLE IF EXISTS `admin`;

CREATE TABLE `admin` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `userName` varchar(100) DEFAULT NULL,
  `englishName` varchar(100) DEFAULT NULL,
  `telephone` varchar(11) DEFAULT NULL,
  `phoneType` int(11) DEFAULT NULL,
  `headUrl` varchar(50) DEFAULT NULL,
  `loginPwd` varchar(50) DEFAULT NULL,
  `email` varchar(30) DEFAULT NULL,
  `address` varchar(200) DEFAULT NULL,
  `idCard` varchar(18) DEFAULT NULL,
  `wcOpenId` varchar(100) DEFAULT NULL,
  `qqOpenId` varchar(100) DEFAULT NULL,
  `token` varchar(100) DEFAULT NULL,
  `status` int(11) DEFAULT NULL,
  `createTime` datetime DEFAULT NULL,
  `remark` longtext,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
*/
/*Data for the table `admin` */


/*
insert  into `admin`(`id`,`userName`,`englishName`,`telephone`,`phoneType`,`headUrl`,`loginPwd`,`email`,`address`,`idCard`,`wcOpenId`,`qqOpenId`,`token`,`status`,`createTime`,`remark`) values (1,'13000000000','123123','13000000000',1123,'21212','e10adc3949ba59abbe56e057f20f883e','[email protected]','wq123','1234654612','13213215','12313','1',1,'2018-04-27 07:28:52',NULL);
*/
/*Table structure for table `inform` */

DROP TABLE IF EXISTS `inform`;

CREATE TABLE `inform` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `classify` varchar(100) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;

/*Data for the table `inform` */

insert  into `inform`(`id`,`classify`) values (1,'系统通知'),(2,'个人通知');

/*Table structure for table `notice` */

DROP TABLE IF EXISTS `notice`;

CREATE TABLE `notice` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `texts` longtext,
  `readss` int(11) DEFAULT NULL,
  `notTime` datetime DEFAULT NULL,
  `informId` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `FKC20796D843ABF92` (`informId`),
  CONSTRAINT `FKC20796D843ABF92` FOREIGN KEY (`informId`) REFERENCES `inform` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8;

/*Data for the table `notice` */

insert  into `notice`(`id`,`texts`,`readss`,`notTime`,`informId`) values (1,'比比uui会uuiu辉煌ui会回避uiu会',1,'2018-04-19 10:01:43',1),(2,'iu还会给附庸风雅头发',1,'2018-04-25 10:01:47',1),(3,'健康比柯布i比u',1,'2018-04-12 10:01:49',1),(4,'i进步i与宝玉v与vu有',0,'2018-04-13 10:01:52',2),(5,'uv给v一同参与TV u i或会后',1,'2018-04-18 14:26:18',1),(6,'u给v粗犷vu与i不会回鹘hi和',1,'2018-04-27 14:26:34',1),(7,'好久不见侬i后i奇偶i奇偶i后i',1,'2018-04-13 14:26:51',2),(8,' 规划vi贵u过一个i与光顾版面那般美好v北京雍和宫v有',0,'2018-06-28 20:07:26',1);

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
/*Table structure for table `ad_not` */

DROP TABLE IF EXISTS `ad_not`;

CREATE TABLE `ad_not` (
  `n_id` int(11) NOT NULL,
  `a_id` int(11) NOT NULL,
  PRIMARY KEY (`a_id`,`n_id`),
  KEY `FK749908D77C55283` (`a_id`),
  KEY `FK749908D7261F349` (`n_id`),
  CONSTRAINT `FK749908D7261F349` FOREIGN KEY (`n_id`) REFERENCES `notice` (`id`),
  CONSTRAINT `FK749908D77C55283` FOREIGN KEY (`a_id`) REFERENCES `admin` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

/*Data for the table `ad_not` */

insert  into `ad_not`(`n_id`,`a_id`) values (1,1),(2,1),(3,1),(4,1),(5,1),(6,1),(7,1),(8,1);

/*Table structure for table `admin` */
/*
DROP TABLE IF EXISTS `admin`;

CREATE TABLE `admin` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `userName` varchar(100) DEFAULT NULL,
  `englishName` varchar(100) DEFAULT NULL,
  `telephone` varchar(11) DEFAULT NULL,
  `phoneType` int(11) DEFAULT NULL,
  `headUrl` varchar(50) DEFAULT NULL,
  `loginPwd` varchar(50) DEFAULT NULL,
  `email` varchar(30) DEFAULT NULL,
  `address` varchar(200) DEFAULT NULL,
  `idCard` varchar(18) DEFAULT NULL,
  `wcOpenId` varchar(100) DEFAULT NULL,
  `qqOpenId` varchar(100) DEFAULT NULL,
  `token` varchar(100) DEFAULT NULL,
  `status` int(11) DEFAULT NULL,
  `createTime` datetime DEFAULT NULL,
  `remark` longtext,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
*/
/*Data for the table `admin` */


/*
insert  into `admin`(`id`,`userName`,`englishName`,`telephone`,`phoneType`,`headUrl`,`loginPwd`,`email`,`address`,`idCard`,`wcOpenId`,`qqOpenId`,`token`,`status`,`createTime`,`remark`) values (1,'13000000000','123123','13000000000',1123,'21212','e10adc3949ba59abbe56e057f20f883e','[email protected]','wq123','1234654612','13213215','12313','1',1,'2018-04-27 07:28:52',NULL);
*/
/*Table structure for table `inform` */

DROP TABLE IF EXISTS `inform`;

CREATE TABLE `inform` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `classify` varchar(100) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;

/*Data for the table `inform` */

insert  into `inform`(`id`,`classify`) values (1,'系统通知'),(2,'个人通知');

/*Table structure for table `notice` */

DROP TABLE IF EXISTS `notice`;

CREATE TABLE `notice` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `texts` longtext,
  `readss` int(11) DEFAULT NULL,
  `notTime` datetime DEFAULT NULL,
  `informId` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `FKC20796D843ABF92` (`informId`),
  CONSTRAINT `FKC20796D843ABF92` FOREIGN KEY (`informId`) REFERENCES `inform` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8;

/*Data for the table `notice` */

insert  into `notice`(`id`,`texts`,`readss`,`notTime`,`informId`) values (1,'比比uui会uuiu辉煌ui会回避uiu会',1,'2018-04-19 10:01:43',1),(2,'iu还会给附庸风雅头发',1,'2018-04-25 10:01:47',1),(3,'健康比柯布i比u',1,'2018-04-12 10:01:49',1),(4,'i进步i与宝玉v与vu有',0,'2018-04-13 10:01:52',2),(5,'uv给v一同参与TV u i或会后',1,'2018-04-18 14:26:18',1),(6,'u给v粗犷vu与i不会回鹘hi和',1,'2018-04-27 14:26:34',1),(7,'好久不见侬i后i奇偶i奇偶i后i',1,'2018-04-13 14:26:51',2),(8,' 规划vi贵u过一个i与光顾版面那般美好v北京雍和宫v有',0,'2018-06-28 20:07:26',1);

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

猜你喜欢

转载自www.cnblogs.com/xuchangqi1/p/9245583.html