db.txt
//dbテーブル作成のカラムコマンド |
|
データーベース名: oneline_bbs |
=============================== |
|
----------------------------------------------------------- |
テーブル名 :members2 |
----------------------------------------------------------- |
テーブルの構造 |
|
CREATE TABLE `members2` ( |
`id` int(11) NOT NULL AUTO_INCREMENT, |
` name` VARCHAR(50) NOT NULL UNIQUE, |
`password` varchar(100) NOT NULL, |
`picture` varchar(255) NOT NULL, |
`created` datetime NOT NULL, |
`modified` timestamp NOT NULL DEFAULT
CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, |
PRIMARY KEY (`id`) |
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=3
; |
|
--
-------------------------------------------------------- |
テーブル名 :posts |
テーブルの構造 |
CREATE TABLE `posts` ( |
`id` int(11) NOT NULL AUTO_INCREMENT, |
`message` text NOT NULL, |
`member_id` int(11) NOT NULL, |
`reply_post_id` int(11) NOT NULL, |
`created` datetime NOT NULL, |
`modified` timestamp NOT NULL DEFAULT
CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, |
PRIMARY KEY (`id`) |
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=5
; |
|
|