diff --git a/resources/data/resources_structure.sql b/resources/data/resources_structure.sql new file mode 100644 index 0000000000000000000000000000000000000000..c2fffe583a5194dcbfc408742a02018cf302a17a --- /dev/null +++ b/resources/data/resources_structure.sql @@ -0,0 +1,52 @@ +-- phpMyAdmin SQL Dump +-- version 2.11.1.2 +-- http://www.phpmyadmin.net +-- +-- Host: vigilante.unl.edu +-- Generation Time: Jan 04, 2010 at 11:04 AM +-- Server version: 5.0.51 +-- PHP Version: 5.2.4 + +SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; + +-- +-- Database: `wellnessblog` +-- + +-- -------------------------------------------------------- + +-- +-- Table structure for table `articles` +-- + +CREATE TABLE IF NOT EXISTS `articles` ( + `id` int(10) unsigned NOT NULL auto_increment, + `title` varchar(255) NOT NULL, + `url` varchar(255) NOT NULL, + `year` int(10) unsigned NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `article_has_category` +-- + +CREATE TABLE IF NOT EXISTS `article_has_category` ( + `article_id` int(11) NOT NULL, + `category_id` int(11) NOT NULL, + KEY `article_id` (`article_id`,`category_id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `categories` +-- + +CREATE TABLE IF NOT EXISTS `categories` ( + `id` int(10) unsigned NOT NULL auto_increment, + `title` varchar(255) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1;