|
@ -0,0 +1,22 @@ |
|
|
|
|
|
# zapytania do Bazy |
|
|
|
|
|
# Galeria Suczawy 2009 |
|
|
|
|
|
# 2009 (c) PioDer |
|
|
|
|
|
# $Id$ |
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE `photos` ( |
|
|
|
|
|
`id` SMALLINT( 4 ) NOT NULL , |
|
|
|
|
|
`thumb_name` VARCHAR( 20 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL , |
|
|
|
|
|
`photo_name` VARCHAR( 20 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL , |
|
|
|
|
|
`author` VARCHAR( 30 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL , |
|
|
|
|
|
`description` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL , |
|
|
|
|
|
PRIMARY KEY ( `id` ) |
|
|
|
|
|
) ENGINE = MYISAM CHARACTER SET utf8 COLLATE utf8_general_ci; |
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE `admins` ( |
|
|
|
|
|
`id` SMALLINT( 1 ) NOT NULL , |
|
|
|
|
|
`nick` VARCHAR( 20 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL , |
|
|
|
|
|
`password` VARCHAR( 200 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL , |
|
|
|
|
|
`email` VARCHAR( 20 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL , |
|
|
|
|
|
`IP` VARCHAR( 14 ) NOT NULL , |
|
|
|
|
|
PRIMARY KEY ( `id` ) |
|
|
|
|
|
) ENGINE = MYISAM CHARACTER SET utf8 COLLATE utf8_general_ci; |