teamyy / gotcha

A crawler to find a lot of humor post
MIT License
0 stars 0 forks source link

데이터베이스 스키마 정의 #1

Closed skyoo2003 closed 8 years ago

skyoo2003 commented 8 years ago
CREATE TABLE `articles` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `title` text NOT NULL,
  `content` longtext NOT NULL,
  `writer` varchar(64) NOT NULL DEFAULT '',
  `created_at` datetime NOT NULL,
  `url` varchar(240) CHARACTER SET utf8 NOT NULL DEFAULT '',
  `category` varchar(32) CHARACTER SET utf8 NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  UNIQUE KEY `url` (`url`),
  KEY `category` (`category`),
  KEY `created_at` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
skyoo2003 commented 8 years ago

아티클 테이블 스키마 확정