photo_albums
album_id SMALLINT(5) UNSIGNED NOT NULL AUTO_INCREMENT,
album_title VARCHAR(100) NOT NULL DEFAULT '',
album_info VARCHAR(200) DEFAULT '',
album_order SMALLINT(5) UNSIGNED NOT NULL DEFAULT '0',
PRIMARY KEY (album_id)
photos
photo_id SMALLINT(5) UNSIGNED NOT NULL AUTO_INCREMENT,
album_id SMALLINT(5) UNSIGNED NOT NULL DEFAULT '0',
photo_title VARCHAR(100) NOT NULL DEFAULT '',
photo_date INT(10) UNSIGNED NOT NULL DEFAULT '0',
user_id SMALLINT(5) UNSIGNED NOT NULL DEFAULT '0',
photo_views SMALLINT(5) UNSIGNED NOT NULL DEFAULT '0',
photo_order SMALLINT(5) UNSIGNED NOT NULL DEFAULT '0',
PRIMARY KEY (photo_id)
0 replies