Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/AnonR/smanonr..../var/softacul.../phpsch
File: phpsch.sql
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
[500] Fix | Delete
[501] Fix | Delete
-- --------------------------------------------------------
[502] Fix | Delete
[503] Fix | Delete
--
[504] Fix | Delete
-- Table structure for table `reservation_accessories`
[505] Fix | Delete
--
[506] Fix | Delete
[507] Fix | Delete
CREATE TABLE `reservation_accessories` (
[508] Fix | Delete
`series_id` int(10) unsigned NOT NULL,
[509] Fix | Delete
`accessory_id` smallint(5) unsigned NOT NULL,
[510] Fix | Delete
`quantity` smallint(5) unsigned DEFAULT NULL,
[511] Fix | Delete
PRIMARY KEY (`series_id`,`accessory_id`),
[512] Fix | Delete
KEY `accessory_id` (`accessory_id`),
[513] Fix | Delete
KEY `series_id` (`series_id`)
[514] Fix | Delete
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
[515] Fix | Delete
[516] Fix | Delete
-- --------------------------------------------------------
[517] Fix | Delete
[518] Fix | Delete
--
[519] Fix | Delete
-- Table structure for table `reservation_color_rules`
[520] Fix | Delete
--
[521] Fix | Delete
[522] Fix | Delete
CREATE TABLE `reservation_color_rules` (
[523] Fix | Delete
`reservation_color_rule_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
[524] Fix | Delete
`custom_attribute_id` mediumint(8) unsigned NOT NULL,
[525] Fix | Delete
`attribute_type` smallint(5) unsigned DEFAULT NULL,
[526] Fix | Delete
`required_value` text,
[527] Fix | Delete
`comparison_type` smallint(5) unsigned DEFAULT NULL,
[528] Fix | Delete
`color` varchar(50) DEFAULT NULL,
[529] Fix | Delete
PRIMARY KEY (`reservation_color_rule_id`),
[530] Fix | Delete
KEY `custom_attribute_id` (`custom_attribute_id`)
[531] Fix | Delete
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
[532] Fix | Delete
[533] Fix | Delete
-- --------------------------------------------------------
[534] Fix | Delete
[535] Fix | Delete
--
[536] Fix | Delete
-- Table structure for table `reservation_files`
[537] Fix | Delete
--
[538] Fix | Delete
[539] Fix | Delete
CREATE TABLE `reservation_files` (
[540] Fix | Delete
`file_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
[541] Fix | Delete
`series_id` int(10) unsigned NOT NULL,
[542] Fix | Delete
`file_name` varchar(250) NOT NULL,
[543] Fix | Delete
`file_type` varchar(75) DEFAULT NULL,
[544] Fix | Delete
`file_size` varchar(45) NOT NULL,
[545] Fix | Delete
`file_extension` varchar(10) NOT NULL,
[546] Fix | Delete
PRIMARY KEY (`file_id`),
[547] Fix | Delete
KEY `series_id` (`series_id`)
[548] Fix | Delete
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
[549] Fix | Delete
[550] Fix | Delete
-- --------------------------------------------------------
[551] Fix | Delete
[552] Fix | Delete
--
[553] Fix | Delete
-- Table structure for table `reservation_guests`
[554] Fix | Delete
--
[555] Fix | Delete
[556] Fix | Delete
CREATE TABLE `reservation_guests` (
[557] Fix | Delete
`reservation_instance_id` int(10) unsigned NOT NULL,
[558] Fix | Delete
`email` varchar(255) NOT NULL,
[559] Fix | Delete
`reservation_user_level` tinyint(2) unsigned NOT NULL,
[560] Fix | Delete
PRIMARY KEY (`reservation_instance_id`,`email`),
[561] Fix | Delete
KEY `reservation_guests_reservation_instance_id` (`reservation_instance_id`),
[562] Fix | Delete
KEY `reservation_guests_email_address` (`email`),
[563] Fix | Delete
KEY `reservation_guests_reservation_user_level` (`reservation_user_level`)
[564] Fix | Delete
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
[565] Fix | Delete
[566] Fix | Delete
-- --------------------------------------------------------
[567] Fix | Delete
[568] Fix | Delete
--
[569] Fix | Delete
-- Table structure for table `reservation_instances`
[570] Fix | Delete
--
[571] Fix | Delete
[572] Fix | Delete
CREATE TABLE `reservation_instances` (
[573] Fix | Delete
`reservation_instance_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
[574] Fix | Delete
`start_date` datetime NOT NULL,
[575] Fix | Delete
`end_date` datetime NOT NULL,
[576] Fix | Delete
`reference_number` varchar(50) NOT NULL,
[577] Fix | Delete
`series_id` int(10) unsigned NOT NULL,
[578] Fix | Delete
`checkin_date` datetime DEFAULT NULL,
[579] Fix | Delete
`checkout_date` datetime DEFAULT NULL,
[580] Fix | Delete
`previous_end_date` datetime DEFAULT NULL,
[581] Fix | Delete
`credit_count` decimal(7,2) unsigned DEFAULT NULL,
[582] Fix | Delete
PRIMARY KEY (`reservation_instance_id`),
[583] Fix | Delete
KEY `start_date` (`start_date`),
[584] Fix | Delete
KEY `end_date` (`end_date`),
[585] Fix | Delete
KEY `reference_number` (`reference_number`),
[586] Fix | Delete
KEY `series_id` (`series_id`),
[587] Fix | Delete
KEY `checkin_date` (`checkin_date`)
[588] Fix | Delete
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
[589] Fix | Delete
[590] Fix | Delete
-- --------------------------------------------------------
[591] Fix | Delete
[592] Fix | Delete
--
[593] Fix | Delete
-- Table structure for table `reservation_reminders`
[594] Fix | Delete
--
[595] Fix | Delete
[596] Fix | Delete
CREATE TABLE `reservation_reminders` (
[597] Fix | Delete
`reminder_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
[598] Fix | Delete
`series_id` int(10) unsigned NOT NULL,
[599] Fix | Delete
`minutes_prior` int(10) unsigned NOT NULL,
[600] Fix | Delete
`reminder_type` tinyint(2) unsigned NOT NULL,
[601] Fix | Delete
PRIMARY KEY (`reminder_id`),
[602] Fix | Delete
KEY `series_id` (`series_id`),
[603] Fix | Delete
KEY `reminder_type` (`reminder_type`)
[604] Fix | Delete
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
[605] Fix | Delete
[606] Fix | Delete
-- --------------------------------------------------------
[607] Fix | Delete
[608] Fix | Delete
--
[609] Fix | Delete
-- Table structure for table `reservation_resources`
[610] Fix | Delete
--
[611] Fix | Delete
[612] Fix | Delete
CREATE TABLE `reservation_resources` (
[613] Fix | Delete
`series_id` int(10) unsigned NOT NULL,
[614] Fix | Delete
`resource_id` smallint(5) unsigned NOT NULL,
[615] Fix | Delete
`resource_level_id` tinyint(2) unsigned NOT NULL,
[616] Fix | Delete
PRIMARY KEY (`series_id`,`resource_id`),
[617] Fix | Delete
KEY `resource_id` (`resource_id`),
[618] Fix | Delete
KEY `series_id` (`series_id`)
[619] Fix | Delete
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
[620] Fix | Delete
[621] Fix | Delete
-- --------------------------------------------------------
[622] Fix | Delete
[623] Fix | Delete
--
[624] Fix | Delete
-- Table structure for table `reservation_series`
[625] Fix | Delete
--
[626] Fix | Delete
[627] Fix | Delete
CREATE TABLE `reservation_series` (
[628] Fix | Delete
`series_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
[629] Fix | Delete
`date_created` datetime NOT NULL,
[630] Fix | Delete
`last_modified` datetime DEFAULT NULL,
[631] Fix | Delete
`title` varchar(300) DEFAULT NULL,
[632] Fix | Delete
`description` text,
[633] Fix | Delete
`allow_participation` tinyint(1) unsigned NOT NULL,
[634] Fix | Delete
`allow_anon_participation` tinyint(1) unsigned NOT NULL,
[635] Fix | Delete
`type_id` tinyint(2) unsigned NOT NULL,
[636] Fix | Delete
`status_id` tinyint(2) unsigned NOT NULL,
[637] Fix | Delete
`repeat_type` varchar(10) DEFAULT NULL,
[638] Fix | Delete
`repeat_options` varchar(255) DEFAULT NULL,
[639] Fix | Delete
`owner_id` mediumint(8) unsigned NOT NULL,
[640] Fix | Delete
`legacyid` char(16) DEFAULT NULL,
[641] Fix | Delete
`last_action_by` mediumint(8) unsigned DEFAULT NULL,
[642] Fix | Delete
`terms_date_accepted` datetime DEFAULT NULL,
[643] Fix | Delete
PRIMARY KEY (`series_id`),
[644] Fix | Delete
KEY `type_id` (`type_id`),
[645] Fix | Delete
KEY `status_id` (`status_id`),
[646] Fix | Delete
KEY `reservations_owner` (`owner_id`)
[647] Fix | Delete
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
[648] Fix | Delete
[649] Fix | Delete
-- --------------------------------------------------------
[650] Fix | Delete
[651] Fix | Delete
--
[652] Fix | Delete
-- Table structure for table `reservation_statuses`
[653] Fix | Delete
--
[654] Fix | Delete
[655] Fix | Delete
CREATE TABLE `reservation_statuses` (
[656] Fix | Delete
`status_id` tinyint(2) unsigned NOT NULL,
[657] Fix | Delete
`label` varchar(85) NOT NULL,
[658] Fix | Delete
PRIMARY KEY (`status_id`)
[659] Fix | Delete
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
[660] Fix | Delete
[661] Fix | Delete
--
[662] Fix | Delete
-- Dumping data for table `reservation_statuses`
[663] Fix | Delete
--
[664] Fix | Delete
[665] Fix | Delete
INSERT INTO `reservation_statuses` VALUES
[666] Fix | Delete
(1, 'Created'),
[667] Fix | Delete
(2, 'Deleted'),
[668] Fix | Delete
(3, 'Pending');
[669] Fix | Delete
[670] Fix | Delete
-- --------------------------------------------------------
[671] Fix | Delete
[672] Fix | Delete
--
[673] Fix | Delete
-- Table structure for table `reservation_types`
[674] Fix | Delete
--
[675] Fix | Delete
[676] Fix | Delete
CREATE TABLE `reservation_types` (
[677] Fix | Delete
`type_id` tinyint(2) unsigned NOT NULL,
[678] Fix | Delete
`label` varchar(85) NOT NULL,
[679] Fix | Delete
PRIMARY KEY (`type_id`)
[680] Fix | Delete
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
[681] Fix | Delete
[682] Fix | Delete
--
[683] Fix | Delete
-- Dumping data for table `reservation_types`
[684] Fix | Delete
--
[685] Fix | Delete
[686] Fix | Delete
INSERT INTO `reservation_types` VALUES
[687] Fix | Delete
(1, 'Reservation'),
[688] Fix | Delete
(2, 'Blackout');
[689] Fix | Delete
[690] Fix | Delete
-- --------------------------------------------------------
[691] Fix | Delete
[692] Fix | Delete
--
[693] Fix | Delete
-- Table structure for table `reservation_users`
[694] Fix | Delete
--
[695] Fix | Delete
[696] Fix | Delete
CREATE TABLE `reservation_users` (
[697] Fix | Delete
`reservation_instance_id` int(10) unsigned NOT NULL,
[698] Fix | Delete
`user_id` mediumint(8) unsigned NOT NULL,
[699] Fix | Delete
`reservation_user_level` tinyint(2) unsigned NOT NULL,
[700] Fix | Delete
PRIMARY KEY (`reservation_instance_id`,`user_id`),
[701] Fix | Delete
KEY `reservation_instance_id` (`reservation_instance_id`),
[702] Fix | Delete
KEY `user_id` (`user_id`),
[703] Fix | Delete
KEY `reservation_user_level` (`reservation_user_level`)
[704] Fix | Delete
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
[705] Fix | Delete
[706] Fix | Delete
-- --------------------------------------------------------
[707] Fix | Delete
[708] Fix | Delete
--
[709] Fix | Delete
-- Table structure for table `reservation_waitlist_requests`
[710] Fix | Delete
--
[711] Fix | Delete
[712] Fix | Delete
CREATE TABLE `reservation_waitlist_requests` (
[713] Fix | Delete
`reservation_waitlist_request_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
[714] Fix | Delete
`user_id` mediumint(8) unsigned NOT NULL,
[715] Fix | Delete
`resource_id` smallint(5) unsigned NOT NULL,
[716] Fix | Delete
`start_date` datetime DEFAULT NULL,
[717] Fix | Delete
`end_date` datetime DEFAULT NULL,
[718] Fix | Delete
PRIMARY KEY (`reservation_waitlist_request_id`),
[719] Fix | Delete
KEY `user_id` (`user_id`),
[720] Fix | Delete
KEY `resource_id` (`resource_id`)
[721] Fix | Delete
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
[722] Fix | Delete
[723] Fix | Delete
-- --------------------------------------------------------
[724] Fix | Delete
[725] Fix | Delete
--
[726] Fix | Delete
-- Table structure for table `resources`
[727] Fix | Delete
--
[728] Fix | Delete
[729] Fix | Delete
CREATE TABLE `resources` (
[730] Fix | Delete
`resource_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
[731] Fix | Delete
`name` varchar(85) NOT NULL,
[732] Fix | Delete
`location` varchar(255) DEFAULT NULL,
[733] Fix | Delete
`contact_info` varchar(255) DEFAULT NULL,
[734] Fix | Delete
`description` text,
[735] Fix | Delete
`notes` text,
[736] Fix | Delete
`min_duration` int(11) DEFAULT NULL,
[737] Fix | Delete
`min_increment` int(11) DEFAULT NULL,
[738] Fix | Delete
`max_duration` int(11) DEFAULT NULL,
[739] Fix | Delete
`unit_cost` decimal(7,2) DEFAULT NULL,
[740] Fix | Delete
`autoassign` tinyint(1) unsigned NOT NULL DEFAULT '1',
[741] Fix | Delete
`requires_approval` tinyint(1) unsigned NOT NULL,
[742] Fix | Delete
`allow_multiday_reservations` tinyint(1) unsigned NOT NULL DEFAULT '1',
[743] Fix | Delete
`max_participants` mediumint(8) unsigned DEFAULT NULL,
[744] Fix | Delete
`min_notice_time_add` int(11) DEFAULT NULL,
[745] Fix | Delete
`max_notice_time` int(11) DEFAULT NULL,
[746] Fix | Delete
`image_name` varchar(50) DEFAULT NULL,
[747] Fix | Delete
`schedule_id` smallint(5) unsigned NOT NULL,
[748] Fix | Delete
`legacyid` char(16) DEFAULT NULL,
[749] Fix | Delete
`admin_group_id` smallint(5) unsigned DEFAULT NULL,
[750] Fix | Delete
`public_id` varchar(20) DEFAULT NULL,
[751] Fix | Delete
`allow_calendar_subscription` tinyint(1) NOT NULL DEFAULT '0',
[752] Fix | Delete
`sort_order` smallint(5) unsigned DEFAULT NULL,
[753] Fix | Delete
`resource_type_id` mediumint(8) unsigned DEFAULT NULL,
[754] Fix | Delete
`status_id` tinyint(3) unsigned NOT NULL DEFAULT '1',
[755] Fix | Delete
`resource_status_reason_id` smallint(5) unsigned DEFAULT NULL,
[756] Fix | Delete
`buffer_time` int(10) unsigned DEFAULT NULL,
[757] Fix | Delete
`enable_check_in` tinyint(1) unsigned NOT NULL DEFAULT '0',
[758] Fix | Delete
`auto_release_minutes` smallint(5) unsigned DEFAULT NULL,
[759] Fix | Delete
`color` varchar(10) DEFAULT NULL,
[760] Fix | Delete
`allow_display` tinyint(1) unsigned NOT NULL DEFAULT '0',
[761] Fix | Delete
`credit_count` decimal(7,2) unsigned DEFAULT NULL,
[762] Fix | Delete
`peak_credit_count` decimal(7,2) unsigned DEFAULT NULL,
[763] Fix | Delete
`min_notice_time_update` int(11) DEFAULT NULL,
[764] Fix | Delete
`min_notice_time_delete` int(11) DEFAULT NULL,
[765] Fix | Delete
`date_created` datetime DEFAULT NULL,
[766] Fix | Delete
`last_modified` datetime DEFAULT NULL,
[767] Fix | Delete
`additional_properties` text,
[768] Fix | Delete
PRIMARY KEY (`resource_id`),
[769] Fix | Delete
UNIQUE KEY `public_id` (`public_id`),
[770] Fix | Delete
KEY `schedule_id` (`schedule_id`),
[771] Fix | Delete
KEY `admin_group_id` (`admin_group_id`),
[772] Fix | Delete
KEY `resource_type_id` (`resource_type_id`),
[773] Fix | Delete
KEY `resource_status_reason_id` (`resource_status_reason_id`),
[774] Fix | Delete
KEY `auto_release_minutes` (`auto_release_minutes`)
[775] Fix | Delete
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;
[776] Fix | Delete
[777] Fix | Delete
--
[778] Fix | Delete
-- Dumping data for table `resources`
[779] Fix | Delete
--
[780] Fix | Delete
[781] Fix | Delete
INSERT INTO `resources` VALUES
[782] Fix | Delete
(1, 'Conference Room 1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 0, 1, NULL, NULL, NULL, 'resource1.jpg', 1, NULL, NULL, NULL, 0, NULL, NULL, 1, NULL, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
[783] Fix | Delete
(2, 'Conference Room 2', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 0, 1, NULL, NULL, NULL, 'resource2.jpg', 1, NULL, NULL, NULL, 0, NULL, NULL, 1, NULL, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
[784] Fix | Delete
[785] Fix | Delete
-- --------------------------------------------------------
[786] Fix | Delete
[787] Fix | Delete
--
[788] Fix | Delete
-- Table structure for table `resource_accessories`
[789] Fix | Delete
--
[790] Fix | Delete
[791] Fix | Delete
CREATE TABLE `resource_accessories` (
[792] Fix | Delete
`resource_accessory_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
[793] Fix | Delete
`resource_id` smallint(5) unsigned NOT NULL,
[794] Fix | Delete
`accessory_id` smallint(5) unsigned NOT NULL,
[795] Fix | Delete
`minimum_quantity` smallint(6) DEFAULT NULL,
[796] Fix | Delete
`maximum_quantity` smallint(6) DEFAULT NULL,
[797] Fix | Delete
PRIMARY KEY (`resource_accessory_id`),
[798] Fix | Delete
KEY `resource_id` (`resource_id`),
[799] Fix | Delete
KEY `accessory_id` (`accessory_id`)
[800] Fix | Delete
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
[801] Fix | Delete
[802] Fix | Delete
-- --------------------------------------------------------
[803] Fix | Delete
[804] Fix | Delete
--
[805] Fix | Delete
-- Table structure for table `resource_groups`
[806] Fix | Delete
--
[807] Fix | Delete
[808] Fix | Delete
CREATE TABLE `resource_groups` (
[809] Fix | Delete
`resource_group_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
[810] Fix | Delete
`resource_group_name` varchar(75) DEFAULT NULL,
[811] Fix | Delete
`parent_id` mediumint(8) unsigned DEFAULT NULL,
[812] Fix | Delete
`public_id` varchar(20) DEFAULT NULL,
[813] Fix | Delete
PRIMARY KEY (`resource_group_id`),
[814] Fix | Delete
KEY `resource_groups_parent_id` (`parent_id`)
[815] Fix | Delete
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
[816] Fix | Delete
[817] Fix | Delete
-- --------------------------------------------------------
[818] Fix | Delete
[819] Fix | Delete
--
[820] Fix | Delete
-- Table structure for table `resource_group_assignment`
[821] Fix | Delete
--
[822] Fix | Delete
[823] Fix | Delete
CREATE TABLE `resource_group_assignment` (
[824] Fix | Delete
`resource_group_id` mediumint(8) unsigned NOT NULL,
[825] Fix | Delete
`resource_id` smallint(5) unsigned NOT NULL,
[826] Fix | Delete
PRIMARY KEY (`resource_group_id`,`resource_id`),
[827] Fix | Delete
KEY `resource_group_assignment_resource_id` (`resource_id`),
[828] Fix | Delete
KEY `resource_group_assignment_resource_group_id` (`resource_group_id`)
[829] Fix | Delete
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
[830] Fix | Delete
[831] Fix | Delete
-- --------------------------------------------------------
[832] Fix | Delete
[833] Fix | Delete
--
[834] Fix | Delete
-- Table structure for table `resource_images`
[835] Fix | Delete
--
[836] Fix | Delete
[837] Fix | Delete
CREATE TABLE `resource_images` (
[838] Fix | Delete
`resource_image_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
[839] Fix | Delete
`resource_id` smallint(5) unsigned NOT NULL,
[840] Fix | Delete
`image_name` varchar(50) DEFAULT NULL,
[841] Fix | Delete
PRIMARY KEY (`resource_image_id`),
[842] Fix | Delete
KEY `resource_id` (`resource_id`)
[843] Fix | Delete
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
[844] Fix | Delete
[845] Fix | Delete
-- --------------------------------------------------------
[846] Fix | Delete
[847] Fix | Delete
--
[848] Fix | Delete
-- Table structure for table `resource_status_reasons`
[849] Fix | Delete
--
[850] Fix | Delete
[851] Fix | Delete
CREATE TABLE `resource_status_reasons` (
[852] Fix | Delete
`resource_status_reason_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
[853] Fix | Delete
`status_id` tinyint(3) unsigned NOT NULL,
[854] Fix | Delete
`description` varchar(100) DEFAULT NULL,
[855] Fix | Delete
PRIMARY KEY (`resource_status_reason_id`),
[856] Fix | Delete
KEY `status_id` (`status_id`)
[857] Fix | Delete
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
[858] Fix | Delete
[859] Fix | Delete
-- --------------------------------------------------------
[860] Fix | Delete
[861] Fix | Delete
--
[862] Fix | Delete
-- Table structure for table `resource_types`
[863] Fix | Delete
--
[864] Fix | Delete
[865] Fix | Delete
CREATE TABLE `resource_types` (
[866] Fix | Delete
`resource_type_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
[867] Fix | Delete
`resource_type_name` varchar(75) DEFAULT NULL,
[868] Fix | Delete
`resource_type_description` text,
[869] Fix | Delete
PRIMARY KEY (`resource_type_id`)
[870] Fix | Delete
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
[871] Fix | Delete
[872] Fix | Delete
-- --------------------------------------------------------
[873] Fix | Delete
[874] Fix | Delete
--
[875] Fix | Delete
-- Table structure for table `resource_type_assignment`
[876] Fix | Delete
--
[877] Fix | Delete
[878] Fix | Delete
CREATE TABLE `resource_type_assignment` (
[879] Fix | Delete
`resource_id` smallint(5) unsigned NOT NULL,
[880] Fix | Delete
`resource_type_id` mediumint(8) unsigned NOT NULL,
[881] Fix | Delete
PRIMARY KEY (`resource_id`,`resource_type_id`),
[882] Fix | Delete
KEY `resource_type_id` (`resource_type_id`)
[883] Fix | Delete
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
[884] Fix | Delete
[885] Fix | Delete
-- --------------------------------------------------------
[886] Fix | Delete
[887] Fix | Delete
--
[888] Fix | Delete
-- Table structure for table `roles`
[889] Fix | Delete
--
[890] Fix | Delete
[891] Fix | Delete
CREATE TABLE `roles` (
[892] Fix | Delete
`role_id` tinyint(2) unsigned NOT NULL,
[893] Fix | Delete
`name` varchar(85) DEFAULT NULL,
[894] Fix | Delete
`role_level` tinyint(2) unsigned DEFAULT NULL,
[895] Fix | Delete
PRIMARY KEY (`role_id`)
[896] Fix | Delete
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
[897] Fix | Delete
[898] Fix | Delete
--
[899] Fix | Delete
-- Dumping data for table `roles`
[900] Fix | Delete
--
[901] Fix | Delete
[902] Fix | Delete
INSERT INTO `roles` VALUES
[903] Fix | Delete
(1, 'Group Admin', 1),
[904] Fix | Delete
(2, 'Application Admin', 2),
[905] Fix | Delete
(3, 'Resource Admin', 3),
[906] Fix | Delete
(4, 'Schedule Admin', 4);
[907] Fix | Delete
[908] Fix | Delete
-- --------------------------------------------------------
[909] Fix | Delete
[910] Fix | Delete
--
[911] Fix | Delete
-- Table structure for table `saved_reports`
[912] Fix | Delete
--
[913] Fix | Delete
[914] Fix | Delete
CREATE TABLE `saved_reports` (
[915] Fix | Delete
`saved_report_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
[916] Fix | Delete
`report_name` varchar(50) DEFAULT NULL,
[917] Fix | Delete
`user_id` mediumint(8) unsigned NOT NULL,
[918] Fix | Delete
`date_created` datetime NOT NULL,
[919] Fix | Delete
`report_details` varchar(500) NOT NULL,
[920] Fix | Delete
PRIMARY KEY (`saved_report_id`),
[921] Fix | Delete
KEY `user_id` (`user_id`)
[922] Fix | Delete
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
[923] Fix | Delete
[924] Fix | Delete
-- --------------------------------------------------------
[925] Fix | Delete
[926] Fix | Delete
--
[927] Fix | Delete
-- Table structure for table `schedules`
[928] Fix | Delete
--
[929] Fix | Delete
[930] Fix | Delete
CREATE TABLE `schedules` (
[931] Fix | Delete
`schedule_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
[932] Fix | Delete
`name` varchar(85) NOT NULL,
[933] Fix | Delete
`isdefault` tinyint(1) unsigned NOT NULL,
[934] Fix | Delete
`weekdaystart` tinyint(2) unsigned NOT NULL,
[935] Fix | Delete
`daysvisible` tinyint(2) unsigned NOT NULL DEFAULT '7',
[936] Fix | Delete
`layout_id` mediumint(8) unsigned NOT NULL,
[937] Fix | Delete
`legacyid` char(16) DEFAULT NULL,
[938] Fix | Delete
`public_id` varchar(20) DEFAULT NULL,
[939] Fix | Delete
`allow_calendar_subscription` tinyint(1) NOT NULL DEFAULT '0',
[940] Fix | Delete
`admin_group_id` smallint(5) unsigned DEFAULT NULL,
[941] Fix | Delete
`start_date` datetime DEFAULT NULL,
[942] Fix | Delete
`end_date` datetime DEFAULT NULL,
[943] Fix | Delete
`allow_concurrent_bookings` tinyint(1) unsigned NOT NULL DEFAULT '0',
[944] Fix | Delete
`default_layout` tinyint(4) NOT NULL DEFAULT '0',
[945] Fix | Delete
`total_concurrent_reservations` smallint(5) unsigned NOT NULL DEFAULT '0',
[946] Fix | Delete
`max_resources_per_reservation` smallint(5) unsigned NOT NULL DEFAULT '0',
[947] Fix | Delete
`additional_properties` text,
[948] Fix | Delete
PRIMARY KEY (`schedule_id`),
[949] Fix | Delete
UNIQUE KEY `public_id` (`public_id`),
[950] Fix | Delete
KEY `layout_id` (`layout_id`),
[951] Fix | Delete
KEY `schedules_groups_admin_group_id` (`admin_group_id`)
[952] Fix | Delete
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
[953] Fix | Delete
[954] Fix | Delete
--
[955] Fix | Delete
-- Dumping data for table `schedules`
[956] Fix | Delete
--
[957] Fix | Delete
[958] Fix | Delete
INSERT INTO `schedules` VALUES
[959] Fix | Delete
(1, 'Default', 1, 0, 7, 1, NULL, NULL, 0, NULL, NULL, NULL, 0, 0, 0, 0, NULL);
[960] Fix | Delete
[961] Fix | Delete
-- --------------------------------------------------------
[962] Fix | Delete
[963] Fix | Delete
--
[964] Fix | Delete
-- Table structure for table `terms_of_service`
[965] Fix | Delete
--
[966] Fix | Delete
[967] Fix | Delete
CREATE TABLE `terms_of_service` (
[968] Fix | Delete
`terms_of_service_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
[969] Fix | Delete
`terms_text` text,
[970] Fix | Delete
`terms_url` varchar(255) DEFAULT NULL,
[971] Fix | Delete
`terms_file` varchar(50) DEFAULT NULL,
[972] Fix | Delete
`applicability` varchar(50) DEFAULT NULL,
[973] Fix | Delete
`date_created` datetime NOT NULL,
[974] Fix | Delete
PRIMARY KEY (`terms_of_service_id`)
[975] Fix | Delete
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
[976] Fix | Delete
[977] Fix | Delete
-- --------------------------------------------------------
[978] Fix | Delete
[979] Fix | Delete
--
[980] Fix | Delete
-- Table structure for table `time_blocks`
[981] Fix | Delete
--
[982] Fix | Delete
[983] Fix | Delete
CREATE TABLE `time_blocks` (
[984] Fix | Delete
`block_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
[985] Fix | Delete
`label` varchar(85) DEFAULT NULL,
[986] Fix | Delete
`end_label` varchar(85) DEFAULT NULL,
[987] Fix | Delete
`availability_code` tinyint(2) unsigned NOT NULL,
[988] Fix | Delete
`layout_id` mediumint(8) unsigned NOT NULL,
[989] Fix | Delete
`start_time` time NOT NULL,
[990] Fix | Delete
`end_time` time NOT NULL,
[991] Fix | Delete
`day_of_week` smallint(5) unsigned DEFAULT NULL,
[992] Fix | Delete
PRIMARY KEY (`block_id`),
[993] Fix | Delete
KEY `layout_id` (`layout_id`)
[994] Fix | Delete
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=23 ;
[995] Fix | Delete
[996] Fix | Delete
--
[997] Fix | Delete
-- Dumping data for table `time_blocks`
[998] Fix | Delete
--
[999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function