--- /dev/null
+CREATE TABLE `clotho_calendars` (
+ `calendar_id` int(11) NOT NULL AUTO_INCREMENT,
+ `calendar_name` varchar(128) NOT NULL,
+ `calendar_hoursinday` int(11) NOT NULL,
+ `calendar_hoursinweek` int(11) NOT NULL,
+ `calendar_type` varchar(32) NOT NULL,
+ `calendar_data` text NOT NULL,
+ PRIMARY KEY (`calendar_id`)
+);
+
+CREATE TABLE `clotho_resource_availability` (
+ `availability_id` int(11) NOT NULL AUTO_INCREMENT,
+ `resource_id` int(11) NOT NULL,
+ `availability_date` int(11) NOT NULL,
+ `availability_hours` decimal(10,0) NOT NULL,
+ PRIMARY KEY (`availability_id`)
+);
+
+CREATE TABLE `clotho_resources` (
+ `resource_id` int(11) NOT NULL AUTO_INCREMENT,
+ `resource_type` char(1) NOT NULL,
+ `resource_name` varchar(128) NOT NULL,
+ `resource_uid` varchar(64) DEFAULT NULL,
+ `resource_base_calendar` int(11) NOT NULL,
+ `resource_start` int(11) DEFAULT NULL,
+ `resource_finish` int(11) DEFAULT NULL,
+ PRIMARY KEY (`resource_id`)
+);
+
+CREATE TABLE `clotho_wbs_dependencies` (
+ `dependency_id` int(11) NOT NULL AUTO_INCREMENT,
+ `dependency_type` char(1) NOT NULL,
+ `dependency_lhs_item` int(11) NOT NULL,
+ `dependency_rhs_item` int(11) NOT NULL,
+ `dependency_duration` varchar(20) DEFAULT NULL,
+ PRIMARY KEY (`dependency_id`)
+);
+
+CREATE TABLE `clotho_wbs_items` (
+ `item_id` int(11) NOT NULL AUTO_INCREMENT,
+ `item_name` varchar(128) DEFAULT NULL,
+ `item_parent` int(11) NOT NULL,
+ `item_duration` varchar(20) DEFAULT NULL,
+ `item_start` int(11) DEFAULT NULL,
+ `item_start_fixed` int(11) NOT NULL,
+ `item_finish` int(11) DEFAULT NULL,
+ `item_finish_fixed` int(11) NOT NULL,
+ PRIMARY KEY (`item_id`)
+);
+
+CREATE TABLE `clotho_wbs_resources` (
+ `item_id` int(11) NOT NULL,
+ `resource_id` int(11) NOT NULL
+);
+++ /dev/null
-<?xml version="1.0" encoding="ISO-8859-1" ?>
-<database>
-
- <name><variable>name</variable></name>
- <create>true</create>
- <overwrite>false</overwrite>
-
- <table>
-
- <name>clotho_calendars</name>
-
- <declaration>
-
- <field>
- <name>calendar_id</name>
- <type>integer</type>
- <unsigned>false</unsigned>
- <length>4</length>
- <notnull>true</notnull>
- <default>0</default>
- <autoincrement>1</autoincrement>
- </field>
-
- <field>
- <name>calendar_name</name>
- <type>text</type>
- <length>128</length>
- <notnull>true</notnull>
- <default></default>
- </field>
-
- <field>
- <name>calendar_hoursinday</name>
- <type>integer</type>
- <unsigned>false</unsigned>
- <length>4</length>
- <notnull>true</notnull>
- <default></default>
- </field>
-
- <field>
- <name>calendar_hoursinweek</name>
- <type>integer</type>
- <unsigned>false</unsigned>
- <length>4</length>
- <notnull>true</notnull>
- <default></default>
- </field>
-
- <field>
- <name>calendar_type</name>
- <type>text</type>
- <length>32</length>
- <notnull>true</notnull>
- <default></default>
- </field>
-
- <field>
- <name>calendar_data</name>
- <type>text</type>
- <notnull>true</notnull>
- <default></default>
- </field>
-
- </declaration>
-
- </table>
-
- <table>
-
- <name>clotho_resource_availability</name>
-
- <declaration>
-
- <field>
- <name>availability_id</name>
- <type>integer</type>
- <unsigned>false</unsigned>
- <length>4</length>
- <notnull>true</notnull>
- <default>0</default>
- <autoincrement>1</autoincrement>
- </field>
-
- <field>
- <name>resource_id</name>
- <type>integer</type>
- <unsigned>false</unsigned>
- <length>4</length>
- <notnull>true</notnull>
- <default></default>
- </field>
-
- <field>
- <name>availability_date</name>
- <type>integer</type>
- <unsigned>false</unsigned>
- <length>4</length>
- <notnull>true</notnull>
- <default></default>
- </field>
-
- <field>
- <name>availability_hours</name>
- <type>decimal</type>
- <length>524290</length>
- <notnull>true</notnull>
- <default></default>
- </field>
-
- </declaration>
-
- </table>
-
- <table>
-
- <name>clotho_resources</name>
-
- <declaration>
-
- <field>
- <name>resource_id</name>
- <type>integer</type>
- <unsigned>false</unsigned>
- <length>4</length>
- <notnull>true</notnull>
- <default>0</default>
- <autoincrement>1</autoincrement>
- </field>
-
- <field>
- <name>resource_type</name>
- <type>text</type>
- <length>1</length>
- <notnull>true</notnull>
- <default></default>
- </field>
-
- <field>
- <name>resource_name</name>
- <type>text</type>
- <length>128</length>
- <notnull>true</notnull>
- <default></default>
- </field>
-
- <field>
- <name>resource_uid</name>
- <type>text</type>
- <length>64</length>
- <notnull>false</notnull>
- <default></default>
- </field>
-
- <field>
- <name>resource_base_calendar</name>
- <type>integer</type>
- <unsigned>false</unsigned>
- <length>4</length>
- <notnull>true</notnull>
- <default></default>
- </field>
-
- <field>
- <name>resource_start</name>
- <type>integer</type>
- <unsigned>false</unsigned>
- <length>4</length>
- <notnull>false</notnull>
- <default></default>
- </field>
-
- <field>
- <name>resource_finish</name>
- <type>integer</type>
- <unsigned>false</unsigned>
- <length>4</length>
- <notnull>false</notnull>
- <default></default>
- </field>
-
- </declaration>
-
- </table>
-
- <table>
-
- <name>clotho_wbs_dependencies</name>
-
- <declaration>
-
- <field>
- <name>dependency_id</name>
- <type>integer</type>
- <unsigned>false</unsigned>
- <length>4</length>
- <notnull>true</notnull>
- <default>0</default>
- <autoincrement>1</autoincrement>
- </field>
-
- <field>
- <name>dependency_type</name>
- <type>text</type>
- <length>1</length>
- <notnull>true</notnull>
- <default></default>
- </field>
-
- <field>
- <name>dependency_lhs_item</name>
- <type>integer</type>
- <unsigned>false</unsigned>
- <length>4</length>
- <notnull>true</notnull>
- <default></default>
- </field>
-
- <field>
- <name>dependency_rhs_item</name>
- <type>integer</type>
- <unsigned>false</unsigned>
- <length>4</length>
- <notnull>true</notnull>
- <default></default>
- </field>
-
- <field>
- <name>dependency_duration</name>
- <type>text</type>
- <length>20</length>
- <notnull>false</notnull>
- <default></default>
- </field>
-
- </declaration>
-
- </table>
-
- <table>
-
- <name>clotho_wbs_items</name>
-
- <declaration>
-
- <field>
- <name>item_id</name>
- <type>integer</type>
- <unsigned>false</unsigned>
- <length>4</length>
- <notnull>true</notnull>
- <default>0</default>
- <autoincrement>1</autoincrement>
- </field>
-
- <field>
- <name>item_name</name>
- <type>text</type>
- <length>128</length>
- <notnull>true</notnull>
- <default></default>
- </field>
-
- <field>
- <name>item_parent</name>
- <type>integer</type>
- <unsigned>false</unsigned>
- <length>4</length>
- <notnull>true</notnull>
- <default></default>
- </field>
-
- <field>
- <name>item_duration</name>
- <type>text</type>
- <length>20</length>
- <notnull>false</notnull>
- <default></default>
- </field>
-
- <field>
- <name>item_start</name>
- <type>integer</type>
- <unsigned>false</unsigned>
- <length>4</length>
- <notnull>false</notnull>
- <default></default>
- </field>
-
- <field>
- <name>item_start_fixed</name>
- <type>integer</type>
- <unsigned>false</unsigned>
- <length>4</length>
- <notnull>true</notnull>
- <default>0</default>
- </field>
-
- <field>
- <name>item_finish</name>
- <type>integer</type>
- <unsigned>false</unsigned>
- <length>4</length>
- <notnull>false</notnull>
- <default></default>
- </field>
-
- <field>
- <name>item_finish_fixed</name>
- <type>integer</type>
- <unsigned>false</unsigned>
- <length>4</length>
- <notnull>true</notnull>
- <default>0</default>
- </field>
-
- </declaration>
-
- </table>
-
- <table>
-
- <name>clotho_wbs_resources</name>
-
- <declaration>
-
- <field>
- <name>item_id</name>
- <type>integer</type>
- <unsigned>false</unsigned>
- <length>4</length>
- <notnull>true</notnull>
- <default></default>
- </field>
-
- <field>
- <name>resource_id</name>
- <type>integer</type>
- <unsigned>false</unsigned>
- <length>4</length>
- <notnull>true</notnull>
- <default></default>
- </field>
-
- </declaration>
-
- </table>
-
-</database>