This far-ranging satire explores the interplay of industrialization, class, race, and
international politics in a world of commodified labor. 4 Limbo. Bernard Wolfe.
Memorandum To: Dr. James Holten From: Greg Koch Date: Sunday, March 2, 2008 Subject: Database, Admin, and Employee structure I have been working on devising a method of organization for the databases and the data we will be storing in them. The admin side of the website should be a GUI for the databases, allowing (approved) users to insert content to the database and manipulate the data that is already there. Every user will have access to the database, but with different access levels (access key is stored in the users table). Below is a proposed table of access levels Access Key
0
1
2
3
4
View Catalog Update Content Update Catalog Add or Remove Users All usernames are stored in plain text, and their matching password will use MD5 to encrypt the password (so a password can not be retrieved by looking it up in the database). This ensures a certain level of security for the users. I think the best place to store the content of the website is also in the database, this allows us to control who has access to edit the files. It also allows us to create a backend that control the templates and look and feel of the website, so it is uniform. I have created a database layout that should be useable in the project. We may need to add more tables or columns as the project progresses, depending on the amount of automation and database integration we desire. I have included a MYSQL dump (structure and sample data) of this database, as well as a structure table layout.
Database imgtech Table structure for table catalog Field id title author publisher copyright published location desc
Type int(11) varchar(250) varchar(50) varchar(50) date date varchar(50) text
Null Yes Yes Yes Yes Yes Yes Yes Yes
Default NULL
Comments
Dumping data for table catalog id title author 1 The Island of Dr. Moreau H. G. Wells
publisher copyright 1896-01-01
published 1896-01-01
2
We
Yevgeny Zamyatin
1920-01-01
1920-01-01
3
War With the Newts
Karel Capek
1936-01-01
1936-01-01
4
Limbo
Bernard Wolfe
1953-01-01
1953-01-01
5
A Canticle for Leibowitz
Walter M. Miller Jr.
1959-01-01
1959-01-01
6
Babel-17
Samuel R. Delany
1966-01-01
1966-01-01
location desc This timeless fable of biological manipulation explores scientific power in the hands of an imperialist unbound by community or ethical standards. In this early and perhaps greatest 20th-century dystopia, the mechanization of public and private life motivates a stunning cautionary tale. This far-ranging satire explores the interplay of industrialization, class, race, and international politics in a world of commodified labor. What happens to people and to society when the rich, both wounded and hale, can choose to remake their bodies? Science and religion play against each other in this great post-holocaust novel. In a world that is awash in future technologies, language is manipulated both for and against the preservation of our way of life.
Table structure for table content Field id title heading content
Type int(11) varchar(50) varchar(50) text
Null Yes Yes Yes Yes
Default NULL
Comments
Dumping data for table content id title 1 Homepage
heading Welcome to Imaginary Technologies
content Welcome to Imaginary Technologies. This is where we will place the homepage data.
Table structure for table news Field id title headling date content
Type int(11) varchar(250) varchar(250) date text
Null Yes Yes Yes Yes Yes
Default NULL
Comments
headling
date
content
Null Yes Yes
Default NULL
Comments
Dumping data for table news id
title
Table structure for table positions Field id title
Type int(11) varchar(50)
Dumping data for table positions id 1 2 3 4 5
title CEO Database Developer Content Developer Designer Logics Developer
Table structure for table users Field id user pass fisrt last position accesskey
Type int(11) varchar(50) varchar(250) varchar(50) varchar(50) int(11) int(11)
Null Yes Yes Yes Yes Yes Yes Yes
Default NULL
Comments
Dumping data for table users id 1 2
user jholten gkoch
pass fisrt passwordtousemd5 Jim passwordtousemd5 Greg
last Holten Koch
position 1 2
accesskey 4 4
-- phpMyAdmin SQL Dump -- version 2.10.1 -- http://www.phpmyadmin.net --- Host: localhost -- Generation Time: Mar 02, 2008 at 05:11 PM -- Server version: 5.0.44 -- PHP Version: 5.2.4-pl2-gentoo SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; --- Database: `imgtech` --- ---------------------------------------------------------- Table structure for table `catalog` -CREATE TABLE `catalog` ( `id` int(11) NOT NULL auto_increment, `title` varchar(250) NOT NULL, `author` varchar(50) NOT NULL, `publisher` varchar(50) NOT NULL, `copyright` date NOT NULL, `published` date NOT NULL, `location` varchar(50) NOT NULL, `desc` text NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=7 ; --- Dumping data for table `catalog` -INSERT INTO `catalog` (`id`, `title`, `author`, `publisher`, `copyright`, `published`, `location`, `desc`) VALUES (1, 'The Island of Dr. Moreau', 'H. G. Wells', '', '1896-01-01', '1896-01-01', '', 'This timeless fable of biological manipulation explores scientific power in the hands of an imperialist unbound by community or ethical standards. '),
(2, 'We', 'Yevgeny Zamyatin', '', '1920-01-01', '1920-01-01', '', 'In this early and perhaps greatest 20th-century dystopia, the mechanization of public and private life motivates a stunning cautionary tale. '), (3, 'War With the Newts', 'Karel Capek', '', '1936-01-01', '1936-01-01', '', 'This far-ranging satire explores the interplay of industrialization, class, race, and international politics in a world of commodified labor. '), (4, 'Limbo', 'Bernard Wolfe', '', '1953-01-01', '1953-01-01', '', 'What happens to people and to society when the rich, both wounded and hale, can choose to remake their bodies?'), (5, 'A Canticle for Leibowitz', 'Walter M. Miller Jr.', '', '1959-01-01', '1959-01-01', '', 'Science and religion play against each other in this great postholocaust novel. '), (6, 'Babel-17', 'Samuel R. Delany', '', '1966-01-01', '1966-01-01', '', 'In a world that is awash in future technologies, language is manipulated both for and against the preservation of our way of life. '); -- ---------------------------------------------------------- Table structure for table `content` -CREATE TABLE `content` ( `id` int(11) NOT NULL auto_increment, `title` varchar(50) NOT NULL, `heading` varchar(50) NOT NULL, `content` text NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ; --- Dumping data for table `content` -INSERT INTO `content` (`id`, `title`, `heading`, `content`) VALUES (1, 'Homepage', 'Welcome to Imaginary Technologies', 'Welcome to ImaginaryTechnologies. This is where we will place the homepage data.'); -- ---------------------------------------------------------- Table structure for table `news` -CREATE TABLE `news` ( `id` int(11) NOT NULL auto_increment,
`title` varchar(250) NOT NULL, `headling` varchar(250) NOT NULL, `date` date NOT NULL, `content` text NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; --- Dumping data for table `news` --- ---------------------------------------------------------- Table structure for table `positions` -CREATE TABLE `positions` ( `id` int(11) NOT NULL auto_increment, `title` varchar(50) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=6 ; --- Dumping data for table `positions` -INSERT INTO `positions` (`id`, `title`) VALUES (1, 'CEO'), (2, 'Database Developer'), (3, 'Content Developer'), (4, 'Designer'), (5, 'Logics Developer'); -- ---------------------------------------------------------- Table structure for table `users` --
CREATE TABLE `users` ( `id` int(11) NOT NULL auto_increment, `user` varchar(50) NOT NULL, `pass` varchar(250) NOT NULL, `fisrt` varchar(50) NOT NULL, `last` varchar(50) NOT NULL, `position` int(11) NOT NULL, `accesskey` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ; --- Dumping data for table `users` -INSERT INTO `users` (`id`, `user`, `pass`, `fisrt`, `last`, `position`, `accesskey`) VALUES (1, 'jholten', 'passwordtousemd5', 'Jim', 'Holten', 1, 4), (2, 'gkoch', 'passwordtousemd5', 'Greg', 'Koch', 2, 4);