Pigeon install sql script
SET FOREIGN_KEY_CHECKS=0;
DROP TABLE IF EXISTS `posts`;
CREATE TABLE `posts` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`content` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`author` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`time` bigint(32) NOT NULL,
`public` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=30 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
DROP TABLE IF EXISTS `users`;
CREATE TABLE `users` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`username` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`permission` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`registe_ip` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`registe_time` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`latest_ip` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`latest_time` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`status` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`token` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
© 2019 Pigeon