create_blog_posts.sql 432 B

123456789101112
  1. CREATE TABLE `blog_posts` (
  2. `post_id` int(11) NOT NULL AUTO_INCREMENT,
  3. `post_title` text,
  4. `post_content` longtext,
  5. `post_timestamp` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  6. `post_draft` longtext,
  7. `post_url` varchar(255) DEFAULT NULL,
  8. `post_deleted` tinyint(4) DEFAULT '0',
  9. `user_id` int(11) DEFAULT NULL,
  10. PRIMARY KEY (`post_id`),
  11. UNIQUE KEY `post_url_UNIQUE` (`post_url`)
  12. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;