Permalink
Browse files

add initial sql

  • Loading branch information...
1 parent d9dc900 commit 705d8b0e3f694e19e967a25b4a906a313ab700c7 Alex Hudenko committed Nov 23, 2011
Showing with 13 additions and 0 deletions.
  1. +13 −0 data/message.sql
View
@@ -0,0 +1,13 @@
+CREATE TABLE `messages` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `sender_id` int(11) NOT NULL,
+ `receiver_id` int(11) NOT NULL,
+ `subject` varchar(256) NOT NULL DEFAULT '',
+ `body` text,
+ `is_read` enum('0','1') NOT NULL DEFAULT '0',
+ `deleted_by` enum('sender','receiver') DEFAULT NULL,
+ `created_at` datetime NOT NULL,
+ PRIMARY KEY (`id`),
+ KEY `sender` (`sender_id`),
+ KEY `reciever` (`receiver_id`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8;

0 comments on commit 705d8b0

Please sign in to comment.