<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20240722105028 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('CREATE TABLE account_settings (id INT AUTO_INCREMENT NOT NULL, version VARCHAR(255) DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE company (id INT AUTO_INCREMENT NOT NULL, deleted_by INT DEFAULT NULL, updated_by INT DEFAULT NULL, created_by INT DEFAULT NULL, company_title VARCHAR(255) NOT NULL, is_active TINYINT(1) DEFAULT 1 NOT NULL, is_deleted TINYINT(1) NOT NULL, created_at DATETIME DEFAULT NULL, updated_at DATETIME DEFAULT NULL, deleted_at DATETIME DEFAULT NULL, INDEX created_by (created_by), INDEX updated_by (updated_by), INDEX deleted_by (deleted_by), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE company_settings (id INT AUTO_INCREMENT NOT NULL, company_id INT DEFAULT NULL, account_version INT DEFAULT NULL, company_domain VARCHAR(255) DEFAULT NULL, company_image VARCHAR(255) DEFAULT NULL, plan VARCHAR(255) DEFAULT \'free_trail\' NOT NULL, plan_expire_date DATE DEFAULT NULL, system_language VARCHAR(10) NOT NULL, date_format VARCHAR(255) DEFAULT NULL, time_format VARCHAR(255) DEFAULT NULL, week_start_day VARCHAR(255) DEFAULT NULL, datetime_format VARCHAR(255) DEFAULT NULL, timezone VARCHAR(255) DEFAULT NULL, user_refid_prefix VARCHAR(50) DEFAULT \'LT\' NOT NULL, no_of_users INT NOT NULL, no_of_user_types INT NOT NULL, has_theme_customization TINYINT(1) NOT NULL, last_takt_timer_builder_cron_run_time DATETIME DEFAULT NULL, takt_timer_builder_cron_time TIME DEFAULT NULL, takt_build_tier INT DEFAULT NULL, has_task_timer TINYINT(1) NOT NULL, lunch_break_time INT NOT NULL, break_time INT NOT NULL, has_production_delay_mail TINYINT(1) NOT NULL, shift_end_delay_time INT NOT NULL COMMENT \'in seconds\', INDEX account_version (account_version), INDEX company_id (company_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE company_terminology (id INT AUTO_INCREMENT NOT NULL, terminology_id INT DEFAULT NULL, company_id INT DEFAULT NULL, singular_text VARCHAR(255) NOT NULL, plural_text VARCHAR(255) NOT NULL, INDEX company_id (company_id), INDEX terminology_id (terminology_id), UNIQUE INDEX company_id_2 (company_id, terminology_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE company_user (id INT AUTO_INCREMENT NOT NULL, user_id INT DEFAULT NULL, company_id INT DEFAULT NULL, is_main_user TINYINT(1) NOT NULL, is_default_company TINYINT(1) DEFAULT 1 NOT NULL, assigned_date DATETIME DEFAULT NULL, INDEX company_id (company_id), INDEX user_id (user_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE dp_action_plan (ap_id INT AUTO_INCREMENT NOT NULL, ap_created_by INT DEFAULT NULL, ap_updated_by INT DEFAULT NULL, ap_raised_by INT DEFAULT NULL, ap_kpi INT DEFAULT NULL, ap_level INT DEFAULT NULL, ap_workstation INT DEFAULT NULL, ap_title VARCHAR(255) NOT NULL, ap_priority VARCHAR(255) NOT NULL, ap_root_cause MEDIUMTEXT DEFAULT NULL, ap_corrective_actions MEDIUMTEXT DEFAULT NULL, ap_concern MEDIUMTEXT DEFAULT NULL, ap_description LONGTEXT DEFAULT NULL, ap_status VARCHAR(255) DEFAULT \'open\' NOT NULL, ap_due_date DATETIME NOT NULL, ap_completed_at DATETIME DEFAULT NULL, ap_created_at DATETIME NOT NULL, ap_updated_at DATETIME DEFAULT NULL, INDEX ap_workstation (ap_workstation), INDEX ap_level (ap_level), INDEX ap_kpi (ap_kpi), INDEX ap_raised_by (ap_raised_by), INDEX ap_created_by (ap_created_by), INDEX ap_updated_by (ap_updated_by), PRIMARY KEY(ap_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE dp_action_plan_assign (ap_assign_id INT AUTO_INCREMENT NOT NULL, ap_assign_created_by INT DEFAULT NULL, assigned_by INT DEFAULT NULL, unassigned_by INT DEFAULT NULL, ap_assign_updated_by INT DEFAULT NULL, ap_id INT DEFAULT NULL, assigned_to INT DEFAULT NULL, target_date DATETIME NOT NULL, status VARCHAR(255) DEFAULT \'pending\' NOT NULL, is_unassigned INT NOT NULL, unassigned_at DATETIME DEFAULT NULL, ap_assign_created_at DATETIME NOT NULL, ap_assign_updated_at DATETIME DEFAULT NULL, INDEX ap_id (ap_id), INDEX assigned_to (assigned_to), INDEX assigned_by (assigned_by), INDEX unassigned_by (unassigned_by), INDEX ap_assign_created_by (ap_assign_created_by), INDEX ap_assign_updated_by (ap_assign_updated_by), PRIMARY KEY(ap_assign_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE dp_action_plan_report (ap_report_id INT AUTO_INCREMENT NOT NULL, ap_id INT DEFAULT NULL, ap_report_created_by INT DEFAULT NULL, ap_report_user_id INT DEFAULT NULL, ap_report_updated_by INT DEFAULT NULL, ap_report_work_status_entry MEDIUMTEXT NOT NULL, ap_report_status VARCHAR(255) NOT NULL, ap_report_entry_type VARCHAR(255) NOT NULL, ap_report_created_at DATETIME NOT NULL, ap_report_updated_at DATETIME DEFAULT NULL, INDEX ap_id (ap_id), INDEX ap_report_created_by (ap_report_created_by), INDEX ap_report_updated_by (ap_report_updated_by), INDEX ap_report_user_id (ap_report_user_id), PRIMARY KEY(ap_report_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE dp_action_plan_type (ap_type_id INT AUTO_INCREMENT NOT NULL, ap_type_created_by INT DEFAULT NULL, ap_type_updated_by INT DEFAULT NULL, ap_type_title VARCHAR(255) NOT NULL, ap_type_is_active INT DEFAULT 1 NOT NULL COMMENT \'1 - active, 0 - inactive \', ap_type_is_deleted INT NOT NULL COMMENT \'1 - deleted\', ap_type_created_at DATETIME NOT NULL, ap_type_updated_at DATETIME DEFAULT NULL, INDEX ap_type_created_by (ap_type_created_by), INDEX ap_type_updated_by (ap_type_updated_by), PRIMARY KEY(ap_type_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE dp_action_plan_upload_files (ap_file_id INT AUTO_INCREMENT NOT NULL, ap_id INT DEFAULT NULL, ap_report_id INT DEFAULT NULL, ap_file_created_by INT DEFAULT NULL, ap_file_updated_by INT DEFAULT NULL, ap_file_name VARCHAR(500) NOT NULL, ap_file_extension VARCHAR(20) NOT NULL, ap_file_size VARCHAR(100) NOT NULL, ap_file_path TEXT NOT NULL, ap_file_type VARCHAR(255) NOT NULL COMMENT \'\'\'add\'\' : Defect add section files uploaded by operator, \'\'attend\'\' : work status files for defect closing time\', ap_file_created_at DATETIME NOT NULL, ap_file_updated_at DATETIME DEFAULT NULL, INDEX ap_file_created_by (ap_file_created_by), INDEX ap_file_updated_by (ap_file_updated_by), INDEX ap_id (ap_id), INDEX ap_report_id (ap_report_id), PRIMARY KEY(ap_file_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE dp_category (cat_id INT AUTO_INCREMENT NOT NULL, cat_created_by INT DEFAULT NULL, cat_updated_by INT DEFAULT NULL, company_id INT DEFAULT NULL, cat_name VARCHAR(255) NOT NULL, cat_letter VARCHAR(255) NOT NULL COMMENT \'Letter will display in Team leader dashboard SVG\', cat_status VARCHAR(255) DEFAULT \'enabled\', cat_created_at DATETIME NOT NULL, cat_updated_at DATETIME DEFAULT NULL, INDEX company_id (company_id), INDEX cat_created_by (cat_created_by), INDEX cat_updated_by (cat_updated_by), PRIMARY KEY(cat_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE dp_customer_ptm (id INT AUTO_INCREMENT NOT NULL, company_id INT DEFAULT NULL, created_by INT DEFAULT NULL, updated_by INT DEFAULT NULL, deleted_by INT DEFAULT NULL, customer_id INT DEFAULT NULL, ptm INT NOT NULL, hourly_target INT NOT NULL, is_deleted INT NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME DEFAULT NULL, deleted_at DATETIME NOT NULL, INDEX company_id (company_id), INDEX created_by (created_by), INDEX customer_id (customer_id), INDEX deleted_by (deleted_by), INDEX updated_by (updated_by), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE dp_customer_ratio (id INT AUTO_INCREMENT NOT NULL, customer_id INT DEFAULT NULL, created_by INT DEFAULT NULL, updated_by INT DEFAULT NULL, deleted_by INT DEFAULT NULL, customer_ptm_id INT DEFAULT NULL, customer_ratio DOUBLE PRECISION DEFAULT NULL, month DATE DEFAULT NULL, is_deleted TINYINT(1) NOT NULL, created_at DATETIME DEFAULT NULL, updated_at DATETIME DEFAULT NULL, deleted_at DATETIME DEFAULT NULL, INDEX created_by (created_by), INDEX customer_id (customer_id), INDEX customer_ptm_id (customer_ptm_id), INDEX deleted_by (deleted_by), INDEX updated_by (updated_by), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE dp_customers (id INT AUTO_INCREMENT NOT NULL, created_by INT DEFAULT NULL, updated_by INT DEFAULT NULL, deleted_by INT DEFAULT NULL, company_id INT DEFAULT NULL, customer_name VARCHAR(255) DEFAULT NULL, company_address VARCHAR(500) DEFAULT NULL, poc_first_name VARCHAR(255) DEFAULT NULL, poc_last_name VARCHAR(255) DEFAULT NULL, email VARCHAR(255) DEFAULT NULL, phone_no VARCHAR(255) DEFAULT NULL, is_deleted TINYINT(1) NOT NULL, created_at DATETIME DEFAULT NULL, updated_at DATETIME DEFAULT NULL, deleted_at DATETIME DEFAULT NULL, INDEX created_by (created_by), INDEX updated_by (updated_by), INDEX deleted_by (deleted_by), INDEX company_id (company_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE dp_data (data_id INT AUTO_INCREMENT NOT NULL, data_created_by INT DEFAULT NULL, data_updated_by INT DEFAULT NULL, data_uk_id INT DEFAULT NULL, data_shift_id INT DEFAULT NULL, data_level_id INT DEFAULT NULL, data_type VARCHAR(255) NOT NULL, data_value VARCHAR(255) DEFAULT NULL, data_date DATETIME NOT NULL, data_created_at DATETIME NOT NULL, data_updated_at DATETIME DEFAULT NULL, INDEX data_created_by (data_created_by), INDEX data_level_id (data_level_id), INDEX data_shift_id (data_shift_id), INDEX data_uk_id (data_uk_id), INDEX data_updated_by (data_updated_by), PRIMARY KEY(data_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE dp_failure_data (id INT AUTO_INCREMENT NOT NULL, created_by INT DEFAULT NULL, op_ut_id INT DEFAULT NULL, reason_id INT DEFAULT NULL, updated_by INT DEFAULT NULL, reason_kpi_rel_id INT DEFAULT NULL, date DATETIME NOT NULL, count VARCHAR(255) DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME DEFAULT NULL, INDEX created_by (created_by), INDEX op_ut_id (op_ut_id), INDEX reason_id (reason_id), INDEX reason_kpi_rel_id (reason_kpi_rel_id), INDEX updated_by (updated_by), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE dp_icons (icon_id INT AUTO_INCREMENT NOT NULL, icon_updated_by INT DEFAULT NULL, icon_created_by INT DEFAULT NULL, company_id INT DEFAULT NULL, icon_name VARCHAR(255) NOT NULL, icon_link VARCHAR(255) DEFAULT NULL, icon_status VARCHAR(255) DEFAULT \'enabled\', icon_created_at DATETIME NOT NULL, icon_updated_at DATETIME DEFAULT NULL, INDEX company_id (company_id), INDEX icon_created_by (icon_created_by), INDEX icon_updated_by (icon_updated_by), PRIMARY KEY(icon_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE dp_kpi (kpi_id INT AUTO_INCREMENT NOT NULL, kpi_icon INT DEFAULT NULL, kpi_category INT DEFAULT NULL, company_id INT DEFAULT NULL, kpi_created_by INT DEFAULT NULL, kpi_updated_by INT DEFAULT NULL, kpi_name VARCHAR(255) NOT NULL, kpi_type VARCHAR(255) NOT NULL COMMENT \'basic : data entry via excel,datasheet or apis, derived : data auto genarated by system itself\', kpi_direction VARCHAR(255) NOT NULL COMMENT \'up kpi or down kpi\', kpi_entry_type VARCHAR(255) NOT NULL, kpi_formula VARCHAR(255) DEFAULT NULL COMMENT \'For derived kpis value populated by using this formulea\', kpi_no_data_after_decimal_space INT DEFAULT 1, kpi_uof VARCHAR(255) DEFAULT NULL COMMENT \'Unit of measure\', takt_based TINYINT(1) NOT NULL COMMENT \'0-ordinary kpi, 1-Takt Based KPI\', visbility VARCHAR(255) DEFAULT \'both\' NOT NULL, is_default TINYINT(1) NOT NULL COMMENT \'1- Default,0- Not Default\', actual_default_value VARCHAR(255) DEFAULT NULL, plan_default_value VARCHAR(255) DEFAULT NULL, kpi_status VARCHAR(255) DEFAULT \'enabled\', field_type VARCHAR(255) NOT NULL, kpi_key VARCHAR(255) DEFAULT NULL, kpi_created_at DATETIME NOT NULL, kpi_updated_at DATETIME DEFAULT NULL, INDEX company_id (company_id), INDEX kpi_category (kpi_category), INDEX kpi_created_by (kpi_created_by), INDEX kpi_icon (kpi_icon), INDEX kpi_updated_by (kpi_updated_by), PRIMARY KEY(kpi_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE dp_kpi_relations (kpi_rel_id INT AUTO_INCREMENT NOT NULL, kpi_rel_derived_kpi_id INT NOT NULL COMMENT \'Derived KPIs\', kpi_rel_kpi_id INT NOT NULL COMMENT \'Basic KPIs\', kpi_rel_created_at DATETIME NOT NULL, kpi_rel_updated_at DATETIME DEFAULT NULL, PRIMARY KEY(kpi_rel_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE dp_level_op_ut_relation (lu_id INT AUTO_INCREMENT NOT NULL, lu_op_ut_id INT DEFAULT NULL, lu_created_by INT DEFAULT NULL, lu_updated_by INT DEFAULT NULL, lu_level_id INT DEFAULT NULL, lu_status VARCHAR(255) DEFAULT \'enabled\', lu_created_at DATETIME NOT NULL, lu_updated_at DATETIME DEFAULT NULL, INDEX lu_created_by (lu_created_by), INDEX lu_level_id (lu_level_id), INDEX lu_op_ut_id (lu_op_ut_id), INDEX lu_updated_by (lu_updated_by), PRIMARY KEY(lu_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE dp_level_settings (id INT AUTO_INCREMENT NOT NULL, created_by INT DEFAULT NULL, updated_by INT DEFAULT NULL, level_id INT DEFAULT NULL, company_id INT DEFAULT NULL, gr_processing_time INT NOT NULL, schedule_margin_key DOUBLE PRECISION NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME DEFAULT NULL, INDEX company_id (company_id), INDEX created_by (created_by), INDEX level_id (level_id), INDEX updated_by (updated_by), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE dp_levels (level_id INT AUTO_INCREMENT NOT NULL, level_created_by INT DEFAULT NULL, level_updated_by INT DEFAULT NULL, org_id INT DEFAULT NULL, company_id INT DEFAULT NULL, level_name VARCHAR(255) NOT NULL, level_status VARCHAR(255) DEFAULT \'enabled\', board_identifier VARCHAR(255) DEFAULT NULL, level_created_at DATETIME NOT NULL, level_updated_at DATETIME DEFAULT NULL, INDEX level_created_by (level_created_by), INDEX level_updated_by (level_updated_by), INDEX org_id (org_id), INDEX company_id (company_id), PRIMARY KEY(level_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE dp_milestone (em_id INT AUTO_INCREMENT NOT NULL, em_created_by INT DEFAULT NULL, em_updated_by INT DEFAULT NULL, em_title TEXT DEFAULT NULL, em_status VARCHAR(255) DEFAULT \'active\' NOT NULL, em_created_at DATETIME NOT NULL, em_updated_at DATETIME DEFAULT NULL, INDEX dp_milestone_ibfk_1 (em_created_by), INDEX dp_milestone_ibfk_2 (em_updated_by), PRIMARY KEY(em_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE dp_monthly_eff_rates (id INT AUTO_INCREMENT NOT NULL, created_by INT DEFAULT NULL, updated_by INT DEFAULT NULL, deleted_by INT DEFAULT NULL, eff_rate DOUBLE PRECISION DEFAULT NULL, month DATE DEFAULT NULL, weighted_target DOUBLE PRECISION DEFAULT NULL, oee DOUBLE PRECISION NOT NULL, created_at DATETIME DEFAULT NULL, is_deleted INT DEFAULT NULL, updated_at DATETIME DEFAULT NULL, deleted_at DATETIME DEFAULT NULL, INDEX created_by (created_by), INDEX deleted_by (deleted_by), INDEX updated_by (updated_by), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE dp_operational_unit (op_ut_id INT AUTO_INCREMENT NOT NULL, op_ut_type INT DEFAULT NULL, op_ut_created_by INT DEFAULT NULL, op_ut_updated_by INT DEFAULT NULL, op_ut_name VARCHAR(255) NOT NULL, opu_key VARCHAR(255) NOT NULL, op_ut_created_at DATETIME NOT NULL, op_ut_updated_at DATETIME DEFAULT NULL, op_ut_status VARCHAR(255) DEFAULT \'enabled\', INDEX op_ut_created_by (op_ut_created_by), INDEX op_ut_type (op_ut_type), INDEX op_ut_updated_by (op_ut_updated_by), PRIMARY KEY(op_ut_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE dp_operational_unit_type (op_type_id INT AUTO_INCREMENT NOT NULL, company_id INT DEFAULT NULL, op_type_created_by INT DEFAULT NULL, op_type_updated_by INT DEFAULT NULL, op_type_name VARCHAR(255) NOT NULL, op_type_status VARCHAR(255) DEFAULT \'enabled\', op_type_created_at DATETIME NOT NULL, op_type_updated_at DATETIME DEFAULT NULL, INDEX company_id (company_id), INDEX op_type_created_by (op_type_created_by), INDEX op_type_updated_by (op_type_updated_by), PRIMARY KEY(op_type_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE dp_oput_kpi_assign (uk_id INT AUTO_INCREMENT NOT NULL, level_id INT DEFAULT NULL, uk_updated_by INT DEFAULT NULL, uk_kpi_id INT DEFAULT NULL, uk_created_by INT DEFAULT NULL, product_id INT DEFAULT NULL, product_var_id INT DEFAULT NULL, uk_status VARCHAR(255) DEFAULT \'enabled\', uk_created_at DATETIME NOT NULL, uk_updated_at DATETIME DEFAULT NULL, INDEX uk_kpi_id (uk_kpi_id), INDEX uk_created_by (uk_created_by), INDEX uk_updated_by (uk_updated_by), INDEX product_id (product_id), INDEX product_var_id (product_var_id), INDEX level_id (level_id), PRIMARY KEY(uk_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE dp_preferences (id INT AUTO_INCREMENT NOT NULL, user_id INT DEFAULT NULL, pref_created_by INT DEFAULT NULL, pref_updated_by INT DEFAULT NULL, tl_dashboard MEDIUMTEXT DEFAULT NULL, kpi_dashboard MEDIUMTEXT DEFAULT NULL, score_card MEDIUMTEXT DEFAULT NULL, pref_created_at DATETIME NOT NULL, pref_updated_at DATETIME DEFAULT NULL, INDEX pref_created_by (pref_created_by), INDEX pref_updated_by (pref_updated_by), INDEX user_id (user_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE dp_product_variants (id INT AUTO_INCREMENT NOT NULL, created_by INT DEFAULT NULL, updated_by INT DEFAULT NULL, deleted_by INT DEFAULT NULL, company_id INT DEFAULT NULL, customer_id INT DEFAULT NULL, product_id INT DEFAULT NULL, hitachi_part_no VARCHAR(255) DEFAULT NULL, model_no VARCHAR(255) DEFAULT NULL, hitachi_uk_code VARCHAR(255) DEFAULT NULL, project VARCHAR(255) DEFAULT NULL, production_colour VARCHAR(255) DEFAULT NULL, packaging VARCHAR(255) DEFAULT NULL, connector INT DEFAULT NULL, checksum VARCHAR(255) DEFAULT NULL, box INT DEFAULT NULL, comment VARCHAR(500) DEFAULT NULL, is_approved TINYINT(1) NOT NULL, is_deleted TINYINT(1) NOT NULL, created_at DATETIME DEFAULT NULL, updated_at DATETIME DEFAULT NULL, deleted_at DATETIME DEFAULT NULL, INDEX product_id (product_id), INDEX customer_id (customer_id), INDEX created_by (created_by), INDEX updated_by (updated_by), INDEX deleted_by (deleted_by), INDEX company_id (company_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE dp_products (id INT AUTO_INCREMENT NOT NULL, created_by INT DEFAULT NULL, updated_by INT DEFAULT NULL, deleted_by INT DEFAULT NULL, company_id INT DEFAULT NULL, customer_id INT DEFAULT NULL, hitachi_part_no VARCHAR(255) DEFAULT NULL, model_no VARCHAR(255) DEFAULT NULL, project VARCHAR(255) DEFAULT NULL, production_colour VARCHAR(255) DEFAULT NULL, packaging VARCHAR(255) DEFAULT NULL, connector INT DEFAULT NULL, is_approved TINYINT(1) NOT NULL, is_deleted TINYINT(1) NOT NULL, created_at DATETIME DEFAULT NULL, updated_at DATETIME DEFAULT NULL, deleted_at DATETIME DEFAULT NULL, INDEX customer_id (customer_id), INDEX created_by (created_by), INDEX updated_by (updated_by), INDEX deleted_by (deleted_by), INDEX dp_products_ibfk_5 (company_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE dp_project_action_plans (id INT AUTO_INCREMENT NOT NULL, project_id INT DEFAULT NULL, created_by INT DEFAULT NULL, updated_by INT DEFAULT NULL, action_plan_id INT DEFAULT NULL, status VARCHAR(255) DEFAULT \'active\' NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME DEFAULT NULL, INDEX action_plan_id (action_plan_id), INDEX project_id (project_id), INDEX created_by (created_by), INDEX updated_by (updated_by), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE dp_project_assignees (id INT AUTO_INCREMENT NOT NULL, updated_by INT DEFAULT NULL, created_by INT DEFAULT NULL, project_id INT DEFAULT NULL, assignee INT DEFAULT NULL, assignee_type VARCHAR(255) NOT NULL, status VARCHAR(255) DEFAULT \'enabled\' NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME DEFAULT NULL, INDEX assignee (assignee), INDEX created_by (created_by), INDEX project_id (project_id), INDEX updated_by (updated_by), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE dp_project_milestones (id INT AUTO_INCREMENT NOT NULL, project_id INT DEFAULT NULL, created_by INT DEFAULT NULL, updated_by INT DEFAULT NULL, estimatedmilestones INT DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME DEFAULT NULL, INDEX dp_project_estimatedmilestone_ibfk_1 (project_id), INDEX dp_project_estimatedmilestone_ibfk_2 (created_by), INDEX dp_project_estimatedmilestone_ibfk_3 (updated_by), INDEX dp_project_estimatedmilestone_ibfk_4 (estimatedmilestones), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE dp_project_risks (id INT AUTO_INCREMENT NOT NULL, updated_by INT DEFAULT NULL, created_by INT DEFAULT NULL, project_id INT DEFAULT NULL, risks MEDIUMTEXT DEFAULT NULL, like_hood MEDIUMTEXT DEFAULT NULL, Impact MEDIUMTEXT DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME DEFAULT NULL, INDEX project_id (project_id), INDEX created_by (created_by), INDEX updated_by (updated_by), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE dp_projects (id INT AUTO_INCREMENT NOT NULL, updated_by INT DEFAULT NULL, created_by INT DEFAULT NULL, project_name MEDIUMTEXT NOT NULL, expected_start_date DATETIME DEFAULT NULL, expected_completion_date DATETIME DEFAULT NULL, project_description MEDIUMTEXT DEFAULT NULL, key_requirements MEDIUMTEXT DEFAULT NULL, est_cost DOUBLE PRECISION DEFAULT NULL COMMENT \'in $\', expected_benifits MEDIUMTEXT DEFAULT NULL, project_status VARCHAR(255) DEFAULT \'pending\' NOT NULL, status VARCHAR(255) DEFAULT \'active\' NOT NULL, what_constitutes_success MEDIUMTEXT DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME DEFAULT NULL, INDEX created_by (created_by), INDEX updated_by (updated_by), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE dp_reason (reason_id INT AUTO_INCREMENT NOT NULL, reason_type INT DEFAULT NULL, reason_created_by INT DEFAULT NULL, reason_updated_by INT DEFAULT NULL, reason_name VARCHAR(255) NOT NULL, reason_image VARCHAR(255) DEFAULT NULL, status VARCHAR(255) DEFAULT \'enabled\' NOT NULL, comment_required TINYINT(1) NOT NULL COMMENT \'0- Not Needed, 1- Comment Required\', reason_created_at DATETIME NOT NULL, reason_updated_at DATETIME DEFAULT NULL, INDEX reason_created_by (reason_created_by), INDEX reason_type (reason_type), INDEX reason_updated_by (reason_updated_by), PRIMARY KEY(reason_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE dp_reason_kpi_relation (id INT AUTO_INCREMENT NOT NULL, created_by INT DEFAULT NULL, updated_by INT DEFAULT NULL, kpi_id INT DEFAULT NULL, reason_id INT DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME DEFAULT NULL, INDEX created_by (created_by), INDEX kpi_id (kpi_id), INDEX reason_id (reason_id), INDEX updated_by (updated_by), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE dp_reason_type (reason_type_id INT AUTO_INCREMENT NOT NULL, reason_type_created_by INT DEFAULT NULL, reason_type_updated_by INT DEFAULT NULL, reason_type VARCHAR(255) NOT NULL, reason_type_created_at DATETIME NOT NULL, reason_type_updated_at DATETIME DEFAULT NULL, INDEX reason_type_created_by (reason_type_created_by), INDEX reason_type_updated_by (reason_type_updated_by), PRIMARY KEY(reason_type_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE dp_schedule_log (scheduler_log_id INT AUTO_INCREMENT NOT NULL, schedule_takt_timer_id INT DEFAULT NULL, schedule_date DATETIME NOT NULL, schedule_takt_data MEDIUMTEXT NOT NULL, schedule_status TINYINT(1) DEFAULT 1 NOT NULL COMMENT \'1-Active, 0- Not Acticve\', schedule_log_type VARCHAR(255) DEFAULT \'takt_start\' NOT NULL, created_time DATETIME NOT NULL, INDEX schedule_takt_timer_id (schedule_takt_timer_id), PRIMARY KEY(scheduler_log_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE dp_shift (shift_id INT AUTO_INCREMENT NOT NULL, company_id INT DEFAULT NULL, shift_created_by INT DEFAULT NULL, shift_updated_by INT DEFAULT NULL, shift_name VARCHAR(255) NOT NULL, shift_start_date DATE DEFAULT NULL, shift_end_date DATE DEFAULT NULL, shift_start_time TIME DEFAULT NULL, shift_end_time TIME DEFAULT NULL, shift_duration INT NOT NULL COMMENT \'in seconds\', shift_created_at DATETIME NOT NULL, shift_updated_at DATETIME DEFAULT NULL, shift_status VARCHAR(255) DEFAULT \'enabled\', INDEX company_id (company_id), INDEX shift_created_by (shift_created_by), INDEX shift_updated_by (shift_updated_by), PRIMARY KEY(shift_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE dp_shift_assign (assign_id INT AUTO_INCREMENT NOT NULL, assign_user_id INT DEFAULT NULL, assign_shift_id INT DEFAULT NULL, level_id INT DEFAULT NULL, assign_start_date DATE DEFAULT NULL, assign_end_date DATE DEFAULT NULL, assign_status VARCHAR(255) DEFAULT \'enabled\', INDEX assign_shift_id (assign_shift_id), INDEX assign_user_id (assign_user_id), INDEX level_id (level_id), PRIMARY KEY(assign_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE dp_shift_break_hours (shift_break_id INT AUTO_INCREMENT NOT NULL, shift_level_id INT DEFAULT NULL, shift_break_created_by INT DEFAULT NULL, shift_break_updated_by INT DEFAULT NULL, shift_id INT DEFAULT NULL, shift_break_hour INT NOT NULL COMMENT \'in seconds\', shift_productive_hour INT NOT NULL COMMENT \'in seconds\', shift_break_created_at DATETIME DEFAULT NULL, shift_break_updated_at DATETIME DEFAULT NULL, INDEX shift_break_updated_by (shift_break_updated_by), INDEX shift_break_created_by (shift_break_created_by), INDEX shift_id (shift_id), INDEX shift_level_id (shift_level_id), PRIMARY KEY(shift_break_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE dp_shift_days (id INT AUTO_INCREMENT NOT NULL, shift_id INT DEFAULT NULL, created_by INT DEFAULT NULL, updated_by INT DEFAULT NULL, deleted_by INT DEFAULT NULL, week_day_id INT DEFAULT NULL, company_id INT DEFAULT NULL, start_time TIME DEFAULT NULL, end_time TIME DEFAULT NULL, break_time DOUBLE PRECISION DEFAULT NULL, productive_time DOUBLE PRECISION DEFAULT NULL, is_deleted TINYINT(1) DEFAULT NULL, created_at DATETIME DEFAULT NULL, updated_at DATETIME DEFAULT NULL, deleted_at DATETIME DEFAULT NULL, INDEX company_id (company_id), INDEX created_by (created_by), INDEX deleted_by (deleted_by), INDEX shift_id (shift_id), INDEX updated_by (updated_by), INDEX week_day_id (week_day_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE dp_shift_settings (id INT AUTO_INCREMENT NOT NULL, company_id INT DEFAULT NULL, created_by INT DEFAULT NULL, updated_by INT DEFAULT NULL, deleted_by INT DEFAULT NULL, shift_name VARCHAR(255) DEFAULT NULL, is_deleted TINYINT(1) DEFAULT NULL, created_at DATETIME DEFAULT NULL, updated_at DATETIME DEFAULT NULL, deleted_at DATETIME DEFAULT NULL, INDEX company_id (company_id), INDEX created_by (created_by), INDEX deleted_by (deleted_by), INDEX updated_by (updated_by), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE dp_takt_cycles (cycle_id INT AUTO_INCREMENT NOT NULL, cycle_takt_id INT DEFAULT NULL, cycle_reason INT DEFAULT NULL, cycle_start_date DATETIME NOT NULL, cycle_end_date DATETIME DEFAULT NULL, cycle_status VARCHAR(255) DEFAULT \'start\' NOT NULL, takt_cycle INT DEFAULT 1 NOT NULL, takt_remaining_time INT NOT NULL COMMENT \'in seconds\', cycle_pause_time DATETIME DEFAULT NULL, cycle_pause_start_time DATETIME DEFAULT NULL, cycle_run_duration INT NOT NULL, cycle_pause_duration INT NOT NULL, INDEX cycle_reason (cycle_reason), INDEX cycle_takt_id (cycle_takt_id), PRIMARY KEY(cycle_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE dp_takt_notification_assign (id INT AUTO_INCREMENT NOT NULL, config_id INT DEFAULT NULL, user_id INT DEFAULT NULL, updated_by INT DEFAULT NULL, created_by INT DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME DEFAULT NULL, INDEX config_id (config_id), INDEX created_by (created_by), INDEX updated_by (updated_by), INDEX user_id (user_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE dp_takt_notification_config (id INT AUTO_INCREMENT NOT NULL, created_by INT DEFAULT NULL, updated_by INT DEFAULT NULL, line INT DEFAULT NULL, workstation INT DEFAULT NULL, company_id INT DEFAULT NULL, notify_intervel INT DEFAULT NULL COMMENT \'in seconds\', notify_takt INT DEFAULT NULL, description TEXT NOT NULL, email_content TEXT NOT NULL, trigger_type INT NOT NULL, status VARCHAR(255) DEFAULT \'enable\' NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME DEFAULT NULL, INDEX company_id (company_id), INDEX created_by (created_by), INDEX line (line), INDEX updated_by (updated_by), INDEX workstation (workstation), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE dp_takt_notify_interval_log (id INT AUTO_INCREMENT NOT NULL, config_id INT DEFAULT NULL, notify_assign_user_id INT DEFAULT NULL, takt_cycle_id INT DEFAULT NULL, created_at DATETIME NOT NULL, INDEX config_id (config_id), INDEX notify_assign_user_id (notify_assign_user_id), INDEX takt_cycle_id (takt_cycle_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE dp_takt_op_ut (id INT AUTO_INCREMENT NOT NULL, cycle_id INT DEFAULT NULL, op_ut INT DEFAULT NULL, reason_id INT DEFAULT NULL, created_by INT DEFAULT NULL, datatime DATETIME NOT NULL, count INT DEFAULT 1 NOT NULL, comments VARCHAR(255) DEFAULT NULL, actual_time INT NOT NULL, status VARCHAR(255) NOT NULL, INDEX created_by (created_by), INDEX cycle_id (cycle_id), INDEX op_ut (op_ut), INDEX reason_id (reason_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE dp_takt_timer (takt_id INT AUTO_INCREMENT NOT NULL, takt_shift_id INT DEFAULT NULL, takt_level_id INT DEFAULT NULL, takt_op_unit_id INT DEFAULT NULL, takt_start_date DATETIME DEFAULT NULL, takt_end_date DATETIME DEFAULT NULL, takt_duration INT NOT NULL COMMENT \'in seconds\', takt_break_hour INT NOT NULL COMMENT \'in seconds\', takt_productive_hour INT NOT NULL COMMENT \'in seconds\', takt_cycles INT NOT NULL, takt_current_cycle INT DEFAULT NULL, takt_time INT NOT NULL COMMENT \'in seconds\', takt_status VARCHAR(255) DEFAULT \'pending\', INDEX level_id (takt_level_id), INDEX takt_op_unit_id (takt_op_unit_id), INDEX takt_shift_id (takt_shift_id), PRIMARY KEY(takt_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE dp_takt_track (track_id INT AUTO_INCREMENT NOT NULL, track_created_by INT DEFAULT NULL, track_takt_cycle_id INT DEFAULT NULL, track_reason INT DEFAULT NULL, track_takt_id INT DEFAULT NULL, track_start_date DATETIME NOT NULL, track_end_date DATETIME DEFAULT NULL, track_created_at DATETIME NOT NULL, INDEX track_takt_id (track_takt_id), INDEX track_reason (track_reason), INDEX track_created_by (track_created_by), INDEX track_takt_cycle_id (track_takt_cycle_id), INDEX track_created_by_2 (track_created_by), PRIMARY KEY(track_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE dp_week_days (id INT AUTO_INCREMENT NOT NULL, company_id INT DEFAULT NULL, created_by INT DEFAULT NULL, week_day VARCHAR(255) DEFAULT NULL, week_day_type VARCHAR(255) NOT NULL, created_at DATETIME DEFAULT NULL, INDEX company_id (company_id), INDEX created_by (created_by), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE dp_workorder (id INT AUTO_INCREMENT NOT NULL, product_id INT DEFAULT NULL, product_var_id INT DEFAULT NULL, customer_id INT DEFAULT NULL, created_by INT DEFAULT NULL, updated_by INT DEFAULT NULL, company_id INT DEFAULT NULL, material VARCHAR(255) DEFAULT NULL, call_control VARCHAR(255) DEFAULT NULL, unloading_point VARCHAR(255) DEFAULT NULL, customer_jit_call_no VARCHAR(255) DEFAULT NULL, item_description TEXT DEFAULT NULL, planned_shipping_date DATE DEFAULT NULL, jit_call_quantity INT DEFAULT NULL, repeat_order TINYINT(1) DEFAULT NULL, sold_to_party INT DEFAULT NULL, shipping_to VARCHAR(255) DEFAULT NULL, part_no VARCHAR(255) DEFAULT NULL, uk_code VARCHAR(255) DEFAULT NULL, customer_name VARCHAR(255) DEFAULT NULL, stock INT DEFAULT NULL, ship_log VARCHAR(255) DEFAULT NULL, product_colour VARCHAR(255) DEFAULT NULL, work_order_status VARCHAR(255) DEFAULT \'pending\' NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME DEFAULT NULL, INDEX company_id (company_id), INDEX created_by (created_by), INDEX customer_id (customer_id), INDEX product_id (product_id), INDEX product_id_2 (product_id), INDEX product_var_id (product_var_id), INDEX updated_by (updated_by), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE dp_workstation_issues_log (id INT AUTO_INCREMENT NOT NULL, resolved_by INT DEFAULT NULL, reported_by INT DEFAULT NULL, op_unit INT DEFAULT NULL, start_date DATETIME DEFAULT NULL, end_date DATETIME DEFAULT NULL, comment MEDIUMTEXT DEFAULT NULL, issue_status VARCHAR(255) DEFAULT \'pending\' NOT NULL, INDEX op_unit (op_unit), INDEX reported_by (reported_by), INDEX resolved_by (resolved_by), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE invite_user (id INT AUTO_INCREMENT NOT NULL, role_id INT DEFAULT NULL, company_id INT DEFAULT NULL, reference_id VARCHAR(255) DEFAULT NULL, email_id VARCHAR(255) DEFAULT NULL, link_type VARCHAR(255) DEFAULT NULL, is_active TINYINT(1) DEFAULT 1 NOT NULL, generated_at DATETIME DEFAULT NULL, generated_by INT DEFAULT NULL, deactivated_at DATETIME DEFAULT NULL, deactivated_by INT DEFAULT NULL, INDEX company_id (company_id), INDEX generated_by (generated_by), INDEX deactivated_by (deactivated_by), INDEX role_id (role_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE login_sessions (id INT AUTO_INCREMENT NOT NULL, company_id INT DEFAULT NULL, user_id INT DEFAULT NULL, location MEDIUMTEXT DEFAULT NULL, device VARCHAR(255) DEFAULT NULL, ip_address VARCHAR(255) DEFAULT NULL, action VARCHAR(255) NOT NULL, action_time DATETIME DEFAULT NULL, last_active_time DATETIME DEFAULT NULL, last_access_route VARCHAR(255) DEFAULT NULL, INDEX user_id (user_id), INDEX company_id (company_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE reset_password_request (id INT AUTO_INCREMENT NOT NULL, user_id INT NOT NULL, selector VARCHAR(20) NOT NULL, hashed_token VARCHAR(100) NOT NULL, requested_at DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', expires_at DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', INDEX IDX_7CE748AA76ED395 (user_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE tc_board_card_details (id INT AUTO_INCREMENT NOT NULL, created_by INT DEFAULT NULL, workorder_id INT DEFAULT NULL, opt_unit_id INT DEFAULT NULL, card_id INT DEFAULT NULL, updated_by INT DEFAULT NULL, order_qty INT NOT NULL, schedule_status VARCHAR(255) DEFAULT \'pending\' NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME DEFAULT NULL, INDEX card_id (card_id), INDEX card_id_2 (card_id), INDEX created_by (created_by), INDEX created_by_2 (created_by), INDEX opt_unit_id (opt_unit_id), INDEX updated_by (updated_by), INDEX workorder_id (workorder_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE tc_board_cards (id INT AUTO_INCREMENT NOT NULL, company_id INT DEFAULT NULL, product_id INT DEFAULT NULL, product_var_id INT DEFAULT NULL, created_by INT DEFAULT NULL, updated_by INT DEFAULT NULL, deleted_by INT DEFAULT NULL, level_id INT DEFAULT NULL, card_parent_id INT DEFAULT NULL, ref_id VARCHAR(255) DEFAULT NULL, card_type VARCHAR(255) DEFAULT NULL, is_draft INT NOT NULL, is_deleted INT DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME DEFAULT NULL, deleted_at DATETIME DEFAULT NULL, INDEX company_id (company_id), INDEX created_by (created_by), INDEX deleted_by (deleted_by), INDEX level_id (level_id), INDEX parent_id (card_parent_id), INDEX product_id (product_id), INDEX product_var_id (product_var_id), INDEX updated_by (updated_by), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE tc_customer_feedback (id INT AUTO_INCREMENT NOT NULL, submitted_by INT DEFAULT NULL, upload_file_id INT DEFAULT NULL, tell_us_your_experiance TEXT NOT NULL, suggestion_to_make_better TEXT DEFAULT NULL, customer_rating INT NOT NULL, submitted_at DATETIME NOT NULL, INDEX upload_file_id (upload_file_id), INDEX submitted_by (submitted_by), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE tc_imports (id INT AUTO_INCREMENT NOT NULL, imported_by INT DEFAULT NULL, company_id INT DEFAULT NULL, uploaded_filename VARCHAR(255) NOT NULL, file_name VARCHAR(255) NOT NULL, file_type VARCHAR(255) DEFAULT NULL, imported_at DATETIME DEFAULT NULL, import_status VARCHAR(255) DEFAULT NULL, validation_status VARCHAR(255) DEFAULT NULL, is_first_row_title TINYINT(1) DEFAULT 1 NOT NULL, title_row TINYINT(1) DEFAULT 1 NOT NULL, row_starts_from INT DEFAULT NULL, delete_as_junk TINYINT(1) NOT NULL, INDEX company_id (company_id), INDEX imported_by (imported_by), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE tc_mail_log (id INT AUTO_INCREMENT NOT NULL, company_id INT DEFAULT NULL, user_id INT DEFAULT NULL, email VARCHAR(255) NOT NULL, mail_type VARCHAR(255) DEFAULT NULL, is_sent TINYINT(1) NOT NULL, sent_at DATETIME DEFAULT NULL, is_opened TINYINT(1) NOT NULL, opened_at DATETIME DEFAULT NULL, is_bounced TINYINT(1) NOT NULL, bounced_at DATETIME DEFAULT NULL, is_resent TINYINT(1) NOT NULL, resent_at DATETIME DEFAULT NULL, resent_count INT NOT NULL, subject TEXT DEFAULT NULL, preview_mail_content LONGTEXT DEFAULT NULL, INDEX company_id (company_id), INDEX user_id (user_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE tc_mail_spool (id INT AUTO_INCREMENT NOT NULL, company_id INT DEFAULT NULL, mail_log_id INT DEFAULT NULL, email VARCHAR(255) NOT NULL, subject VARCHAR(255) NOT NULL, mail_content MEDIUMTEXT NOT NULL, is_ready TINYINT(1) NOT NULL, is_cron TINYINT(1) NOT NULL, INDEX mail_log_id (mail_log_id), INDEX company_id (company_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE tc_migraion (id INT AUTO_INCREMENT NOT NULL, migration_key VARCHAR(255) NOT NULL, run_at DATETIME NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE tc_production_history (id INT AUTO_INCREMENT NOT NULL, card_id INT DEFAULT NULL, shift_id INT DEFAULT NULL, op_unit_id INT DEFAULT NULL, created_by INT DEFAULT NULL, updated_by INT DEFAULT NULL, data_date DATE DEFAULT NULL, quantity INT DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME DEFAULT NULL, action VARCHAR(255) DEFAULT NULL, INDEX card_id (card_id), INDEX created_by (created_by), INDEX op_unit_id (op_unit_id), INDEX shift_id (shift_id), INDEX updated_by (updated_by), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE tc_stock_quantity (id INT AUTO_INCREMENT NOT NULL, product_id INT DEFAULT NULL, product_variant_id INT DEFAULT NULL, created_by INT DEFAULT NULL, level_id INT DEFAULT NULL, available_qty INT DEFAULT NULL, total_stock INT DEFAULT NULL, created_at DATETIME DEFAULT NULL, INDEX created_by (created_by), INDEX level_id (level_id), INDEX product_id (product_id), INDEX product_variant_id (product_variant_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE tc_theme (id INT AUTO_INCREMENT NOT NULL, updated_by INT DEFAULT NULL, deleted_by INT DEFAULT NULL, created_by INT DEFAULT NULL, label VARCHAR(255) NOT NULL, custom_css_json MEDIUMTEXT DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME DEFAULT NULL, is_deleted TINYINT(1) NOT NULL, deleted_at DATETIME DEFAULT NULL, INDEX created_by (created_by), INDEX updated_by (updated_by), INDEX deleted_by (deleted_by), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE tc_upload_files (id INT AUTO_INCREMENT NOT NULL, company_id INT DEFAULT NULL, uploaded_by INT DEFAULT NULL, filename TEXT NOT NULL, real_filename TEXT NOT NULL, file_type VARCHAR(255) NOT NULL, file_mime_type VARCHAR(255) DEFAULT NULL, file_size VARCHAR(255) NOT NULL, file_size_byte INT NOT NULL, uploaded_at DATETIME NOT NULL, INDEX uploaded_by (uploaded_by), INDEX company_id (company_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE tc_user_activity_log (id INT AUTO_INCREMENT NOT NULL, done_by INT DEFAULT NULL, user_id INT DEFAULT NULL, company_id INT DEFAULT NULL, action VARCHAR(255) NOT NULL, from_data MEDIUMTEXT NOT NULL, to_data MEDIUMTEXT NOT NULL, done_at DATETIME NOT NULL, INDEX company_id (company_id), INDEX user_id (user_id), INDEX done_by (done_by), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE tc_user_roles (id INT AUTO_INCREMENT NOT NULL, role_key VARCHAR(100) NOT NULL, category VARCHAR(100) NOT NULL, role VARCHAR(100) NOT NULL, is_active TINYINT(1) DEFAULT 1 NOT NULL, is_deleted TINYINT(1) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE tc_user_type (id INT AUTO_INCREMENT NOT NULL, company_id INT DEFAULT NULL, type_title VARCHAR(255) NOT NULL, roles MEDIUMTEXT DEFAULT NULL, tier INT DEFAULT NULL, is_active TINYINT(1) DEFAULT 1 NOT NULL, is_default TINYINT(1) NOT NULL, is_deleted TINYINT(1) NOT NULL, created_at DATETIME DEFAULT NULL, INDEX company_id (company_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE terminology (id INT AUTO_INCREMENT NOT NULL, terminology_key VARCHAR(50) NOT NULL, singular_text VARCHAR(255) DEFAULT NULL, plural_text VARCHAR(255) DEFAULT NULL, UNIQUE INDEX terminology_key (terminology_key), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE user (id INT AUTO_INCREMENT NOT NULL, user_type INT DEFAULT NULL, deleted_by INT DEFAULT NULL, created_by INT DEFAULT NULL, updated_by INT DEFAULT NULL, email VARCHAR(180) NOT NULL, roles JSON NOT NULL, password VARCHAR(255) NOT NULL, is_verified TINYINT(1) NOT NULL, main_admin TINYINT(1) NOT NULL, super_admin TINYINT(1) NOT NULL, is_active TINYINT(1) DEFAULT NULL, is_deleted TINYINT(1) DEFAULT NULL, created_at DATETIME DEFAULT NULL, updated_at DATETIME DEFAULT NULL, deleted_at DATETIME DEFAULT NULL, user_group_id INT DEFAULT NULL, UNIQUE INDEX UNIQ_8D93D649E7927C74 (email), INDEX IDX_8D93D649F65F1BE0 (user_type), INDEX IDX_8D93D6491F6FA0AF (deleted_by), INDEX IDX_8D93D649DE12AB56 (created_by), INDEX IDX_8D93D64916FE72E1 (updated_by), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE user_group (id INT AUTO_INCREMENT NOT NULL, user_group VARCHAR(255) NOT NULL, is_active INT NOT NULL, is_deleted INT NOT NULL, created_at DATETIME DEFAULT CURRENT_TIMESTAMP NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE user_profile (id INT AUTO_INCREMENT NOT NULL, op_unit_id INT DEFAULT NULL, level_id INT DEFAULT NULL, user_id INT DEFAULT NULL, ref_id INT DEFAULT 1 NOT NULL, first_name VARCHAR(255) DEFAULT NULL, last_name VARCHAR(255) DEFAULT NULL, user_profile_image TEXT DEFAULT NULL, phone VARCHAR(255) DEFAULT NULL, company_name VARCHAR(255) DEFAULT NULL, company_phone VARCHAR(255) DEFAULT NULL, language VARCHAR(255) DEFAULT NULL, company_address VARCHAR(255) DEFAULT NULL, town VARCHAR(255) DEFAULT NULL, state VARCHAR(255) DEFAULT NULL, country VARCHAR(255) DEFAULT NULL, postcode VARCHAR(255) DEFAULT NULL, last_login_at DATETIME DEFAULT NULL, INDEX op_unit_id (op_unit_id), INDEX user_id (user_id), INDEX workstation_id (level_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('ALTER TABLE company ADD CONSTRAINT FK_4FBF094F1F6FA0AF FOREIGN KEY (deleted_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE company ADD CONSTRAINT FK_4FBF094F16FE72E1 FOREIGN KEY (updated_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE company ADD CONSTRAINT FK_4FBF094FDE12AB56 FOREIGN KEY (created_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE company_settings ADD CONSTRAINT FK_FDD2B5A8979B1AD6 FOREIGN KEY (company_id) REFERENCES company (id)');
$this->addSql('ALTER TABLE company_settings ADD CONSTRAINT FK_FDD2B5A87637C78B FOREIGN KEY (account_version) REFERENCES account_settings (id)');
$this->addSql('ALTER TABLE company_terminology ADD CONSTRAINT FK_9874CED6C39CEC6C FOREIGN KEY (terminology_id) REFERENCES terminology (id)');
$this->addSql('ALTER TABLE company_terminology ADD CONSTRAINT FK_9874CED6979B1AD6 FOREIGN KEY (company_id) REFERENCES company (id)');
$this->addSql('ALTER TABLE company_user ADD CONSTRAINT FK_CEFECCA7A76ED395 FOREIGN KEY (user_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE company_user ADD CONSTRAINT FK_CEFECCA7979B1AD6 FOREIGN KEY (company_id) REFERENCES company (id)');
$this->addSql('ALTER TABLE dp_action_plan ADD CONSTRAINT FK_70ED91932E852E6F FOREIGN KEY (ap_created_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_action_plan ADD CONSTRAINT FK_70ED9193E669F7D8 FOREIGN KEY (ap_updated_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_action_plan ADD CONSTRAINT FK_70ED9193D3F76548 FOREIGN KEY (ap_raised_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_action_plan ADD CONSTRAINT FK_70ED9193470506AC FOREIGN KEY (ap_kpi) REFERENCES dp_kpi (kpi_id)');
$this->addSql('ALTER TABLE dp_action_plan ADD CONSTRAINT FK_70ED9193341B2E4B FOREIGN KEY (ap_level) REFERENCES dp_levels (level_id)');
$this->addSql('ALTER TABLE dp_action_plan ADD CONSTRAINT FK_70ED91939206C69D FOREIGN KEY (ap_workstation) REFERENCES dp_operational_unit (op_ut_id)');
$this->addSql('ALTER TABLE dp_action_plan_assign ADD CONSTRAINT FK_38704497C53AB38 FOREIGN KEY (ap_assign_created_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_action_plan_assign ADD CONSTRAINT FK_3870449761A2AF17 FOREIGN KEY (assigned_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_action_plan_assign ADD CONSTRAINT FK_3870449763E928F8 FOREIGN KEY (unassigned_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_action_plan_assign ADD CONSTRAINT FK_38704497C4BF728F FOREIGN KEY (ap_assign_updated_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_action_plan_assign ADD CONSTRAINT FK_38704497904F155E FOREIGN KEY (ap_id) REFERENCES dp_action_plan (ap_id)');
$this->addSql('ALTER TABLE dp_action_plan_assign ADD CONSTRAINT FK_3870449789EEAF91 FOREIGN KEY (assigned_to) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_action_plan_report ADD CONSTRAINT FK_8E7D9AB2904F155E FOREIGN KEY (ap_id) REFERENCES dp_action_plan (ap_id)');
$this->addSql('ALTER TABLE dp_action_plan_report ADD CONSTRAINT FK_8E7D9AB25B960F20 FOREIGN KEY (ap_report_created_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_action_plan_report ADD CONSTRAINT FK_8E7D9AB22E972E14 FOREIGN KEY (ap_report_user_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_action_plan_report ADD CONSTRAINT FK_8E7D9AB2937AD697 FOREIGN KEY (ap_report_updated_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_action_plan_type ADD CONSTRAINT FK_CCA4C6365947AE45 FOREIGN KEY (ap_type_created_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_action_plan_type ADD CONSTRAINT FK_CCA4C63691AB77F2 FOREIGN KEY (ap_type_updated_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_action_plan_upload_files ADD CONSTRAINT FK_310625A7904F155E FOREIGN KEY (ap_id) REFERENCES dp_action_plan (ap_id)');
$this->addSql('ALTER TABLE dp_action_plan_upload_files ADD CONSTRAINT FK_310625A7D3C4D950 FOREIGN KEY (ap_report_id) REFERENCES dp_action_plan_report (ap_report_id)');
$this->addSql('ALTER TABLE dp_action_plan_upload_files ADD CONSTRAINT FK_310625A7FDACA3D6 FOREIGN KEY (ap_file_created_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_action_plan_upload_files ADD CONSTRAINT FK_310625A735407A61 FOREIGN KEY (ap_file_updated_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_category ADD CONSTRAINT FK_B34699C13F080A7 FOREIGN KEY (cat_created_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_category ADD CONSTRAINT FK_B34699C1CB1C5910 FOREIGN KEY (cat_updated_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_category ADD CONSTRAINT FK_B34699C1979B1AD6 FOREIGN KEY (company_id) REFERENCES company (id)');
$this->addSql('ALTER TABLE dp_customer_ptm ADD CONSTRAINT FK_3CC2FAAA979B1AD6 FOREIGN KEY (company_id) REFERENCES company (id)');
$this->addSql('ALTER TABLE dp_customer_ptm ADD CONSTRAINT FK_3CC2FAAADE12AB56 FOREIGN KEY (created_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_customer_ptm ADD CONSTRAINT FK_3CC2FAAA16FE72E1 FOREIGN KEY (updated_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_customer_ptm ADD CONSTRAINT FK_3CC2FAAA1F6FA0AF FOREIGN KEY (deleted_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_customer_ptm ADD CONSTRAINT FK_3CC2FAAA9395C3F3 FOREIGN KEY (customer_id) REFERENCES dp_customers (id)');
$this->addSql('ALTER TABLE dp_customer_ratio ADD CONSTRAINT FK_2F9BA1499395C3F3 FOREIGN KEY (customer_id) REFERENCES dp_customers (id)');
$this->addSql('ALTER TABLE dp_customer_ratio ADD CONSTRAINT FK_2F9BA149DE12AB56 FOREIGN KEY (created_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_customer_ratio ADD CONSTRAINT FK_2F9BA14916FE72E1 FOREIGN KEY (updated_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_customer_ratio ADD CONSTRAINT FK_2F9BA1491F6FA0AF FOREIGN KEY (deleted_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_customer_ratio ADD CONSTRAINT FK_2F9BA149573B05C0 FOREIGN KEY (customer_ptm_id) REFERENCES dp_customer_ptm (id)');
$this->addSql('ALTER TABLE dp_customers ADD CONSTRAINT FK_62E644A1DE12AB56 FOREIGN KEY (created_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_customers ADD CONSTRAINT FK_62E644A116FE72E1 FOREIGN KEY (updated_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_customers ADD CONSTRAINT FK_62E644A11F6FA0AF FOREIGN KEY (deleted_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_customers ADD CONSTRAINT FK_62E644A1979B1AD6 FOREIGN KEY (company_id) REFERENCES company (id)');
$this->addSql('ALTER TABLE dp_data ADD CONSTRAINT FK_DF43CE2C1127918F FOREIGN KEY (data_created_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_data ADD CONSTRAINT FK_DF43CE2CD9CB4838 FOREIGN KEY (data_updated_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_data ADD CONSTRAINT FK_DF43CE2CCC88381D FOREIGN KEY (data_uk_id) REFERENCES dp_oput_kpi_assign (uk_id)');
$this->addSql('ALTER TABLE dp_data ADD CONSTRAINT FK_DF43CE2C71AE75D2 FOREIGN KEY (data_shift_id) REFERENCES dp_shift (shift_id)');
$this->addSql('ALTER TABLE dp_data ADD CONSTRAINT FK_DF43CE2C956F827B FOREIGN KEY (data_level_id) REFERENCES dp_levels (level_id)');
$this->addSql('ALTER TABLE dp_failure_data ADD CONSTRAINT FK_EB1E1B06DE12AB56 FOREIGN KEY (created_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_failure_data ADD CONSTRAINT FK_EB1E1B0631364321 FOREIGN KEY (op_ut_id) REFERENCES dp_operational_unit (op_ut_id)');
$this->addSql('ALTER TABLE dp_failure_data ADD CONSTRAINT FK_EB1E1B0659BB1592 FOREIGN KEY (reason_id) REFERENCES dp_reason (reason_id)');
$this->addSql('ALTER TABLE dp_failure_data ADD CONSTRAINT FK_EB1E1B0616FE72E1 FOREIGN KEY (updated_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_failure_data ADD CONSTRAINT FK_EB1E1B0668477060 FOREIGN KEY (reason_kpi_rel_id) REFERENCES dp_reason_kpi_relation (id)');
$this->addSql('ALTER TABLE dp_icons ADD CONSTRAINT FK_EC7BBC42E5F17891 FOREIGN KEY (icon_updated_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_icons ADD CONSTRAINT FK_EC7BBC422D1DA126 FOREIGN KEY (icon_created_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_icons ADD CONSTRAINT FK_EC7BBC42979B1AD6 FOREIGN KEY (company_id) REFERENCES company (id)');
$this->addSql('ALTER TABLE dp_kpi ADD CONSTRAINT FK_17C8971FD5A343E0 FOREIGN KEY (kpi_icon) REFERENCES dp_icons (icon_id)');
$this->addSql('ALTER TABLE dp_kpi ADD CONSTRAINT FK_17C8971F3F403B2F FOREIGN KEY (kpi_category) REFERENCES dp_category (cat_id)');
$this->addSql('ALTER TABLE dp_kpi ADD CONSTRAINT FK_17C8971F979B1AD6 FOREIGN KEY (company_id) REFERENCES company (id)');
$this->addSql('ALTER TABLE dp_kpi ADD CONSTRAINT FK_17C8971FCB8F0DDC FOREIGN KEY (kpi_created_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_kpi ADD CONSTRAINT FK_17C8971F363D46B FOREIGN KEY (kpi_updated_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_level_op_ut_relation ADD CONSTRAINT FK_3439C424D8D6E920 FOREIGN KEY (lu_op_ut_id) REFERENCES dp_operational_unit (op_ut_id)');
$this->addSql('ALTER TABLE dp_level_op_ut_relation ADD CONSTRAINT FK_3439C424F10A3901 FOREIGN KEY (lu_created_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_level_op_ut_relation ADD CONSTRAINT FK_3439C42439E6E0B6 FOREIGN KEY (lu_updated_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_level_op_ut_relation ADD CONSTRAINT FK_3439C424B651E1A6 FOREIGN KEY (lu_level_id) REFERENCES dp_levels (level_id)');
$this->addSql('ALTER TABLE dp_level_settings ADD CONSTRAINT FK_75226918DE12AB56 FOREIGN KEY (created_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_level_settings ADD CONSTRAINT FK_7522691816FE72E1 FOREIGN KEY (updated_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_level_settings ADD CONSTRAINT FK_752269185FB14BA7 FOREIGN KEY (level_id) REFERENCES dp_levels (level_id)');
$this->addSql('ALTER TABLE dp_level_settings ADD CONSTRAINT FK_75226918979B1AD6 FOREIGN KEY (company_id) REFERENCES company (id)');
$this->addSql('ALTER TABLE dp_levels ADD CONSTRAINT FK_B0A30972F996B487 FOREIGN KEY (level_created_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_levels ADD CONSTRAINT FK_B0A30972317A6D30 FOREIGN KEY (level_updated_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_levels ADD CONSTRAINT FK_B0A30972F4837C1B FOREIGN KEY (org_id) REFERENCES tc_user_type (id)');
$this->addSql('ALTER TABLE dp_levels ADD CONSTRAINT FK_B0A30972979B1AD6 FOREIGN KEY (company_id) REFERENCES company (id)');
$this->addSql('ALTER TABLE dp_milestone ADD CONSTRAINT FK_4F1989027C8BA8EB FOREIGN KEY (em_created_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_milestone ADD CONSTRAINT FK_4F198902B467715C FOREIGN KEY (em_updated_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_monthly_eff_rates ADD CONSTRAINT FK_DD3DBD84DE12AB56 FOREIGN KEY (created_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_monthly_eff_rates ADD CONSTRAINT FK_DD3DBD8416FE72E1 FOREIGN KEY (updated_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_monthly_eff_rates ADD CONSTRAINT FK_DD3DBD841F6FA0AF FOREIGN KEY (deleted_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_operational_unit ADD CONSTRAINT FK_FD3ECC4A86F97540 FOREIGN KEY (op_ut_type) REFERENCES dp_operational_unit_type (op_type_id)');
$this->addSql('ALTER TABLE dp_operational_unit ADD CONSTRAINT FK_FD3ECC4A7A9A9BF1 FOREIGN KEY (op_ut_created_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_operational_unit ADD CONSTRAINT FK_FD3ECC4AB2764246 FOREIGN KEY (op_ut_updated_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_operational_unit_type ADD CONSTRAINT FK_70C4610E979B1AD6 FOREIGN KEY (company_id) REFERENCES company (id)');
$this->addSql('ALTER TABLE dp_operational_unit_type ADD CONSTRAINT FK_70C4610E406ABCCC FOREIGN KEY (op_type_created_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_operational_unit_type ADD CONSTRAINT FK_70C4610E8886657B FOREIGN KEY (op_type_updated_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_oput_kpi_assign ADD CONSTRAINT FK_3E0ACE6D5FB14BA7 FOREIGN KEY (level_id) REFERENCES dp_levels (level_id)');
$this->addSql('ALTER TABLE dp_oput_kpi_assign ADD CONSTRAINT FK_3E0ACE6DEF5D7266 FOREIGN KEY (uk_updated_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_oput_kpi_assign ADD CONSTRAINT FK_3E0ACE6D40EE0C7A FOREIGN KEY (uk_kpi_id) REFERENCES dp_kpi (kpi_id)');
$this->addSql('ALTER TABLE dp_oput_kpi_assign ADD CONSTRAINT FK_3E0ACE6D27B1ABD1 FOREIGN KEY (uk_created_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_oput_kpi_assign ADD CONSTRAINT FK_3E0ACE6D4584665A FOREIGN KEY (product_id) REFERENCES dp_products (id)');
$this->addSql('ALTER TABLE dp_oput_kpi_assign ADD CONSTRAINT FK_3E0ACE6DF2A12413 FOREIGN KEY (product_var_id) REFERENCES dp_product_variants (id)');
$this->addSql('ALTER TABLE dp_preferences ADD CONSTRAINT FK_3267D715A76ED395 FOREIGN KEY (user_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_preferences ADD CONSTRAINT FK_3267D715D8E3E4C4 FOREIGN KEY (pref_created_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_preferences ADD CONSTRAINT FK_3267D715100F3D73 FOREIGN KEY (pref_updated_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_product_variants ADD CONSTRAINT FK_89827786DE12AB56 FOREIGN KEY (created_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_product_variants ADD CONSTRAINT FK_8982778616FE72E1 FOREIGN KEY (updated_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_product_variants ADD CONSTRAINT FK_898277861F6FA0AF FOREIGN KEY (deleted_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_product_variants ADD CONSTRAINT FK_89827786979B1AD6 FOREIGN KEY (company_id) REFERENCES company (id)');
$this->addSql('ALTER TABLE dp_product_variants ADD CONSTRAINT FK_898277869395C3F3 FOREIGN KEY (customer_id) REFERENCES dp_customers (id)');
$this->addSql('ALTER TABLE dp_product_variants ADD CONSTRAINT FK_898277864584665A FOREIGN KEY (product_id) REFERENCES dp_products (id)');
$this->addSql('ALTER TABLE dp_products ADD CONSTRAINT FK_6B0DA5ADE12AB56 FOREIGN KEY (created_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_products ADD CONSTRAINT FK_6B0DA5A16FE72E1 FOREIGN KEY (updated_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_products ADD CONSTRAINT FK_6B0DA5A1F6FA0AF FOREIGN KEY (deleted_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_products ADD CONSTRAINT FK_6B0DA5A979B1AD6 FOREIGN KEY (company_id) REFERENCES company (id)');
$this->addSql('ALTER TABLE dp_products ADD CONSTRAINT FK_6B0DA5A9395C3F3 FOREIGN KEY (customer_id) REFERENCES dp_customers (id)');
$this->addSql('ALTER TABLE dp_project_action_plans ADD CONSTRAINT FK_9A3E908A166D1F9C FOREIGN KEY (project_id) REFERENCES dp_projects (id)');
$this->addSql('ALTER TABLE dp_project_action_plans ADD CONSTRAINT FK_9A3E908ADE12AB56 FOREIGN KEY (created_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_project_action_plans ADD CONSTRAINT FK_9A3E908A16FE72E1 FOREIGN KEY (updated_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_project_action_plans ADD CONSTRAINT FK_9A3E908A323B8A7A FOREIGN KEY (action_plan_id) REFERENCES dp_action_plan (ap_id)');
$this->addSql('ALTER TABLE dp_project_assignees ADD CONSTRAINT FK_BEB4035916FE72E1 FOREIGN KEY (updated_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_project_assignees ADD CONSTRAINT FK_BEB40359DE12AB56 FOREIGN KEY (created_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_project_assignees ADD CONSTRAINT FK_BEB40359166D1F9C FOREIGN KEY (project_id) REFERENCES dp_projects (id)');
$this->addSql('ALTER TABLE dp_project_assignees ADD CONSTRAINT FK_BEB403597C9DFC0C FOREIGN KEY (assignee) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_project_milestones ADD CONSTRAINT FK_85898636166D1F9C FOREIGN KEY (project_id) REFERENCES dp_projects (id)');
$this->addSql('ALTER TABLE dp_project_milestones ADD CONSTRAINT FK_85898636DE12AB56 FOREIGN KEY (created_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_project_milestones ADD CONSTRAINT FK_8589863616FE72E1 FOREIGN KEY (updated_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_project_milestones ADD CONSTRAINT FK_858986362148A5D4 FOREIGN KEY (estimatedmilestones) REFERENCES dp_milestone (em_id)');
$this->addSql('ALTER TABLE dp_project_risks ADD CONSTRAINT FK_7085D85616FE72E1 FOREIGN KEY (updated_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_project_risks ADD CONSTRAINT FK_7085D856DE12AB56 FOREIGN KEY (created_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_project_risks ADD CONSTRAINT FK_7085D856166D1F9C FOREIGN KEY (project_id) REFERENCES dp_projects (id)');
$this->addSql('ALTER TABLE dp_projects ADD CONSTRAINT FK_E99933A416FE72E1 FOREIGN KEY (updated_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_projects ADD CONSTRAINT FK_E99933A4DE12AB56 FOREIGN KEY (created_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_reason ADD CONSTRAINT FK_1431E567CB191477 FOREIGN KEY (reason_type) REFERENCES dp_reason_type (reason_type_id)');
$this->addSql('ALTER TABLE dp_reason ADD CONSTRAINT FK_1431E567698AADB2 FOREIGN KEY (reason_created_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_reason ADD CONSTRAINT FK_1431E567A1667405 FOREIGN KEY (reason_updated_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_reason_kpi_relation ADD CONSTRAINT FK_65C91ABEDE12AB56 FOREIGN KEY (created_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_reason_kpi_relation ADD CONSTRAINT FK_65C91ABE16FE72E1 FOREIGN KEY (updated_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_reason_kpi_relation ADD CONSTRAINT FK_65C91ABEF50D1A5E FOREIGN KEY (kpi_id) REFERENCES dp_kpi (kpi_id)');
$this->addSql('ALTER TABLE dp_reason_kpi_relation ADD CONSTRAINT FK_65C91ABE59BB1592 FOREIGN KEY (reason_id) REFERENCES dp_reason (reason_id)');
$this->addSql('ALTER TABLE dp_reason_type ADD CONSTRAINT FK_104F659763AA9287 FOREIGN KEY (reason_type_created_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_reason_type ADD CONSTRAINT FK_104F6597AB464B30 FOREIGN KEY (reason_type_updated_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_schedule_log ADD CONSTRAINT FK_B22799C6419517F FOREIGN KEY (schedule_takt_timer_id) REFERENCES dp_takt_timer (takt_id)');
$this->addSql('ALTER TABLE dp_shift ADD CONSTRAINT FK_431AD779979B1AD6 FOREIGN KEY (company_id) REFERENCES company (id)');
$this->addSql('ALTER TABLE dp_shift ADD CONSTRAINT FK_431AD779EAADE079 FOREIGN KEY (shift_created_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_shift ADD CONSTRAINT FK_431AD779224139CE FOREIGN KEY (shift_updated_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_shift_assign ADD CONSTRAINT FK_5E2B8FBDAE8454D5 FOREIGN KEY (assign_user_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_shift_assign ADD CONSTRAINT FK_5E2B8FBDCDA51719 FOREIGN KEY (assign_shift_id) REFERENCES dp_shift (shift_id)');
$this->addSql('ALTER TABLE dp_shift_assign ADD CONSTRAINT FK_5E2B8FBD5FB14BA7 FOREIGN KEY (level_id) REFERENCES dp_levels (level_id)');
$this->addSql('ALTER TABLE dp_shift_break_hours ADD CONSTRAINT FK_B5CE9D937605D303 FOREIGN KEY (shift_level_id) REFERENCES dp_levels (level_id)');
$this->addSql('ALTER TABLE dp_shift_break_hours ADD CONSTRAINT FK_B5CE9D93172F85EC FOREIGN KEY (shift_break_created_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_shift_break_hours ADD CONSTRAINT FK_B5CE9D93DFC35C5B FOREIGN KEY (shift_break_updated_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_shift_break_hours ADD CONSTRAINT FK_B5CE9D93BB70BC0E FOREIGN KEY (shift_id) REFERENCES dp_shift (shift_id)');
$this->addSql('ALTER TABLE dp_shift_days ADD CONSTRAINT FK_3365B583BB70BC0E FOREIGN KEY (shift_id) REFERENCES dp_shift_settings (id)');
$this->addSql('ALTER TABLE dp_shift_days ADD CONSTRAINT FK_3365B583DE12AB56 FOREIGN KEY (created_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_shift_days ADD CONSTRAINT FK_3365B58316FE72E1 FOREIGN KEY (updated_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_shift_days ADD CONSTRAINT FK_3365B5831F6FA0AF FOREIGN KEY (deleted_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_shift_days ADD CONSTRAINT FK_3365B5837DB83875 FOREIGN KEY (week_day_id) REFERENCES dp_week_days (id)');
$this->addSql('ALTER TABLE dp_shift_days ADD CONSTRAINT FK_3365B583979B1AD6 FOREIGN KEY (company_id) REFERENCES company (id)');
$this->addSql('ALTER TABLE dp_shift_settings ADD CONSTRAINT FK_D13F546C979B1AD6 FOREIGN KEY (company_id) REFERENCES company (id)');
$this->addSql('ALTER TABLE dp_shift_settings ADD CONSTRAINT FK_D13F546CDE12AB56 FOREIGN KEY (created_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_shift_settings ADD CONSTRAINT FK_D13F546C16FE72E1 FOREIGN KEY (updated_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_shift_settings ADD CONSTRAINT FK_D13F546C1F6FA0AF FOREIGN KEY (deleted_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_takt_cycles ADD CONSTRAINT FK_20C4BDF9D5813F43 FOREIGN KEY (cycle_takt_id) REFERENCES dp_takt_timer (takt_id)');
$this->addSql('ALTER TABLE dp_takt_cycles ADD CONSTRAINT FK_20C4BDF9E61DC70C FOREIGN KEY (cycle_reason) REFERENCES dp_reason (reason_id)');
$this->addSql('ALTER TABLE dp_takt_notification_assign ADD CONSTRAINT FK_EA84204124DB0683 FOREIGN KEY (config_id) REFERENCES dp_takt_notification_config (id)');
$this->addSql('ALTER TABLE dp_takt_notification_assign ADD CONSTRAINT FK_EA842041A76ED395 FOREIGN KEY (user_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_takt_notification_assign ADD CONSTRAINT FK_EA84204116FE72E1 FOREIGN KEY (updated_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_takt_notification_assign ADD CONSTRAINT FK_EA842041DE12AB56 FOREIGN KEY (created_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_takt_notification_config ADD CONSTRAINT FK_4C2CA69CDE12AB56 FOREIGN KEY (created_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_takt_notification_config ADD CONSTRAINT FK_4C2CA69C16FE72E1 FOREIGN KEY (updated_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_takt_notification_config ADD CONSTRAINT FK_4C2CA69CD114B4F6 FOREIGN KEY (line) REFERENCES dp_levels (level_id)');
$this->addSql('ALTER TABLE dp_takt_notification_config ADD CONSTRAINT FK_4C2CA69CCDF3D910 FOREIGN KEY (workstation) REFERENCES dp_operational_unit (op_ut_id)');
$this->addSql('ALTER TABLE dp_takt_notification_config ADD CONSTRAINT FK_4C2CA69C979B1AD6 FOREIGN KEY (company_id) REFERENCES company (id)');
$this->addSql('ALTER TABLE dp_takt_notify_interval_log ADD CONSTRAINT FK_D2759A3724DB0683 FOREIGN KEY (config_id) REFERENCES dp_takt_notification_config (id)');
$this->addSql('ALTER TABLE dp_takt_notify_interval_log ADD CONSTRAINT FK_D2759A375FF50A3B FOREIGN KEY (notify_assign_user_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_takt_notify_interval_log ADD CONSTRAINT FK_D2759A3787BC04C5 FOREIGN KEY (takt_cycle_id) REFERENCES dp_takt_cycles (cycle_id)');
$this->addSql('ALTER TABLE dp_takt_op_ut ADD CONSTRAINT FK_C06B0DB55EC1162 FOREIGN KEY (cycle_id) REFERENCES dp_takt_cycles (cycle_id)');
$this->addSql('ALTER TABLE dp_takt_op_ut ADD CONSTRAINT FK_C06B0DB5D4BFE606 FOREIGN KEY (op_ut) REFERENCES dp_operational_unit (op_ut_id)');
$this->addSql('ALTER TABLE dp_takt_op_ut ADD CONSTRAINT FK_C06B0DB559BB1592 FOREIGN KEY (reason_id) REFERENCES dp_reason (reason_id)');
$this->addSql('ALTER TABLE dp_takt_op_ut ADD CONSTRAINT FK_C06B0DB5DE12AB56 FOREIGN KEY (created_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_takt_timer ADD CONSTRAINT FK_7E0435A93920A9A9 FOREIGN KEY (takt_shift_id) REFERENCES dp_shift (shift_id)');
$this->addSql('ALTER TABLE dp_takt_timer ADD CONSTRAINT FK_7E0435A9DDE15E00 FOREIGN KEY (takt_level_id) REFERENCES dp_levels (level_id)');
$this->addSql('ALTER TABLE dp_takt_timer ADD CONSTRAINT FK_7E0435A95689F6D2 FOREIGN KEY (takt_op_unit_id) REFERENCES dp_operational_unit (op_ut_id)');
$this->addSql('ALTER TABLE dp_takt_track ADD CONSTRAINT FK_C237131564C325FD FOREIGN KEY (track_created_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_takt_track ADD CONSTRAINT FK_C2371315645E179 FOREIGN KEY (track_takt_cycle_id) REFERENCES dp_takt_cycles (cycle_id)');
$this->addSql('ALTER TABLE dp_takt_track ADD CONSTRAINT FK_C2371315737A49E5 FOREIGN KEY (track_reason) REFERENCES dp_reason (reason_id)');
$this->addSql('ALTER TABLE dp_takt_track ADD CONSTRAINT FK_C2371315CC20211 FOREIGN KEY (track_takt_id) REFERENCES dp_takt_timer (takt_id)');
$this->addSql('ALTER TABLE dp_week_days ADD CONSTRAINT FK_212BF956979B1AD6 FOREIGN KEY (company_id) REFERENCES company (id)');
$this->addSql('ALTER TABLE dp_week_days ADD CONSTRAINT FK_212BF956DE12AB56 FOREIGN KEY (created_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_workorder ADD CONSTRAINT FK_517A583B4584665A FOREIGN KEY (product_id) REFERENCES dp_products (id)');
$this->addSql('ALTER TABLE dp_workorder ADD CONSTRAINT FK_517A583BF2A12413 FOREIGN KEY (product_var_id) REFERENCES dp_product_variants (id)');
$this->addSql('ALTER TABLE dp_workorder ADD CONSTRAINT FK_517A583B9395C3F3 FOREIGN KEY (customer_id) REFERENCES dp_customers (id)');
$this->addSql('ALTER TABLE dp_workorder ADD CONSTRAINT FK_517A583BDE12AB56 FOREIGN KEY (created_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_workorder ADD CONSTRAINT FK_517A583B16FE72E1 FOREIGN KEY (updated_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_workorder ADD CONSTRAINT FK_517A583B979B1AD6 FOREIGN KEY (company_id) REFERENCES company (id)');
$this->addSql('ALTER TABLE dp_workstation_issues_log ADD CONSTRAINT FK_DA6259C857EB21F9 FOREIGN KEY (resolved_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_workstation_issues_log ADD CONSTRAINT FK_DA6259C8144F5BA4 FOREIGN KEY (reported_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE dp_workstation_issues_log ADD CONSTRAINT FK_DA6259C8AC0C65E6 FOREIGN KEY (op_unit) REFERENCES dp_operational_unit (op_ut_id)');
$this->addSql('ALTER TABLE invite_user ADD CONSTRAINT FK_95A717C3D60322AC FOREIGN KEY (role_id) REFERENCES tc_user_type (id)');
$this->addSql('ALTER TABLE invite_user ADD CONSTRAINT FK_95A717C3979B1AD6 FOREIGN KEY (company_id) REFERENCES company (id)');
$this->addSql('ALTER TABLE login_sessions ADD CONSTRAINT FK_B4C4BD8C979B1AD6 FOREIGN KEY (company_id) REFERENCES company (id)');
$this->addSql('ALTER TABLE login_sessions ADD CONSTRAINT FK_B4C4BD8CA76ED395 FOREIGN KEY (user_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE reset_password_request ADD CONSTRAINT FK_7CE748AA76ED395 FOREIGN KEY (user_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE tc_board_card_details ADD CONSTRAINT FK_6DA15208DE12AB56 FOREIGN KEY (created_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE tc_board_card_details ADD CONSTRAINT FK_6DA152082C1C3467 FOREIGN KEY (workorder_id) REFERENCES dp_workorder (id)');
$this->addSql('ALTER TABLE tc_board_card_details ADD CONSTRAINT FK_6DA152081A7A8A4A FOREIGN KEY (opt_unit_id) REFERENCES dp_operational_unit (op_ut_id)');
$this->addSql('ALTER TABLE tc_board_card_details ADD CONSTRAINT FK_6DA152084ACC9A20 FOREIGN KEY (card_id) REFERENCES tc_board_cards (id)');
$this->addSql('ALTER TABLE tc_board_card_details ADD CONSTRAINT FK_6DA1520816FE72E1 FOREIGN KEY (updated_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE tc_board_cards ADD CONSTRAINT FK_1256384E979B1AD6 FOREIGN KEY (company_id) REFERENCES company (id)');
$this->addSql('ALTER TABLE tc_board_cards ADD CONSTRAINT FK_1256384E4584665A FOREIGN KEY (product_id) REFERENCES dp_products (id)');
$this->addSql('ALTER TABLE tc_board_cards ADD CONSTRAINT FK_1256384EF2A12413 FOREIGN KEY (product_var_id) REFERENCES dp_product_variants (id)');
$this->addSql('ALTER TABLE tc_board_cards ADD CONSTRAINT FK_1256384EDE12AB56 FOREIGN KEY (created_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE tc_board_cards ADD CONSTRAINT FK_1256384E16FE72E1 FOREIGN KEY (updated_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE tc_board_cards ADD CONSTRAINT FK_1256384E1F6FA0AF FOREIGN KEY (deleted_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE tc_board_cards ADD CONSTRAINT FK_1256384E5FB14BA7 FOREIGN KEY (level_id) REFERENCES dp_levels (level_id)');
$this->addSql('ALTER TABLE tc_board_cards ADD CONSTRAINT FK_1256384E6722924 FOREIGN KEY (card_parent_id) REFERENCES tc_board_cards (id)');
$this->addSql('ALTER TABLE tc_customer_feedback ADD CONSTRAINT FK_137249A3641EE842 FOREIGN KEY (submitted_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE tc_customer_feedback ADD CONSTRAINT FK_137249A356FC6382 FOREIGN KEY (upload_file_id) REFERENCES tc_upload_files (id)');
$this->addSql('ALTER TABLE tc_imports ADD CONSTRAINT FK_103923FD8A4F58DF FOREIGN KEY (imported_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE tc_imports ADD CONSTRAINT FK_103923FD979B1AD6 FOREIGN KEY (company_id) REFERENCES company (id)');
$this->addSql('ALTER TABLE tc_mail_log ADD CONSTRAINT FK_4441398F979B1AD6 FOREIGN KEY (company_id) REFERENCES company (id)');
$this->addSql('ALTER TABLE tc_mail_log ADD CONSTRAINT FK_4441398FA76ED395 FOREIGN KEY (user_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE tc_mail_spool ADD CONSTRAINT FK_E07F160B979B1AD6 FOREIGN KEY (company_id) REFERENCES company (id)');
$this->addSql('ALTER TABLE tc_mail_spool ADD CONSTRAINT FK_E07F160B375EE2ED FOREIGN KEY (mail_log_id) REFERENCES tc_mail_log (id)');
$this->addSql('ALTER TABLE tc_production_history ADD CONSTRAINT FK_B3FC75154ACC9A20 FOREIGN KEY (card_id) REFERENCES tc_board_cards (id)');
$this->addSql('ALTER TABLE tc_production_history ADD CONSTRAINT FK_B3FC7515BB70BC0E FOREIGN KEY (shift_id) REFERENCES dp_shift_settings (id)');
$this->addSql('ALTER TABLE tc_production_history ADD CONSTRAINT FK_B3FC7515DA12BA47 FOREIGN KEY (op_unit_id) REFERENCES dp_operational_unit (op_ut_id)');
$this->addSql('ALTER TABLE tc_production_history ADD CONSTRAINT FK_B3FC7515DE12AB56 FOREIGN KEY (created_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE tc_production_history ADD CONSTRAINT FK_B3FC751516FE72E1 FOREIGN KEY (updated_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE tc_stock_quantity ADD CONSTRAINT FK_15453D684584665A FOREIGN KEY (product_id) REFERENCES dp_products (id)');
$this->addSql('ALTER TABLE tc_stock_quantity ADD CONSTRAINT FK_15453D68A80EF684 FOREIGN KEY (product_variant_id) REFERENCES dp_product_variants (id)');
$this->addSql('ALTER TABLE tc_stock_quantity ADD CONSTRAINT FK_15453D68DE12AB56 FOREIGN KEY (created_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE tc_stock_quantity ADD CONSTRAINT FK_15453D685FB14BA7 FOREIGN KEY (level_id) REFERENCES dp_levels (level_id)');
$this->addSql('ALTER TABLE tc_theme ADD CONSTRAINT FK_5BE9BC4C16FE72E1 FOREIGN KEY (updated_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE tc_theme ADD CONSTRAINT FK_5BE9BC4C1F6FA0AF FOREIGN KEY (deleted_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE tc_theme ADD CONSTRAINT FK_5BE9BC4CDE12AB56 FOREIGN KEY (created_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE tc_upload_files ADD CONSTRAINT FK_D1083FB7979B1AD6 FOREIGN KEY (company_id) REFERENCES company (id)');
$this->addSql('ALTER TABLE tc_upload_files ADD CONSTRAINT FK_D1083FB7E3E73126 FOREIGN KEY (uploaded_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE tc_user_activity_log ADD CONSTRAINT FK_9054C491283F6D2A FOREIGN KEY (done_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE tc_user_activity_log ADD CONSTRAINT FK_9054C491A76ED395 FOREIGN KEY (user_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE tc_user_activity_log ADD CONSTRAINT FK_9054C491979B1AD6 FOREIGN KEY (company_id) REFERENCES company (id)');
$this->addSql('ALTER TABLE tc_user_type ADD CONSTRAINT FK_CDE65E56979B1AD6 FOREIGN KEY (company_id) REFERENCES company (id)');
$this->addSql('ALTER TABLE user ADD CONSTRAINT FK_8D93D649F65F1BE0 FOREIGN KEY (user_type) REFERENCES tc_user_type (id)');
$this->addSql('ALTER TABLE user ADD CONSTRAINT FK_8D93D6491F6FA0AF FOREIGN KEY (deleted_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE user ADD CONSTRAINT FK_8D93D649DE12AB56 FOREIGN KEY (created_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE user ADD CONSTRAINT FK_8D93D64916FE72E1 FOREIGN KEY (updated_by) REFERENCES user (id)');
$this->addSql('ALTER TABLE user_profile ADD CONSTRAINT FK_D95AB405DA12BA47 FOREIGN KEY (op_unit_id) REFERENCES dp_operational_unit (op_ut_id)');
$this->addSql('ALTER TABLE user_profile ADD CONSTRAINT FK_D95AB4055FB14BA7 FOREIGN KEY (level_id) REFERENCES dp_levels (level_id)');
$this->addSql('ALTER TABLE user_profile ADD CONSTRAINT FK_D95AB405A76ED395 FOREIGN KEY (user_id) REFERENCES user (id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE company DROP FOREIGN KEY FK_4FBF094F1F6FA0AF');
$this->addSql('ALTER TABLE company DROP FOREIGN KEY FK_4FBF094F16FE72E1');
$this->addSql('ALTER TABLE company DROP FOREIGN KEY FK_4FBF094FDE12AB56');
$this->addSql('ALTER TABLE company_settings DROP FOREIGN KEY FK_FDD2B5A8979B1AD6');
$this->addSql('ALTER TABLE company_settings DROP FOREIGN KEY FK_FDD2B5A87637C78B');
$this->addSql('ALTER TABLE company_terminology DROP FOREIGN KEY FK_9874CED6C39CEC6C');
$this->addSql('ALTER TABLE company_terminology DROP FOREIGN KEY FK_9874CED6979B1AD6');
$this->addSql('ALTER TABLE company_user DROP FOREIGN KEY FK_CEFECCA7A76ED395');
$this->addSql('ALTER TABLE company_user DROP FOREIGN KEY FK_CEFECCA7979B1AD6');
$this->addSql('ALTER TABLE dp_action_plan DROP FOREIGN KEY FK_70ED91932E852E6F');
$this->addSql('ALTER TABLE dp_action_plan DROP FOREIGN KEY FK_70ED9193E669F7D8');
$this->addSql('ALTER TABLE dp_action_plan DROP FOREIGN KEY FK_70ED9193D3F76548');
$this->addSql('ALTER TABLE dp_action_plan DROP FOREIGN KEY FK_70ED9193470506AC');
$this->addSql('ALTER TABLE dp_action_plan DROP FOREIGN KEY FK_70ED9193341B2E4B');
$this->addSql('ALTER TABLE dp_action_plan DROP FOREIGN KEY FK_70ED91939206C69D');
$this->addSql('ALTER TABLE dp_action_plan_assign DROP FOREIGN KEY FK_38704497C53AB38');
$this->addSql('ALTER TABLE dp_action_plan_assign DROP FOREIGN KEY FK_3870449761A2AF17');
$this->addSql('ALTER TABLE dp_action_plan_assign DROP FOREIGN KEY FK_3870449763E928F8');
$this->addSql('ALTER TABLE dp_action_plan_assign DROP FOREIGN KEY FK_38704497C4BF728F');
$this->addSql('ALTER TABLE dp_action_plan_assign DROP FOREIGN KEY FK_38704497904F155E');
$this->addSql('ALTER TABLE dp_action_plan_assign DROP FOREIGN KEY FK_3870449789EEAF91');
$this->addSql('ALTER TABLE dp_action_plan_report DROP FOREIGN KEY FK_8E7D9AB2904F155E');
$this->addSql('ALTER TABLE dp_action_plan_report DROP FOREIGN KEY FK_8E7D9AB25B960F20');
$this->addSql('ALTER TABLE dp_action_plan_report DROP FOREIGN KEY FK_8E7D9AB22E972E14');
$this->addSql('ALTER TABLE dp_action_plan_report DROP FOREIGN KEY FK_8E7D9AB2937AD697');
$this->addSql('ALTER TABLE dp_action_plan_type DROP FOREIGN KEY FK_CCA4C6365947AE45');
$this->addSql('ALTER TABLE dp_action_plan_type DROP FOREIGN KEY FK_CCA4C63691AB77F2');
$this->addSql('ALTER TABLE dp_action_plan_upload_files DROP FOREIGN KEY FK_310625A7904F155E');
$this->addSql('ALTER TABLE dp_action_plan_upload_files DROP FOREIGN KEY FK_310625A7D3C4D950');
$this->addSql('ALTER TABLE dp_action_plan_upload_files DROP FOREIGN KEY FK_310625A7FDACA3D6');
$this->addSql('ALTER TABLE dp_action_plan_upload_files DROP FOREIGN KEY FK_310625A735407A61');
$this->addSql('ALTER TABLE dp_category DROP FOREIGN KEY FK_B34699C13F080A7');
$this->addSql('ALTER TABLE dp_category DROP FOREIGN KEY FK_B34699C1CB1C5910');
$this->addSql('ALTER TABLE dp_category DROP FOREIGN KEY FK_B34699C1979B1AD6');
$this->addSql('ALTER TABLE dp_customer_ptm DROP FOREIGN KEY FK_3CC2FAAA979B1AD6');
$this->addSql('ALTER TABLE dp_customer_ptm DROP FOREIGN KEY FK_3CC2FAAADE12AB56');
$this->addSql('ALTER TABLE dp_customer_ptm DROP FOREIGN KEY FK_3CC2FAAA16FE72E1');
$this->addSql('ALTER TABLE dp_customer_ptm DROP FOREIGN KEY FK_3CC2FAAA1F6FA0AF');
$this->addSql('ALTER TABLE dp_customer_ptm DROP FOREIGN KEY FK_3CC2FAAA9395C3F3');
$this->addSql('ALTER TABLE dp_customer_ratio DROP FOREIGN KEY FK_2F9BA1499395C3F3');
$this->addSql('ALTER TABLE dp_customer_ratio DROP FOREIGN KEY FK_2F9BA149DE12AB56');
$this->addSql('ALTER TABLE dp_customer_ratio DROP FOREIGN KEY FK_2F9BA14916FE72E1');
$this->addSql('ALTER TABLE dp_customer_ratio DROP FOREIGN KEY FK_2F9BA1491F6FA0AF');
$this->addSql('ALTER TABLE dp_customer_ratio DROP FOREIGN KEY FK_2F9BA149573B05C0');
$this->addSql('ALTER TABLE dp_customers DROP FOREIGN KEY FK_62E644A1DE12AB56');
$this->addSql('ALTER TABLE dp_customers DROP FOREIGN KEY FK_62E644A116FE72E1');
$this->addSql('ALTER TABLE dp_customers DROP FOREIGN KEY FK_62E644A11F6FA0AF');
$this->addSql('ALTER TABLE dp_customers DROP FOREIGN KEY FK_62E644A1979B1AD6');
$this->addSql('ALTER TABLE dp_data DROP FOREIGN KEY FK_DF43CE2C1127918F');
$this->addSql('ALTER TABLE dp_data DROP FOREIGN KEY FK_DF43CE2CD9CB4838');
$this->addSql('ALTER TABLE dp_data DROP FOREIGN KEY FK_DF43CE2CCC88381D');
$this->addSql('ALTER TABLE dp_data DROP FOREIGN KEY FK_DF43CE2C71AE75D2');
$this->addSql('ALTER TABLE dp_data DROP FOREIGN KEY FK_DF43CE2C956F827B');
$this->addSql('ALTER TABLE dp_failure_data DROP FOREIGN KEY FK_EB1E1B06DE12AB56');
$this->addSql('ALTER TABLE dp_failure_data DROP FOREIGN KEY FK_EB1E1B0631364321');
$this->addSql('ALTER TABLE dp_failure_data DROP FOREIGN KEY FK_EB1E1B0659BB1592');
$this->addSql('ALTER TABLE dp_failure_data DROP FOREIGN KEY FK_EB1E1B0616FE72E1');
$this->addSql('ALTER TABLE dp_failure_data DROP FOREIGN KEY FK_EB1E1B0668477060');
$this->addSql('ALTER TABLE dp_icons DROP FOREIGN KEY FK_EC7BBC42E5F17891');
$this->addSql('ALTER TABLE dp_icons DROP FOREIGN KEY FK_EC7BBC422D1DA126');
$this->addSql('ALTER TABLE dp_icons DROP FOREIGN KEY FK_EC7BBC42979B1AD6');
$this->addSql('ALTER TABLE dp_kpi DROP FOREIGN KEY FK_17C8971FD5A343E0');
$this->addSql('ALTER TABLE dp_kpi DROP FOREIGN KEY FK_17C8971F3F403B2F');
$this->addSql('ALTER TABLE dp_kpi DROP FOREIGN KEY FK_17C8971F979B1AD6');
$this->addSql('ALTER TABLE dp_kpi DROP FOREIGN KEY FK_17C8971FCB8F0DDC');
$this->addSql('ALTER TABLE dp_kpi DROP FOREIGN KEY FK_17C8971F363D46B');
$this->addSql('ALTER TABLE dp_level_op_ut_relation DROP FOREIGN KEY FK_3439C424D8D6E920');
$this->addSql('ALTER TABLE dp_level_op_ut_relation DROP FOREIGN KEY FK_3439C424F10A3901');
$this->addSql('ALTER TABLE dp_level_op_ut_relation DROP FOREIGN KEY FK_3439C42439E6E0B6');
$this->addSql('ALTER TABLE dp_level_op_ut_relation DROP FOREIGN KEY FK_3439C424B651E1A6');
$this->addSql('ALTER TABLE dp_level_settings DROP FOREIGN KEY FK_75226918DE12AB56');
$this->addSql('ALTER TABLE dp_level_settings DROP FOREIGN KEY FK_7522691816FE72E1');
$this->addSql('ALTER TABLE dp_level_settings DROP FOREIGN KEY FK_752269185FB14BA7');
$this->addSql('ALTER TABLE dp_level_settings DROP FOREIGN KEY FK_75226918979B1AD6');
$this->addSql('ALTER TABLE dp_levels DROP FOREIGN KEY FK_B0A30972F996B487');
$this->addSql('ALTER TABLE dp_levels DROP FOREIGN KEY FK_B0A30972317A6D30');
$this->addSql('ALTER TABLE dp_levels DROP FOREIGN KEY FK_B0A30972F4837C1B');
$this->addSql('ALTER TABLE dp_levels DROP FOREIGN KEY FK_B0A30972979B1AD6');
$this->addSql('ALTER TABLE dp_milestone DROP FOREIGN KEY FK_4F1989027C8BA8EB');
$this->addSql('ALTER TABLE dp_milestone DROP FOREIGN KEY FK_4F198902B467715C');
$this->addSql('ALTER TABLE dp_monthly_eff_rates DROP FOREIGN KEY FK_DD3DBD84DE12AB56');
$this->addSql('ALTER TABLE dp_monthly_eff_rates DROP FOREIGN KEY FK_DD3DBD8416FE72E1');
$this->addSql('ALTER TABLE dp_monthly_eff_rates DROP FOREIGN KEY FK_DD3DBD841F6FA0AF');
$this->addSql('ALTER TABLE dp_operational_unit DROP FOREIGN KEY FK_FD3ECC4A86F97540');
$this->addSql('ALTER TABLE dp_operational_unit DROP FOREIGN KEY FK_FD3ECC4A7A9A9BF1');
$this->addSql('ALTER TABLE dp_operational_unit DROP FOREIGN KEY FK_FD3ECC4AB2764246');
$this->addSql('ALTER TABLE dp_operational_unit_type DROP FOREIGN KEY FK_70C4610E979B1AD6');
$this->addSql('ALTER TABLE dp_operational_unit_type DROP FOREIGN KEY FK_70C4610E406ABCCC');
$this->addSql('ALTER TABLE dp_operational_unit_type DROP FOREIGN KEY FK_70C4610E8886657B');
$this->addSql('ALTER TABLE dp_oput_kpi_assign DROP FOREIGN KEY FK_3E0ACE6D5FB14BA7');
$this->addSql('ALTER TABLE dp_oput_kpi_assign DROP FOREIGN KEY FK_3E0ACE6DEF5D7266');
$this->addSql('ALTER TABLE dp_oput_kpi_assign DROP FOREIGN KEY FK_3E0ACE6D40EE0C7A');
$this->addSql('ALTER TABLE dp_oput_kpi_assign DROP FOREIGN KEY FK_3E0ACE6D27B1ABD1');
$this->addSql('ALTER TABLE dp_oput_kpi_assign DROP FOREIGN KEY FK_3E0ACE6D4584665A');
$this->addSql('ALTER TABLE dp_oput_kpi_assign DROP FOREIGN KEY FK_3E0ACE6DF2A12413');
$this->addSql('ALTER TABLE dp_preferences DROP FOREIGN KEY FK_3267D715A76ED395');
$this->addSql('ALTER TABLE dp_preferences DROP FOREIGN KEY FK_3267D715D8E3E4C4');
$this->addSql('ALTER TABLE dp_preferences DROP FOREIGN KEY FK_3267D715100F3D73');
$this->addSql('ALTER TABLE dp_product_variants DROP FOREIGN KEY FK_89827786DE12AB56');
$this->addSql('ALTER TABLE dp_product_variants DROP FOREIGN KEY FK_8982778616FE72E1');
$this->addSql('ALTER TABLE dp_product_variants DROP FOREIGN KEY FK_898277861F6FA0AF');
$this->addSql('ALTER TABLE dp_product_variants DROP FOREIGN KEY FK_89827786979B1AD6');
$this->addSql('ALTER TABLE dp_product_variants DROP FOREIGN KEY FK_898277869395C3F3');
$this->addSql('ALTER TABLE dp_product_variants DROP FOREIGN KEY FK_898277864584665A');
$this->addSql('ALTER TABLE dp_products DROP FOREIGN KEY FK_6B0DA5ADE12AB56');
$this->addSql('ALTER TABLE dp_products DROP FOREIGN KEY FK_6B0DA5A16FE72E1');
$this->addSql('ALTER TABLE dp_products DROP FOREIGN KEY FK_6B0DA5A1F6FA0AF');
$this->addSql('ALTER TABLE dp_products DROP FOREIGN KEY FK_6B0DA5A979B1AD6');
$this->addSql('ALTER TABLE dp_products DROP FOREIGN KEY FK_6B0DA5A9395C3F3');
$this->addSql('ALTER TABLE dp_project_action_plans DROP FOREIGN KEY FK_9A3E908A166D1F9C');
$this->addSql('ALTER TABLE dp_project_action_plans DROP FOREIGN KEY FK_9A3E908ADE12AB56');
$this->addSql('ALTER TABLE dp_project_action_plans DROP FOREIGN KEY FK_9A3E908A16FE72E1');
$this->addSql('ALTER TABLE dp_project_action_plans DROP FOREIGN KEY FK_9A3E908A323B8A7A');
$this->addSql('ALTER TABLE dp_project_assignees DROP FOREIGN KEY FK_BEB4035916FE72E1');
$this->addSql('ALTER TABLE dp_project_assignees DROP FOREIGN KEY FK_BEB40359DE12AB56');
$this->addSql('ALTER TABLE dp_project_assignees DROP FOREIGN KEY FK_BEB40359166D1F9C');
$this->addSql('ALTER TABLE dp_project_assignees DROP FOREIGN KEY FK_BEB403597C9DFC0C');
$this->addSql('ALTER TABLE dp_project_milestones DROP FOREIGN KEY FK_85898636166D1F9C');
$this->addSql('ALTER TABLE dp_project_milestones DROP FOREIGN KEY FK_85898636DE12AB56');
$this->addSql('ALTER TABLE dp_project_milestones DROP FOREIGN KEY FK_8589863616FE72E1');
$this->addSql('ALTER TABLE dp_project_milestones DROP FOREIGN KEY FK_858986362148A5D4');
$this->addSql('ALTER TABLE dp_project_risks DROP FOREIGN KEY FK_7085D85616FE72E1');
$this->addSql('ALTER TABLE dp_project_risks DROP FOREIGN KEY FK_7085D856DE12AB56');
$this->addSql('ALTER TABLE dp_project_risks DROP FOREIGN KEY FK_7085D856166D1F9C');
$this->addSql('ALTER TABLE dp_projects DROP FOREIGN KEY FK_E99933A416FE72E1');
$this->addSql('ALTER TABLE dp_projects DROP FOREIGN KEY FK_E99933A4DE12AB56');
$this->addSql('ALTER TABLE dp_reason DROP FOREIGN KEY FK_1431E567CB191477');
$this->addSql('ALTER TABLE dp_reason DROP FOREIGN KEY FK_1431E567698AADB2');
$this->addSql('ALTER TABLE dp_reason DROP FOREIGN KEY FK_1431E567A1667405');
$this->addSql('ALTER TABLE dp_reason_kpi_relation DROP FOREIGN KEY FK_65C91ABEDE12AB56');
$this->addSql('ALTER TABLE dp_reason_kpi_relation DROP FOREIGN KEY FK_65C91ABE16FE72E1');
$this->addSql('ALTER TABLE dp_reason_kpi_relation DROP FOREIGN KEY FK_65C91ABEF50D1A5E');
$this->addSql('ALTER TABLE dp_reason_kpi_relation DROP FOREIGN KEY FK_65C91ABE59BB1592');
$this->addSql('ALTER TABLE dp_reason_type DROP FOREIGN KEY FK_104F659763AA9287');
$this->addSql('ALTER TABLE dp_reason_type DROP FOREIGN KEY FK_104F6597AB464B30');
$this->addSql('ALTER TABLE dp_schedule_log DROP FOREIGN KEY FK_B22799C6419517F');
$this->addSql('ALTER TABLE dp_shift DROP FOREIGN KEY FK_431AD779979B1AD6');
$this->addSql('ALTER TABLE dp_shift DROP FOREIGN KEY FK_431AD779EAADE079');
$this->addSql('ALTER TABLE dp_shift DROP FOREIGN KEY FK_431AD779224139CE');
$this->addSql('ALTER TABLE dp_shift_assign DROP FOREIGN KEY FK_5E2B8FBDAE8454D5');
$this->addSql('ALTER TABLE dp_shift_assign DROP FOREIGN KEY FK_5E2B8FBDCDA51719');
$this->addSql('ALTER TABLE dp_shift_assign DROP FOREIGN KEY FK_5E2B8FBD5FB14BA7');
$this->addSql('ALTER TABLE dp_shift_break_hours DROP FOREIGN KEY FK_B5CE9D937605D303');
$this->addSql('ALTER TABLE dp_shift_break_hours DROP FOREIGN KEY FK_B5CE9D93172F85EC');
$this->addSql('ALTER TABLE dp_shift_break_hours DROP FOREIGN KEY FK_B5CE9D93DFC35C5B');
$this->addSql('ALTER TABLE dp_shift_break_hours DROP FOREIGN KEY FK_B5CE9D93BB70BC0E');
$this->addSql('ALTER TABLE dp_shift_days DROP FOREIGN KEY FK_3365B583BB70BC0E');
$this->addSql('ALTER TABLE dp_shift_days DROP FOREIGN KEY FK_3365B583DE12AB56');
$this->addSql('ALTER TABLE dp_shift_days DROP FOREIGN KEY FK_3365B58316FE72E1');
$this->addSql('ALTER TABLE dp_shift_days DROP FOREIGN KEY FK_3365B5831F6FA0AF');
$this->addSql('ALTER TABLE dp_shift_days DROP FOREIGN KEY FK_3365B5837DB83875');
$this->addSql('ALTER TABLE dp_shift_days DROP FOREIGN KEY FK_3365B583979B1AD6');
$this->addSql('ALTER TABLE dp_shift_settings DROP FOREIGN KEY FK_D13F546C979B1AD6');
$this->addSql('ALTER TABLE dp_shift_settings DROP FOREIGN KEY FK_D13F546CDE12AB56');
$this->addSql('ALTER TABLE dp_shift_settings DROP FOREIGN KEY FK_D13F546C16FE72E1');
$this->addSql('ALTER TABLE dp_shift_settings DROP FOREIGN KEY FK_D13F546C1F6FA0AF');
$this->addSql('ALTER TABLE dp_takt_cycles DROP FOREIGN KEY FK_20C4BDF9D5813F43');
$this->addSql('ALTER TABLE dp_takt_cycles DROP FOREIGN KEY FK_20C4BDF9E61DC70C');
$this->addSql('ALTER TABLE dp_takt_notification_assign DROP FOREIGN KEY FK_EA84204124DB0683');
$this->addSql('ALTER TABLE dp_takt_notification_assign DROP FOREIGN KEY FK_EA842041A76ED395');
$this->addSql('ALTER TABLE dp_takt_notification_assign DROP FOREIGN KEY FK_EA84204116FE72E1');
$this->addSql('ALTER TABLE dp_takt_notification_assign DROP FOREIGN KEY FK_EA842041DE12AB56');
$this->addSql('ALTER TABLE dp_takt_notification_config DROP FOREIGN KEY FK_4C2CA69CDE12AB56');
$this->addSql('ALTER TABLE dp_takt_notification_config DROP FOREIGN KEY FK_4C2CA69C16FE72E1');
$this->addSql('ALTER TABLE dp_takt_notification_config DROP FOREIGN KEY FK_4C2CA69CD114B4F6');
$this->addSql('ALTER TABLE dp_takt_notification_config DROP FOREIGN KEY FK_4C2CA69CCDF3D910');
$this->addSql('ALTER TABLE dp_takt_notification_config DROP FOREIGN KEY FK_4C2CA69C979B1AD6');
$this->addSql('ALTER TABLE dp_takt_notify_interval_log DROP FOREIGN KEY FK_D2759A3724DB0683');
$this->addSql('ALTER TABLE dp_takt_notify_interval_log DROP FOREIGN KEY FK_D2759A375FF50A3B');
$this->addSql('ALTER TABLE dp_takt_notify_interval_log DROP FOREIGN KEY FK_D2759A3787BC04C5');
$this->addSql('ALTER TABLE dp_takt_op_ut DROP FOREIGN KEY FK_C06B0DB55EC1162');
$this->addSql('ALTER TABLE dp_takt_op_ut DROP FOREIGN KEY FK_C06B0DB5D4BFE606');
$this->addSql('ALTER TABLE dp_takt_op_ut DROP FOREIGN KEY FK_C06B0DB559BB1592');
$this->addSql('ALTER TABLE dp_takt_op_ut DROP FOREIGN KEY FK_C06B0DB5DE12AB56');
$this->addSql('ALTER TABLE dp_takt_timer DROP FOREIGN KEY FK_7E0435A93920A9A9');
$this->addSql('ALTER TABLE dp_takt_timer DROP FOREIGN KEY FK_7E0435A9DDE15E00');
$this->addSql('ALTER TABLE dp_takt_timer DROP FOREIGN KEY FK_7E0435A95689F6D2');
$this->addSql('ALTER TABLE dp_takt_track DROP FOREIGN KEY FK_C237131564C325FD');
$this->addSql('ALTER TABLE dp_takt_track DROP FOREIGN KEY FK_C2371315645E179');
$this->addSql('ALTER TABLE dp_takt_track DROP FOREIGN KEY FK_C2371315737A49E5');
$this->addSql('ALTER TABLE dp_takt_track DROP FOREIGN KEY FK_C2371315CC20211');
$this->addSql('ALTER TABLE dp_week_days DROP FOREIGN KEY FK_212BF956979B1AD6');
$this->addSql('ALTER TABLE dp_week_days DROP FOREIGN KEY FK_212BF956DE12AB56');
$this->addSql('ALTER TABLE dp_workorder DROP FOREIGN KEY FK_517A583B4584665A');
$this->addSql('ALTER TABLE dp_workorder DROP FOREIGN KEY FK_517A583BF2A12413');
$this->addSql('ALTER TABLE dp_workorder DROP FOREIGN KEY FK_517A583B9395C3F3');
$this->addSql('ALTER TABLE dp_workorder DROP FOREIGN KEY FK_517A583BDE12AB56');
$this->addSql('ALTER TABLE dp_workorder DROP FOREIGN KEY FK_517A583B16FE72E1');
$this->addSql('ALTER TABLE dp_workorder DROP FOREIGN KEY FK_517A583B979B1AD6');
$this->addSql('ALTER TABLE dp_workstation_issues_log DROP FOREIGN KEY FK_DA6259C857EB21F9');
$this->addSql('ALTER TABLE dp_workstation_issues_log DROP FOREIGN KEY FK_DA6259C8144F5BA4');
$this->addSql('ALTER TABLE dp_workstation_issues_log DROP FOREIGN KEY FK_DA6259C8AC0C65E6');
$this->addSql('ALTER TABLE invite_user DROP FOREIGN KEY FK_95A717C3D60322AC');
$this->addSql('ALTER TABLE invite_user DROP FOREIGN KEY FK_95A717C3979B1AD6');
$this->addSql('ALTER TABLE login_sessions DROP FOREIGN KEY FK_B4C4BD8C979B1AD6');
$this->addSql('ALTER TABLE login_sessions DROP FOREIGN KEY FK_B4C4BD8CA76ED395');
$this->addSql('ALTER TABLE reset_password_request DROP FOREIGN KEY FK_7CE748AA76ED395');
$this->addSql('ALTER TABLE tc_board_card_details DROP FOREIGN KEY FK_6DA15208DE12AB56');
$this->addSql('ALTER TABLE tc_board_card_details DROP FOREIGN KEY FK_6DA152082C1C3467');
$this->addSql('ALTER TABLE tc_board_card_details DROP FOREIGN KEY FK_6DA152081A7A8A4A');
$this->addSql('ALTER TABLE tc_board_card_details DROP FOREIGN KEY FK_6DA152084ACC9A20');
$this->addSql('ALTER TABLE tc_board_card_details DROP FOREIGN KEY FK_6DA1520816FE72E1');
$this->addSql('ALTER TABLE tc_board_cards DROP FOREIGN KEY FK_1256384E979B1AD6');
$this->addSql('ALTER TABLE tc_board_cards DROP FOREIGN KEY FK_1256384E4584665A');
$this->addSql('ALTER TABLE tc_board_cards DROP FOREIGN KEY FK_1256384EF2A12413');
$this->addSql('ALTER TABLE tc_board_cards DROP FOREIGN KEY FK_1256384EDE12AB56');
$this->addSql('ALTER TABLE tc_board_cards DROP FOREIGN KEY FK_1256384E16FE72E1');
$this->addSql('ALTER TABLE tc_board_cards DROP FOREIGN KEY FK_1256384E1F6FA0AF');
$this->addSql('ALTER TABLE tc_board_cards DROP FOREIGN KEY FK_1256384E5FB14BA7');
$this->addSql('ALTER TABLE tc_board_cards DROP FOREIGN KEY FK_1256384E6722924');
$this->addSql('ALTER TABLE tc_customer_feedback DROP FOREIGN KEY FK_137249A3641EE842');
$this->addSql('ALTER TABLE tc_customer_feedback DROP FOREIGN KEY FK_137249A356FC6382');
$this->addSql('ALTER TABLE tc_imports DROP FOREIGN KEY FK_103923FD8A4F58DF');
$this->addSql('ALTER TABLE tc_imports DROP FOREIGN KEY FK_103923FD979B1AD6');
$this->addSql('ALTER TABLE tc_mail_log DROP FOREIGN KEY FK_4441398F979B1AD6');
$this->addSql('ALTER TABLE tc_mail_log DROP FOREIGN KEY FK_4441398FA76ED395');
$this->addSql('ALTER TABLE tc_mail_spool DROP FOREIGN KEY FK_E07F160B979B1AD6');
$this->addSql('ALTER TABLE tc_mail_spool DROP FOREIGN KEY FK_E07F160B375EE2ED');
$this->addSql('ALTER TABLE tc_production_history DROP FOREIGN KEY FK_B3FC75154ACC9A20');
$this->addSql('ALTER TABLE tc_production_history DROP FOREIGN KEY FK_B3FC7515BB70BC0E');
$this->addSql('ALTER TABLE tc_production_history DROP FOREIGN KEY FK_B3FC7515DA12BA47');
$this->addSql('ALTER TABLE tc_production_history DROP FOREIGN KEY FK_B3FC7515DE12AB56');
$this->addSql('ALTER TABLE tc_production_history DROP FOREIGN KEY FK_B3FC751516FE72E1');
$this->addSql('ALTER TABLE tc_stock_quantity DROP FOREIGN KEY FK_15453D684584665A');
$this->addSql('ALTER TABLE tc_stock_quantity DROP FOREIGN KEY FK_15453D68A80EF684');
$this->addSql('ALTER TABLE tc_stock_quantity DROP FOREIGN KEY FK_15453D68DE12AB56');
$this->addSql('ALTER TABLE tc_stock_quantity DROP FOREIGN KEY FK_15453D685FB14BA7');
$this->addSql('ALTER TABLE tc_theme DROP FOREIGN KEY FK_5BE9BC4C16FE72E1');
$this->addSql('ALTER TABLE tc_theme DROP FOREIGN KEY FK_5BE9BC4C1F6FA0AF');
$this->addSql('ALTER TABLE tc_theme DROP FOREIGN KEY FK_5BE9BC4CDE12AB56');
$this->addSql('ALTER TABLE tc_upload_files DROP FOREIGN KEY FK_D1083FB7979B1AD6');
$this->addSql('ALTER TABLE tc_upload_files DROP FOREIGN KEY FK_D1083FB7E3E73126');
$this->addSql('ALTER TABLE tc_user_activity_log DROP FOREIGN KEY FK_9054C491283F6D2A');
$this->addSql('ALTER TABLE tc_user_activity_log DROP FOREIGN KEY FK_9054C491A76ED395');
$this->addSql('ALTER TABLE tc_user_activity_log DROP FOREIGN KEY FK_9054C491979B1AD6');
$this->addSql('ALTER TABLE tc_user_type DROP FOREIGN KEY FK_CDE65E56979B1AD6');
$this->addSql('ALTER TABLE user DROP FOREIGN KEY FK_8D93D649F65F1BE0');
$this->addSql('ALTER TABLE user DROP FOREIGN KEY FK_8D93D6491F6FA0AF');
$this->addSql('ALTER TABLE user DROP FOREIGN KEY FK_8D93D649DE12AB56');
$this->addSql('ALTER TABLE user DROP FOREIGN KEY FK_8D93D64916FE72E1');
$this->addSql('ALTER TABLE user_profile DROP FOREIGN KEY FK_D95AB405DA12BA47');
$this->addSql('ALTER TABLE user_profile DROP FOREIGN KEY FK_D95AB4055FB14BA7');
$this->addSql('ALTER TABLE user_profile DROP FOREIGN KEY FK_D95AB405A76ED395');
$this->addSql('DROP TABLE account_settings');
$this->addSql('DROP TABLE company');
$this->addSql('DROP TABLE company_settings');
$this->addSql('DROP TABLE company_terminology');
$this->addSql('DROP TABLE company_user');
$this->addSql('DROP TABLE dp_action_plan');
$this->addSql('DROP TABLE dp_action_plan_assign');
$this->addSql('DROP TABLE dp_action_plan_report');
$this->addSql('DROP TABLE dp_action_plan_type');
$this->addSql('DROP TABLE dp_action_plan_upload_files');
$this->addSql('DROP TABLE dp_category');
$this->addSql('DROP TABLE dp_customer_ptm');
$this->addSql('DROP TABLE dp_customer_ratio');
$this->addSql('DROP TABLE dp_customers');
$this->addSql('DROP TABLE dp_data');
$this->addSql('DROP TABLE dp_failure_data');
$this->addSql('DROP TABLE dp_icons');
$this->addSql('DROP TABLE dp_kpi');
$this->addSql('DROP TABLE dp_kpi_relations');
$this->addSql('DROP TABLE dp_level_op_ut_relation');
$this->addSql('DROP TABLE dp_level_settings');
$this->addSql('DROP TABLE dp_levels');
$this->addSql('DROP TABLE dp_milestone');
$this->addSql('DROP TABLE dp_monthly_eff_rates');
$this->addSql('DROP TABLE dp_operational_unit');
$this->addSql('DROP TABLE dp_operational_unit_type');
$this->addSql('DROP TABLE dp_oput_kpi_assign');
$this->addSql('DROP TABLE dp_preferences');
$this->addSql('DROP TABLE dp_product_variants');
$this->addSql('DROP TABLE dp_products');
$this->addSql('DROP TABLE dp_project_action_plans');
$this->addSql('DROP TABLE dp_project_assignees');
$this->addSql('DROP TABLE dp_project_milestones');
$this->addSql('DROP TABLE dp_project_risks');
$this->addSql('DROP TABLE dp_projects');
$this->addSql('DROP TABLE dp_reason');
$this->addSql('DROP TABLE dp_reason_kpi_relation');
$this->addSql('DROP TABLE dp_reason_type');
$this->addSql('DROP TABLE dp_schedule_log');
$this->addSql('DROP TABLE dp_shift');
$this->addSql('DROP TABLE dp_shift_assign');
$this->addSql('DROP TABLE dp_shift_break_hours');
$this->addSql('DROP TABLE dp_shift_days');
$this->addSql('DROP TABLE dp_shift_settings');
$this->addSql('DROP TABLE dp_takt_cycles');
$this->addSql('DROP TABLE dp_takt_notification_assign');
$this->addSql('DROP TABLE dp_takt_notification_config');
$this->addSql('DROP TABLE dp_takt_notify_interval_log');
$this->addSql('DROP TABLE dp_takt_op_ut');
$this->addSql('DROP TABLE dp_takt_timer');
$this->addSql('DROP TABLE dp_takt_track');
$this->addSql('DROP TABLE dp_week_days');
$this->addSql('DROP TABLE dp_workorder');
$this->addSql('DROP TABLE dp_workstation_issues_log');
$this->addSql('DROP TABLE invite_user');
$this->addSql('DROP TABLE login_sessions');
$this->addSql('DROP TABLE reset_password_request');
$this->addSql('DROP TABLE tc_board_card_details');
$this->addSql('DROP TABLE tc_board_cards');
$this->addSql('DROP TABLE tc_customer_feedback');
$this->addSql('DROP TABLE tc_imports');
$this->addSql('DROP TABLE tc_mail_log');
$this->addSql('DROP TABLE tc_mail_spool');
$this->addSql('DROP TABLE tc_migraion');
$this->addSql('DROP TABLE tc_production_history');
$this->addSql('DROP TABLE tc_stock_quantity');
$this->addSql('DROP TABLE tc_theme');
$this->addSql('DROP TABLE tc_upload_files');
$this->addSql('DROP TABLE tc_user_activity_log');
$this->addSql('DROP TABLE tc_user_roles');
$this->addSql('DROP TABLE tc_user_type');
$this->addSql('DROP TABLE terminology');
$this->addSql('DROP TABLE user');
$this->addSql('DROP TABLE user_group');
$this->addSql('DROP TABLE user_profile');
}
}