-- phpMyAdmin SQL Dump
-- version 3.1.1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Nov 26, 2010 at 07:38 PM
-- Server version: 5.1.36
-- PHP Version: 5.2.11

SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;

--
-- Database: `biokura_test`
--

-- --------------------------------------------------------

--
-- Table structure for table `relationships`
--

DROP TABLE IF EXISTS `relationships`;
CREATE TABLE IF NOT EXISTS `relationships` (
  `id` varchar(36) NOT NULL DEFAULT '',
  `relationship_name` varchar(150) NOT NULL DEFAULT '',
  `lhs_module` varchar(100) NOT NULL DEFAULT '',
  `lhs_table` varchar(64) NOT NULL DEFAULT '',
  `lhs_key` varchar(64) NOT NULL DEFAULT '',
  `rhs_module` varchar(100) NOT NULL DEFAULT '',
  `rhs_table` varchar(64) NOT NULL DEFAULT '',
  `rhs_key` varchar(64) NOT NULL DEFAULT '',
  `join_table` varchar(64) DEFAULT NULL,
  `join_key_lhs` varchar(64) DEFAULT NULL,
  `join_key_rhs` varchar(64) DEFAULT NULL,
  `relationship_type` varchar(64) DEFAULT NULL,
  `relationship_role_column` varchar(64) DEFAULT NULL,
  `relationship_role_column_value` varchar(50) DEFAULT NULL,
  `reverse` tinyint(1) DEFAULT '0',
  `deleted` tinyint(1) DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `idx_rel_name` (`relationship_name`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Dumping data for table `relationships`
--

INSERT INTO `relationships` (`id`, `relationship_name`, `lhs_module`, `lhs_table`, `lhs_key`, `rhs_module`, `rhs_table`, `rhs_key`, `join_table`, `join_key_lhs`, `join_key_rhs`, `relationship_type`, `relationship_role_column`, `relationship_role_column_value`, `reverse`, `deleted`) VALUES
('51734f90-bbc3-7a10-53fb-4cef856b7ed6', 'acl_roles_users', 'ACLRoles', 'acl_roles', 'id', 'Users', 'users', 'id', 'acl_roles_users', 'role_id', 'user_id', 'many-to-many', NULL, NULL, 0, 0),
('51bfc5c6-b138-4040-3e8b-4cef8598c502', 'acl_roles_actions', 'ACLRoles', 'acl_role', 'id', 'ACLActions', 'acl_action', 'id', 'acl_roles_actions', 'role_id', 'action_id', 'many-to-many', NULL, NULL, 0, 0),
('787d8f39-3d8a-d945-87ef-4cef8577a7cc', 'lead_direct_reports', 'Leads', 'leads', 'id', 'Leads', 'leads', 'reports_to_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('78c2cfcc-bbfa-e421-276c-4cef85df5090', 'lead_tasks', 'Leads', 'leads', 'id', 'Tasks', 'tasks', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'Leads', 0, 0),
('7908b8cd-d9d7-aabe-a5a8-4cef85252507', 'lead_notes', 'Leads', 'leads', 'id', 'Notes', 'notes', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'Leads', 0, 0),
('796e3bfc-7f80-0617-4279-4cef85d4410a', 'lead_meetings', 'Leads', 'leads', 'id', 'Meetings', 'meetings', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'Leads', 0, 0),
('79eca988-3aa7-5dbc-6956-4cef852ecf0e', 'lead_calls', 'Leads', 'leads', 'id', 'Calls', 'calls', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'Leads', 0, 0),
('7a5fbf3f-6982-56ef-6f01-4cef85ed8b34', 'lead_emails', 'Leads', 'leads', 'id', 'Emails', 'emails', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'Leads', 0, 0),
('7aa77cb4-0692-c4d0-ca80-4cef8517198e', 'lead_campaign_log', 'Leads', 'leads', 'id', 'CampaignLog', 'campaign_log', 'target_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('7ae54f90-2455-72af-e587-4cef85d5452c', 'leads_assigned_user', 'Users', 'users', 'id', 'Leads', 'leads', 'assigned_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('7b226d2d-4652-cee5-32d9-4cef8571a1b4', 'leads_modified_user', 'Users', 'users', 'id', 'Leads', 'leads', 'modified_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('7b61ad23-9e13-baaf-6b05-4cef85251726', 'leads_created_by', 'Users', 'users', 'id', 'Leads', 'leads', 'created_by', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('8025c140-b3c5-6c71-ee15-4cef85b4aeb9', 'contact_direct_reports', 'Contacts', 'contacts', 'id', 'Contacts', 'contacts', 'reports_to_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('808abf3c-3193-5a03-6a04-4cef85002ace', 'commission_company', 'Contacts', 'contacts', 'commission_company_id', 'Accounts', 'accounts', 'id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('80ca87c4-b9b5-21ad-2c88-4cef8535388a', 'contact_leads', 'Contacts', 'contacts', 'id', 'Leads', 'leads', 'contact_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('810dd23f-6240-7a54-be30-4cef851ac5d4', 'contact_notes', 'Contacts', 'contacts', 'id', 'Notes', 'notes', 'contact_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('814b88ea-f098-bd6e-2b0f-4cef85940ffc', 'contact_tasks', 'Contacts', 'contacts', 'id', 'Tasks', 'tasks', 'contact_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('81884968-6ab8-fa0c-c611-4cef85a44d76', 'contacts_assigned_user', 'Users', 'users', 'id', 'Contacts', 'contacts', 'assigned_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('81c70e21-3d35-475d-a58a-4cef85d59c87', 'contacts_modified_user', 'Users', 'users', 'id', 'Contacts', 'contacts', 'modified_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('8213d6e2-8dbf-a760-88f3-4cef8543d2ed', 'contacts_created_by', 'Users', 'users', 'id', 'Contacts', 'contacts', 'created_by', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('827cac30-14e6-b46e-a547-4cef85c65b76', 'contact_campaign_log', 'Contacts', 'contacts', 'id', 'CampaignLog', 'campaign_log', 'target_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('82bb34c5-2181-2e72-445d-4cef85a2e86a', 'contact_fees', 'Contact', 'contacts', 'id', 'Fee', 'sms_fee', 'contact_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('82fc68c1-d67f-4c78-178a-4cef85f1504b', 'memo_contact', 'Contact', 'contacts', 'id', 'SMSMemo', 'sms_memo', 'parent_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('88a819b4-c929-490a-c08b-4cef8586901d', 'member_accounts', 'Accounts', 'accounts', 'id', 'Accounts', 'accounts', 'parent_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('890424cc-758a-212b-14ca-4cef85e85f61', 'account_cases', 'Accounts', 'accounts', 'id', 'Cases', 'cases', 'account_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('8954aecb-2c51-1455-513a-4cef8550ad29', 'account_tasks', 'Accounts', 'accounts', 'id', 'Tasks', 'tasks', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'Accounts', 0, 0),
('8992c603-d9e9-62e1-4034-4cef858e2ca6', 'account_notes', 'Accounts', 'accounts', 'id', 'Notes', 'notes', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'Accounts', 0, 0),
('89d10022-828e-1c60-92d3-4cef855a8544', 'account_meetings', 'Accounts', 'accounts', 'id', 'Meetings', 'meetings', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'Accounts', 0, 0),
('8a0f36a9-b66a-96e2-0378-4cef856eeef6', 'account_calls', 'Accounts', 'accounts', 'id', 'Calls', 'calls', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'Accounts', 0, 0),
('8a4d0e63-411c-8e1d-c659-4cef854a319c', 'account_emails', 'Accounts', 'accounts', 'id', 'Emails', 'emails', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'Accounts', 0, 0),
('8a8a89b2-b7c0-048a-698b-4cef8570503f', 'account_leads', 'Accounts', 'accounts', 'id', 'Leads', 'leads', 'account_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('8ac9a48f-0401-8e0e-3052-4cef856822cc', 'accounts_assigned_user', 'Users', 'users', 'id', 'Accounts', 'accounts', 'assigned_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('8b0d98f6-c051-8f8b-3984-4cef85553397', 'accounts_modified_user', 'Users', 'users', 'id', 'Accounts', 'accounts', 'modified_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('8b4a82db-83f8-f559-0b22-4cef857556f8', 'accounts_created_by', 'Users', 'users', 'id', 'Accounts', 'accounts', 'created_by', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('8d5f5898-4940-bc63-55fe-4cef857748dc', 'opportunity_calls', 'Opportunities', 'opportunities', 'id', 'Calls', 'calls', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'Opportunities', 0, 0),
('8da7b87e-7394-7a24-316d-4cef85eb7f11', 'opportunity_meetings', 'Opportunities', 'opportunities', 'id', 'Meetings', 'meetings', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'Opportunities', 0, 0),
('8e214c34-e5bf-817d-92bc-4cef8567fc3b', 'opportunity_tasks', 'Opportunities', 'opportunities', 'id', 'Tasks', 'tasks', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'Opportunities', 0, 0),
('8e683c5f-7c06-5535-423f-4cef853af376', 'opportunity_notes', 'Opportunities', 'opportunities', 'id', 'Notes', 'notes', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'Opportunities', 0, 0),
('8eb39476-120c-df38-f469-4cef85a34a29', 'opportunity_emails', 'Opportunities', 'opportunities', 'id', 'Emails', 'emails', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'Opportunities', 0, 0),
('8ef39eac-36f7-5991-453e-4cef8561b7fa', 'opportunity_leads', 'Opportunities', 'opportunities', 'id', 'Leads', 'leads', 'opportunity_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('8f330603-19e5-665d-38db-4cef85899a06', 'opportunities_assigned_user', 'Users', 'users', 'id', 'Opportunities', 'opportunities', 'assigned_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('8f7b6599-c52b-2bea-e9f2-4cef856f8193', 'opportunities_modified_user', 'Users', 'users', 'id', 'Opportunities', 'opportunities', 'modified_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('8fbcdaf1-132a-e720-cd92-4cef85ed9b00', 'opportunities_created_by', 'Users', 'users', 'id', 'Opportunities', 'opportunities', 'created_by', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('92054711-b658-232a-c8b1-4cef850d1599', 'product_fees', 'Product', 'product', 'id', 'Fee', 'sms_fee', 'product_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('95acd4f6-0dfb-a009-48bb-4cef856a2102', 'case_calls', 'Cases', 'cases', 'id', 'Calls', 'calls', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'Cases', 0, 0),
('961ec75f-3b9b-f791-ace3-4cef85eb4a9b', 'case_tasks', 'Cases', 'cases', 'id', 'Tasks', 'tasks', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'Cases', 0, 0),
('965fa710-9570-ad74-c792-4cef85ef7b81', 'case_notes', 'Cases', 'cases', 'id', 'Notes', 'notes', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'Cases', 0, 0),
('96a8c40e-a390-56aa-4682-4cef855eb600', 'case_meetings', 'Cases', 'cases', 'id', 'Meetings', 'meetings', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'Cases', 0, 0),
('96ea7fec-71b5-930c-f7bb-4cef85c48204', 'case_emails', 'Cases', 'cases', 'id', 'Emails', 'emails', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'Cases', 0, 0),
('972b3f16-fcc4-50f0-b019-4cef85e16fd7', 'cases_assigned_user', 'Users', 'users', 'id', 'Cases', 'cases', 'assigned_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('97687921-19ac-c7a2-a670-4cef85bf2382', 'cases_modified_user', 'Users', 'users', 'id', 'Cases', 'cases', 'modified_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('97a72149-c657-3754-4c61-4cef85ebc3cf', 'cases_created_by', 'Users', 'users', 'id', 'Cases', 'cases', 'created_by', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('9983aca3-6e5c-bba5-6eb8-4cef856b21eb', 'notes_assigned_user', 'Users', 'users', 'id', 'Notes', 'notes', 'assigned_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('99cbd5e2-0faa-68aa-3a98-4cef8570a21a', 'notes_modified_user', 'Users', 'users', 'id', 'Notes', 'notes', 'modified_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('9a167cee-40cc-c167-4c47-4cef85f21aad', 'notes_created_by', 'Users', 'users', 'id', 'Notes', 'notes', 'created_by', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('a31c97ed-501a-783c-4c62-4cef8587d7a1', 'calls_assigned_user', 'Users', 'users', 'id', 'Calls', 'calls', 'assigned_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('a3704702-b2c1-d861-2d8f-4cef8545e1d8', 'calls_modified_user', 'Users', 'users', 'id', 'Calls', 'calls', 'modified_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('a3afb8c9-902a-ac37-6ad5-4cef8587ee10', 'calls_created_by', 'Users', 'users', 'id', 'Calls', 'calls', 'created_by', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('a3ee10db-f78f-3f44-0405-4cef85676397', 'calls_notes', 'Calls', 'calls', 'id', 'Notes', 'notes', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'Calls', 0, 0),
('a70c7e78-4957-7ffb-e6f4-4cef85a8a28c', 'emails_assigned_user', 'Users', 'users', 'id', 'Emails', 'emails', 'assigned_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('a751013a-6c3a-f869-1145-4cef85348147', 'emails_modified_user', 'Users', 'users', 'id', 'Emails', 'emails', 'modified_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('a790c4a3-ce20-51df-c1bc-4cef85a78622', 'emails_created_by', 'Users', 'users', 'id', 'Emails', 'emails', 'created_by', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('c1a62d08-3dbc-2782-fc07-4cef85f1b5ba', 'meetings_assigned_user', 'Users', 'users', 'id', 'Meetings', 'meetings', 'assigned_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('c1eb53be-3789-1a69-70c7-4cef85355ac4', 'meetings_modified_user', 'Users', 'users', 'id', 'Meetings', 'meetings', 'modified_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('c22ae5c0-dd0c-0183-9d9a-4cef85725f04', 'meetings_created_by', 'Users', 'users', 'id', 'Meetings', 'meetings', 'created_by', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('c26a80cf-3e49-c3c3-10c4-4cef8517c02e', 'meetings_notes', 'Meetings', 'meetings', 'id', 'Notes', 'notes', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'Meetings', 0, 0),
('c533ea25-d974-2ff3-4345-4cef851ac69a', 'tasks_assigned_user', 'Users', 'users', 'id', 'Tasks', 'tasks', 'assigned_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('c577d7ae-8098-b88d-dd97-4cef851c5e4f', 'tasks_modified_user', 'Users', 'users', 'id', 'Tasks', 'tasks', 'modified_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('c5b86dca-fc8b-2748-727d-4cef85d617ad', 'tasks_created_by', 'Users', 'users', 'id', 'Tasks', 'tasks', 'created_by', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('c673a819-ca29-17ac-aa3b-4cef85b90dce', 'users_schools', 'Users', 'users', 'id', 'School', 'resource', 'id', 'users_schools', 'user_id', 'school_id', 'many-to-many', NULL, NULL, 0, 0),
('d186a481-6413-2ac4-5b9f-4cef853e3e8f', 'bug_tasks', 'Bugs', 'bugs', 'id', 'Tasks', 'tasks', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'Bugs', 0, 0),
('d1d00fb5-9473-f2de-e84d-4cef85697d29', 'bug_meetings', 'Bugs', 'bugs', 'id', 'Meetings', 'meetings', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'Bugs', 0, 0),
('d210c2d7-1d1b-e9b4-c08e-4cef85fcc1aa', 'bug_calls', 'Bugs', 'bugs', 'id', 'Calls', 'calls', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'Bugs', 0, 0),
('d26a0eb3-4101-5a1c-a9fa-4cef855720f6', 'bug_emails', 'Bugs', 'bugs', 'id', 'Emails', 'emails', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'Bugs', 0, 0),
('d2b19ac0-2798-7a59-7e25-4cef85b77b40', 'bug_notes', 'Bugs', 'bugs', 'id', 'Notes', 'notes', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'Bugs', 0, 0),
('d2f78076-3065-3a3b-5f1c-4cef85ab8114', 'bugs_assigned_user', 'Users', 'users', 'id', 'Bugs', 'bugs', 'assigned_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('d3374d63-2491-c84f-ddca-4cef8537b974', 'bugs_modified_user', 'Users', 'users', 'id', 'Bugs', 'bugs', 'modified_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('d37faf05-89d1-b8cd-4094-4cef8570aa9e', 'bugs_created_by', 'Users', 'users', 'id', 'Bugs', 'bugs', 'created_by', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('d409bef3-73f8-8247-fd91-4cef8535dfee', 'bugs_release', 'Releases', 'releases', 'id', 'Bugs', 'bugs', 'found_in_release', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('d4528554-8914-8ed5-9a1e-4cef8584792b', 'bugs_fixed_in_release', 'Releases', 'releases', 'id', 'Bugs', 'bugs', 'fixed_in_release', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('da6ca17f-f423-a423-7bb5-4cef85d08369', 'feeds_assigned_user', 'Users', 'users', 'id', 'Feeds', 'feeds', 'assigned_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('dab3a533-1226-7ef0-2aed-4cef85c48adb', 'feeds_modified_user', 'Users', 'users', 'id', 'Feeds', 'feeds', 'modified_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('dafbb6f7-cd5a-13db-2269-4cef859b64b6', 'feeds_created_by', 'Users', 'users', 'id', 'Feeds', 'feeds', 'created_by', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('ddf1fac1-95ad-a6db-1590-4cef85687462', 'project_notes', 'Project', 'project', 'id', 'Notes', 'notes', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'Project', 0, 0),
('de388d72-5497-2e34-5fa1-4cef85abc394', 'project_meetings', 'Project', 'project', 'id', 'Meetings', 'meetings', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'Project', 0, 0),
('de7a4ac8-cc78-29f7-1ae5-4cef85fad90d', 'project_calls', 'Project', 'project', 'id', 'Calls', 'calls', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'Project', 0, 0),
('debbb700-cbd2-573a-6df1-4cef85c6f753', 'project_emails', 'Project', 'project', 'id', 'Emails', 'emails', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'Project', 0, 0),
('defcea5b-2213-400e-5937-4cef85390193', 'project_project_tasks', 'Project', 'project', 'id', 'ProjectTask', 'project_task', 'parent_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('df4174b4-d239-8758-d257-4cef85f48e37', 'projects_assigned_user', 'Users', 'users', 'id', 'Project', 'project', 'assigned_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('df889f1b-f1c2-4567-d025-4cef85782ba6', 'projects_modified_user', 'Users', 'users', 'id', 'Project', 'project', 'modified_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('dfc87f27-bc26-780a-300f-4cef857f04cc', 'projects_created_by', 'Users', 'users', 'id', 'Project', 'project', 'created_by', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('e2da3c70-e21f-53ee-6fc8-4cef855ac0d1', 'project_task_notes', 'ProjectTask', 'project_task', 'id', 'Notes', 'notes', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'ProjectTask', 0, 0),
('e36b0981-582c-6bea-3ccb-4cef85f28ceb', 'project_task_assigned_user', 'Users', 'users', 'id', 'ProjectTask', 'project_task', 'assigned_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('e3c1fe66-1d5a-8e5f-ff6c-4cef85bfe3e9', 'project_task_modified_user', 'Users', 'users', 'id', 'ProjectTask', 'project_task', 'modified_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('e4030b94-2682-710e-4fb7-4cef8534561b', 'project_task_created_by', 'Users', 'users', 'id', 'ProjectTask', 'project_task', 'created_by', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('e71851aa-b652-b79c-ec03-4cef85738dbd', 'email_template_email_marketings', 'EmailTemplates', 'email_templates', 'id', 'EmailMarketing', 'email_marketing', 'template_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('ead88044-592b-e6b7-e8c1-4cef85b48f81', 'campaign_email_marketing', 'Campaigns', 'campaigns', 'id', 'EmailMarketing', 'email_marketing', 'campaign_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('eb61528f-d3e4-ecff-5bcb-4cef85684b1e', 'campaign_emailman', 'Campaigns', 'campaigns', 'id', 'EmailMan', 'emailman', 'campaign_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('eba4712b-bbf0-7d83-c308-4cef85a9c979', 'campaign_campaignlog', 'Campaigns', 'campaigns', 'id', 'CampaignLog', 'campaign_log', 'campaign_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('f045318d-c647-7cd9-44b3-4cef85657d37', 'prospect_campaign_log', 'Prospects', 'prospects', 'id', 'CampaignLog', 'campaign_log', 'target_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('f3275075-8318-685a-8c48-4cef85ea7318', 'document_revisions', 'Documents', 'documents', 'id', 'Documents', 'document_revisions', 'document_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('f36ab89a-7ecb-2ac0-6e1e-4cef8597746c', 'quotes_assigned_user', 'Users', 'users', 'id', 'Quotes', 'quotes', 'assigned_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('f3aa5ccf-d8ec-b27d-de09-4cef85b16c7c', 'quotes_modified_user', 'Users', 'users', 'id', 'Quotes', 'quotes', 'modified_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('f3ea0320-87a6-7e55-b12a-4cef85db024f', 'quotes_created_by', 'Users', 'users', 'id', 'Quotes', 'quotes', 'created_by', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('141204d7-9957-84b6-6df8-4cef856730b6', 'revisions_created_by', 'Users', 'users', 'id', 'Revisions', 'revisions', 'created_by', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('5b8d05fc-98ae-275c-9f38-4cef85bd2dbd', 'schedulers_created_by_rel', 'Users', 'users', 'id', 'Schedulers', 'schedulers', 'created_by', NULL, NULL, NULL, 'one-to-one', NULL, NULL, 0, 0),
('5fea0891-c054-affe-5984-4cef851d0616', 'schedulers_modified_user_id_rel', 'Users', 'users', 'id', 'Schedulers', 'schedulers', 'modified_user_id', NULL, NULL, NULL, 'one-to-one', NULL, NULL, 0, 0),
('64880eea-3402-758e-6a2f-4cef854a1c1a', 'schedulers_jobs_rel', 'Schedulers', 'schedulers', 'id', 'SchedulersJobs', 'schedulers_times', 'scheduler_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('cf7b0148-db54-e448-8de0-4cef857c2d85', 'inbound_email_created_by', 'Users', 'users', 'id', 'InboundEmail', 'inbound_email', 'created_by', NULL, NULL, NULL, 'one-to-one', NULL, NULL, 0, 0),
('d39c03da-d534-efde-8176-4cef85cfc97b', 'inbound_email_modified_user_id', 'Users', 'users', 'id', 'InboundEmail', 'inbound_email', 'modified_user_id', NULL, NULL, NULL, 'one-to-one', NULL, NULL, 0, 0),
('12a5ddd0-dd9f-a146-688f-4cef85041fe8', 'dashboards_assigned_user', 'Users', 'users', 'id', 'Dashboards', 'dashboards', 'assigned_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('12e973d7-f326-368b-e968-4cef85b70e11', 'dashboards_modified_user', 'Users', 'users', 'id', 'Dashboards', 'dashboards', 'modified_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('1329c0cb-0c2e-d779-ebdd-4cef850f7398', 'dashboards_created_by', 'Users', 'users', 'id', 'Dashboards', 'dashboards', 'created_by', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('17cc5851-30ce-15f1-b7d4-4cef8510433d', 'teacher_transactions', 'Teacher', 'contacts', 'id', 'Transaction', 'sms_transaction', 'contact_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('1b705b29-891b-157a-0fb4-4cef85b40149', 'student_transactions', 'Student', 'contacts', 'id', 'Transaction', 'sms_transaction', 'contact_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('38c0ffc6-d870-44ee-8389-4cef8526a1ae', 'fees_transactions', 'Fee', 'sms_fee', 'id', 'Transaction', 'sms_transaction', 'fee_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('3ab281f7-5c8a-be4c-ead9-4cef855304fc', 'salesgroup_fees', 'SalesGroup', 'sms_salesgroup', 'salesno', 'Fee', 'sms_fee', 'id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('3af59f7c-bdfc-e331-a962-4cef85b4ff3b', 'salesgroup_transactions', 'SalesGroup', 'sms_salesgroup', 'salesno', 'Transaction', 'sms_transaction', 'id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('3de29647-0dee-28e6-2f20-4cef852dc5b6', 'syllabus_assigned_user', 'Users', 'users', 'id', 'Syllabus', 'sms_syllabus', 'assigned_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('3e28e0f7-0443-e174-38d9-4cef85b4ef55', 'syllabus_modified_user', 'Users', 'users', 'id', 'Syllabus', 'sms_syllabus', 'modified_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('3e6a86d2-9e72-edb7-9d97-4cef85cf7753', 'syllabus_created_by', 'Users', 'users', 'id', 'Syllabus', 'sms_syllabus', 'created_by', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('4146cd71-48ad-d010-9cde-4cef85aa4010', 'smsdocument_assigned_user', 'Users', 'users', 'id', 'SMSDocument', 'sms_document', 'assigned_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('418c2ab5-b12e-8c5a-9d5e-4cef855b20cb', 'smsdocument_modified_user', 'Users', 'users', 'id', 'SMSDocument', 'sms_document', 'modified_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('41d17db0-bcc3-87a6-ed6d-4cef85f4ce91', 'smsdocument_created_by', 'Users', 'users', 'id', 'SMSDocument', 'sms_document', 'created_by', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('4c8bb06f-0760-ace9-db51-4cef8514dbe1', 'event_schedule', 'SMSEvent', 'smsevent', 'id', 'EventInstance', 'sms_event_instance', 'parent_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('4d1b1844-cd5b-f75c-115c-4cef85e5c4e4', 'course_fees', 'Course', 'smsevent', 'id', 'Fee', 'sms_fee', 'event_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('4d6e1601-33de-387a-e797-4cef85180b4b', 'course_transactions', 'Course', 'smsevent', 'id', 'Transaction', 'sms_transaction', 'event_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('4db0858d-7343-efa9-26be-4cef85cf826a', 'course_classes', 'Course', 'smsevent', 'id', 'EventInstance', 'sms_event_instance', 'parent_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('4df1f632-9733-3efa-558c-4cef85ab497d', 'syllabus', 'Course', 'smsevent', 'id', 'Syllabus', 'sms_syllabus', 'parent_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('4e31b221-69c0-51e8-6695-4cef85aa6c10', 'memo_event', 'Course', 'smsevent', 'id', 'SMSMemo', 'sms_memo', 'parent_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('4e73157e-50c7-096d-ac34-4cef85c54e3c', 'smsdocument', 'Course', 'smsevent', 'id', 'SMSDocument', 'sms_document', 'parent_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('60f5fe00-8ed3-8c96-e419-4cef8583ec84', 'seminar_schedule', 'SMSSeminar', 'smsevent', 'id', 'EventInstance', 'sms_event_instance', 'parent_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('64e12793-01f7-d0af-4a3e-4cef8575202c', 'memo_eventinstance', 'EventInstance', 'sms_event_instance', 'id', 'SMSMemo', 'sms_memo', 'parent_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('6a255e14-809c-8d71-4a7f-4cef85f09cab', 'homework_assigned_user', 'Users', 'users', 'id', 'HomeWork', 'homework', 'assigned_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('6a67edec-4bcb-6819-5f02-4cef85e18b35', 'homework_modified_user', 'Users', 'users', 'id', 'HomeWork', 'homework', 'modified_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('6ab7de47-495e-2351-af8e-4cef85411774', 'homework_created_by', 'Users', 'users', 'id', 'HomeWork', 'homework', 'created_by', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('72393e60-7337-bdec-6779-4cef85a6b209', 'memo_assigned_user', 'Users', 'users', 'id', 'Memo', 'memo', 'assigned_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('728566af-f084-f02b-5ea9-4cef854edfd5', 'memo_modified_user', 'Users', 'users', 'id', 'Memo', 'memo', 'modified_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('72f157a1-c9e5-1d9a-a22d-4cef85e365bd', 'memo_created_by', 'Users', 'users', 'id', 'Memo', 'memo', 'created_by', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0),
('8e991f05-7b72-f0c0-026e-4cef85b6cd07', 'accounts_bugs', 'Accounts', 'accounts', 'id', 'Bugs', 'bugs', 'id', 'accounts_bugs', 'account_id', 'bug_id', 'many-to-many', NULL, NULL, 0, 0),
('8f232f4d-3fe6-5b7b-4631-4cef85f956f7', 'accounts_contacts', 'Accounts', 'accounts', 'id', 'Contacts', 'contacts', 'id', 'accounts_contacts', 'account_id', 'contact_id', 'many-to-many', NULL, NULL, 0, 0),
('8f93bfae-310a-8d2b-cbb3-4cef855fbfa5', 'accounts_opportunities', 'Accounts', 'accounts', 'id', 'Opportunities', 'opportunities', 'id', 'accounts_opportunities', 'account_id', 'opportunity_id', 'many-to-many', NULL, NULL, 0, 0),
('90022030-e71c-5ea4-3a7c-4cef85f9f675', 'calls_contacts', 'Calls', 'calls', 'id', 'Contacts', 'contacts', 'id', 'calls_contacts', 'call_id', 'contact_id', 'many-to-many', NULL, NULL, 0, 0),
('906fb2c2-02ce-1e24-1560-4cef859c100e', 'calls_users', 'Calls', 'calls', 'id', 'Users', 'users', 'id', 'calls_users', 'call_id', 'user_id', 'many-to-many', NULL, NULL, 0, 0),
('90dcb767-5118-2265-cf71-4cef858d98fc', 'cases_bugs', 'Cases', 'cases', 'id', 'Bugs', 'bugs', 'id', 'cases_bugs', 'case_id', 'bug_id', 'many-to-many', NULL, NULL, 0, 0),
('914c4cb8-07f7-9683-8477-4cef853a5c13', 'contacts_bugs', 'Contacts', 'contacts', 'id', 'Bugs', 'bugs', 'id', 'contacts_bugs', 'contact_id', 'bug_id', 'many-to-many', NULL, NULL, 0, 0),
('91b827ca-5cdc-9c3e-477b-4cef85fd7407', 'contacts_cases', 'Contacts', 'contacts', 'id', 'Cases', 'cases', 'id', 'contacts_cases', 'contact_id', 'case_id', 'many-to-many', NULL, NULL, 0, 0),
('92284416-c1dc-3222-7871-4cef858255f5', 'contacts_users', 'Contacts', 'contacts', 'id', 'Users', 'users', 'id', 'contacts_users', 'contact_id', 'user_id', 'many-to-many', NULL, NULL, 0, 0),
('9299a13c-9a79-2a39-4f21-4cef85f2aa0c', 'emails_cases_rel', 'Emails', 'emails', 'id', 'Cases', 'cases', 'id', 'emails_cases', 'email_id', 'case_id', 'many-to-many', NULL, NULL, 0, 0),
('9309162b-64b6-b328-c4f1-4cef857beec7', 'emails_contacts', 'Emails', 'emails', 'id', 'Contacts', 'contacts', 'id', 'emails_contacts', 'email_id', 'contact_id', 'many-to-many', NULL, NULL, 0, 0),
('9386b7bd-8e5c-01cd-0292-4cef85b7b8c7', 'emails_users', 'Emails', 'emails', 'id', 'Users', 'users', 'id', 'emails_users', 'email_id', 'user_id', 'many-to-many', NULL, NULL, 0, 0),
('93ebb258-fd20-fb81-8ab9-4cef8509190d', 'event_contacts', 'SMSEvent', 'smsevent', 'id', 'Contacts', 'contacts', 'id', 'event_contacts', 'event_id', 'contact_id', 'many-to-many', NULL, NULL, 0, 0),
('946ee966-c7d2-4315-f6fd-4cef85139377', 'event_resource', 'SMSEvent', 'smsevent', 'id', 'Resource', 'resource', 'id', 'event_resource', 'event_id', 'resource_id', 'many-to-many', NULL, NULL, 0, 0),
('94de4c91-bed8-7039-8ea9-4cef85255e3e', 'person_contacts', 'Contacts', 'contacts', 'id', 'Contacts', 'contacts', 'id', 'person_contacts', 'person_id', 'contact_id', 'many-to-many', NULL, NULL, 0, 0),
('95522df4-6d2b-49d1-c792-4cef85d53f99', 'meetings_contacts', 'Meetings', 'meetings', 'id', 'Contacts', 'contacts', 'id', 'meetings_contacts', 'meeting_id', 'contact_id', 'many-to-many', NULL, NULL, 0, 0),
('95c80ebb-88f1-7365-00fe-4cef85d27db3', 'meetings_users', 'Meetings', 'meetings', 'id', 'Users', 'users', 'id', 'meetings_users', 'meeting_id', 'user_id', 'many-to-many', NULL, NULL, 0, 0),
('9642df23-6774-0c23-815e-4cef8560fcb7', 'opportunities_contacts', 'Opportunities', 'opportunities', 'id', 'Contacts', 'contacts', 'id', 'opportunities_contacts', 'opportunity_id', 'contact_id', 'many-to-many', NULL, NULL, 0, 0),
('96af5e5f-9c10-6820-b5e1-4cef8527a454', 'prospect_list_campaigns', 'ProspectLists', 'prospect_lists', 'id', 'Campaigns', 'campaigns', 'id', 'prospect_list_campaigns', 'prospect_list_id', 'campaign_id', 'many-to-many', NULL, NULL, 0, 0),
('9721671d-7679-fbea-102e-4cef85c55c84', 'prospect_list_contacts', 'ProspectLists', 'prospect_lists', 'id', 'Contacts', 'contacts', 'id', 'prospect_lists_prospects', 'prospect_list_id', 'related_id', 'many-to-many', 'related_type', 'Contacts', 0, 0),
('978bd7c4-853b-2807-5c21-4cef850de0e7', 'prospect_list_student', 'ProspectLists', 'prospect_lists', 'id', 'Student', 'contacts', 'id', 'prospect_lists_prospects', 'prospect_list_id', 'related_id', 'many-to-many', 'related_type', 'Contacts', 0, 0),
('97f1afab-03b5-7b80-912f-4cef8584d697', 'prospect_list_teacher', 'ProspectLists', 'prospect_lists', 'id', 'Teacher', 'contacts', 'id', 'prospect_lists_prospects', 'prospect_list_id', 'related_id', 'many-to-many', 'related_type', 'Contacts', 0, 0),
('986af693-6d15-0bd6-be1c-4cef852f4c7a', 'prospect_list_prospects', 'ProspectLists', 'prospect_lists', 'id', 'Prospects', 'prospects', 'id', 'prospect_lists_prospects', 'prospect_list_id', 'related_id', 'many-to-many', 'related_type', 'Prospects', 0, 0),
('98dc83cc-423a-036f-080e-4cef85ae5258', 'prospect_list_leads', 'ProspectLists', 'prospect_lists', 'id', 'Leads', 'leads', 'id', 'prospect_lists_prospects', 'prospect_list_id', 'related_id', 'many-to-many', 'related_type', 'Leads', 0, 0),
('9948636b-0dd5-75b8-0ecf-4cef851db5cf', 'prospect_list_users', 'ProspectLists', 'prospect_lists', 'id', 'Users', 'users', 'id', 'prospect_lists_prospects', 'prospect_list_id', 'related_id', 'many-to-many', 'related_type', 'Users', 0, 0),
('99b9929d-28d8-0b73-b09f-4cef85a711ee', 'roles_users', 'Roles', 'roles', 'id', 'Users', 'users', 'id', 'roles_users', 'role_id', 'user_id', 'many-to-many', NULL, NULL, 0, 0),
('9a20c3c0-8968-2609-6795-4cef858ddf26', 'projects_accounts', 'Accounts', 'accounts', 'id', 'Project', 'project', 'id', 'project_relation', 'relation_id', 'project_id', 'many-to-many', 'relation_type', 'Accounts', 0, 0),
('9a849885-66de-dac0-a56e-4cef85a27719', 'projects_contacts', 'Project', 'project', 'id', 'Contacts', 'contacts', 'id', 'project_relation', 'project_id', 'relation_id', 'many-to-many', 'relation_type', 'Contacts', 0, 0),
('9ae963a4-ae23-eee4-e91b-4cef85ad3a01', 'projects_opportunities', 'Project', 'project', 'id', 'Opportunities', 'opportunities', 'id', 'project_relation', 'project_id', 'relation_id', 'many-to-many', 'relation_type', 'Opportunities', 0, 0),
('9b6fa799-4662-7bcd-6e23-4cef85f78173', 'projects_quotes', 'Project', 'project', 'id', 'Quotes', 'quotes', 'id', 'project_relation', 'project_id', 'relation_id', 'many-to-many', 'relation_type', 'Quotes', 0, 0),
('9bd48656-3b8a-dc0a-7b7c-4cef8555ad4f', 'course_categories_contacts', 'CourseCategory', 'course_category', 'id', 'Contacts', 'contacts', 'id', 'course_categories_contacts', 'course_category_id', 'contact_id', 'many-to-many', NULL, NULL, 0, 0),
('9c3a18f0-9be2-87b2-8a88-4cef85e9e417', 'contacts_sms_memo', 'Contacts', 'contacts', 'id', 'SMSMemo', 'sms_memo', 'id', 'contacts_sms_memo', 'contact_id', 'sms_memo_id', 'many-to-many', NULL, NULL, 0, 0),
('9d08a6c3-ceaf-58a1-bd06-4cef857653eb', 'email_marketing_prospect_lists', 'EmailMarketing', 'email_marketing', 'id', 'ProspectLists', 'prospect_lists', 'id', 'email_marketing_prospect_lists', 'email_marketing_id', 'prospect_list_id', 'many-to-many', NULL, NULL, 0, 0),
('82fc68c1-d67f-4c78-178a-4586757aaaaa', 'shikaku_contact', 'Contact', 'contacts', 'id', 'Shikaku', 'sms_shikaku', 'contact_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0);
