From e66d22d4fca52f64a4781887ff1ba0a856cc65fe Mon Sep 17 00:00:00 2001
From: Krista Naber <kristanaber@gmail.com>
Date: Mon, 4 Jan 2010 17:05:09 +0000
Subject: [PATCH] Add database structure sql. Use mysql -u wellness -p wellness
 < resources_structure.sql to import the structure.

---
 resources/data/resources_structure.sql | 52 ++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)
 create mode 100644 resources/data/resources_structure.sql

diff --git a/resources/data/resources_structure.sql b/resources/data/resources_structure.sql
new file mode 100644
index 0000000..c2fffe5
--- /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;
-- 
GitLab