diff options
author | Andreas Habel <mail@exceptionfault.de> | 2009-10-20 19:03:02 +0200 |
---|---|---|
committer | Andreas Habel <mail@exceptionfault.de> | 2009-10-20 19:03:02 +0200 |
commit | 6e1d4a6d8b9288356e64674f41209be4f4c2acfe (patch) | |
tree | 48bd44c04c0d3880d28652637bb0e925aac8b3d1 /sql | |
parent | 5fdd082f7b4631d75b920e4ea5736dc67ab056dc (diff) | |
download | website-6e1d4a6d8b9288356e64674f41209be4f4c2acfe.tar.gz website-6e1d4a6d8b9288356e64674f41209be4f4c2acfe.tar.bz2 website-6e1d4a6d8b9288356e64674f41209be4f4c2acfe.tar.xz website-6e1d4a6d8b9288356e64674f41209be4f4c2acfe.zip |
New accounts will be written to a mysql database
Diffstat (limited to 'sql')
-rw-r--r-- | sql/createTables.sql | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sql/createTables.sql b/sql/createTables.sql new file mode 100644 index 0000000..6442b6b --- /dev/null +++ b/sql/createTables.sql @@ -0,0 +1,13 @@ +CREATE TABLE `tmw_accounts` +( + `ID` INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY , + `USERNAME` VARCHAR( 100 ) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL , + `PASSWORD` VARCHAR( 100 ) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL , + `EMAIL` VARCHAR( 200 ) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL , + `STATE` TINYINT UNSIGNED NOT NULL DEFAULT '0', + `REGISTRATION` TIMESTAMP ON UPDATE CURRENT_TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP , + `GENDER` TINYINT UNSIGNED NOT NULL DEFAULT '0', + -- + INDEX ( `STATE` ) , + UNIQUE ( `USERNAME` ) +) ENGINE = InnoDB; |