Permalink
Browse files

adding SQL file to initialize the database for the example tables

  • Loading branch information...
1 parent 751582c commit 8df596e225fd29cc1f69fb827547f17e86e80e00 @enygma committed May 5, 2012
Showing with 20 additions and 0 deletions.
  1. +20 −0 init.sql
View
20 init.sql
@@ -0,0 +1,20 @@
+-- initialize our tables
+
+CREATE TABLE `users` (
+ name VARCHAR(100),
+ password VARCHAR(32),
+ ID INT NOT NULL AUTO_INCREMENT,
+ PRIMARY KEY(ID)
+);
+
+CREATE TABLE `chat_user` (
+ username VARCHAR(100),
+ ID INT NOT NULL AUTO_INCREMENT,
+ PRIMARY KEY(ID)
+);
+CREATE TABLE `chat_messages` (
+ message TEXT,
+ chatuser_id INT,
+ ID INT NOT NULL AUTO_INCREMENT,
+ PRIMARY KEY(ID)
+);

0 comments on commit 8df596e

Please sign in to comment.