<?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 Version20230303132357 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 attachment (id INT AUTO_INCREMENT NOT NULL, email_history_entry_id INT DEFAULT NULL, name VARCHAR(255) NOT NULL, path VARCHAR(255) NOT NULL, created_at DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', INDEX IDX_795FD9BBF4F4CDBF (email_history_entry_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE cart (id INT AUTO_INCREMENT NOT NULL, customer_id INT DEFAULT NULL, client_id INT NOT NULL, oauth_access_token_id VARCHAR(80) DEFAULT NULL, created DATETIME NOT NULL, modified DATETIME DEFAULT NULL, INDEX IDX_BA388B79395C3F3 (customer_id), INDEX IDX_BA388B719EB6921 (client_id), UNIQUE INDEX UNIQ_BA388B7888114B4 (oauth_access_token_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE cart_item (id INT AUTO_INCREMENT NOT NULL, cart_id INT NOT NULL, course_occurrence_id INT DEFAULT NULL, course_occurrence_time_id INT DEFAULT NULL, course_item_id INT DEFAULT NULL, quantity INT NOT NULL, created DATETIME NOT NULL, modified DATETIME DEFAULT NULL, INDEX IDX_F0FE25271AD5CDBF (cart_id), INDEX IDX_F0FE2527F3DA6B75 (course_occurrence_id), INDEX IDX_F0FE2527EA75AC07 (course_occurrence_time_id), INDEX IDX_F0FE25271AAC57B2 (course_item_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE cart_item_person (cart_item_id INT NOT NULL, person_id INT NOT NULL, INDEX IDX_E1F65DF9E9B59A59 (cart_item_id), INDEX IDX_E1F65DF9217BBB47 (person_id), PRIMARY KEY(cart_item_id, person_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE category (id INT AUTO_INCREMENT NOT NULL, client_id INT NOT NULL, name VARCHAR(100) NOT NULL, created DATETIME NOT NULL, modified DATETIME DEFAULT NULL, INDEX IDX_64C19C119EB6921 (client_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE client (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(255) NOT NULL, street VARCHAR(255) DEFAULT NULL, street_number VARCHAR(10) DEFAULT NULL, addressAddition VARCHAR(255) DEFAULT NULL, postalcode VARCHAR(10) NOT NULL, city VARCHAR(255) NOT NULL, country VARCHAR(100) NOT NULL, email VARCHAR(255) NOT NULL, web VARCHAR(255) DEFAULT NULL, phone VARCHAR(50) DEFAULT NULL, fax VARCHAR(50) DEFAULT NULL, from_email VARCHAR(255) DEFAULT NULL, created DATETIME NOT NULL, modified DATETIME DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE client_config (id INT AUTO_INCREMENT NOT NULL, iban VARCHAR(30) DEFAULT NULL, bank_name VARCHAR(255) DEFAULT NULL, paymentTerm SMALLINT DEFAULT NULL, current_order_number INT NOT NULL, order_number_prefix VARCHAR(10) DEFAULT NULL, order_number_suffix VARCHAR(10) DEFAULT NULL, current_invoice_number INT NOT NULL, invoice_number_prefix VARCHAR(10) DEFAULT NULL, invoice_number_suffix VARCHAR(10) DEFAULT NULL, default_tax DOUBLE PRECISION DEFAULT NULL, reduced_tax DOUBLE PRECISION DEFAULT NULL, tax_number VARCHAR(100) DEFAULT NULL, pdf_margin_top SMALLINT DEFAULT NULL, pdf_margin_right SMALLINT DEFAULT NULL, pdf_margin_bottom SMALLINT DEFAULT NULL, pdf_margin_left SMALLINT DEFAULT NULL, stationary VARCHAR(500) DEFAULT NULL, current_course_number INT NOT NULL, course_number_prefix VARCHAR(10) DEFAULT NULL, course_number_suffix VARCHAR(10) DEFAULT NULL, countries LONGTEXT DEFAULT NULL, generate_invoice_on_checkout TINYINT(1) NOT NULL, newsletter_clause LONGTEXT DEFAULT NULL, newsletter_deregister_redirect VARCHAR(255) DEFAULT NULL, auto_delete_span_customer VARCHAR(20) DEFAULT NULL, auto_delete_span_family_member VARCHAR(20) DEFAULT NULL, auto_delete_span_speaker VARCHAR(20) DEFAULT NULL, pdf_participant_list_show_number TINYINT(1) NOT NULL, export_account VARCHAR(20) DEFAULT NULL, export_offset_account VARCHAR(20) DEFAULT NULL, invoice_upper_comment LONGTEXT DEFAULT NULL, invoice_lower_comment LONGTEXT DEFAULT NULL, invoice_lower_comment_debit LONGTEXT DEFAULT NULL, sepa_creditor_id VARCHAR(100) DEFAULT NULL, sepa_message_id_prefix VARCHAR(100) DEFAULT NULL, order_confirmation_email_subject VARCHAR(255) DEFAULT NULL, order_confirmation_email_message LONGTEXT DEFAULT NULL, invoice_email_subject VARCHAR(255) DEFAULT NULL, invoice_email_message LONGTEXT DEFAULT NULL, invoice_reminder_template LONGTEXT DEFAULT NULL, sepa_invoice_email_message LONGTEXT DEFAULT NULL, sepa_invoice_email_subject VARCHAR(255) DEFAULT NULL, created DATETIME NOT NULL, modified DATETIME DEFAULT NULL, clientId INT DEFAULT NULL, INDEX IDX_812C64CFEA1CE9BE (clientId), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE course (id INT AUTO_INCREMENT NOT NULL, subscription_id INT DEFAULT NULL, category_id INT DEFAULT NULL, series_id INT DEFAULT NULL, type_id INT DEFAULT NULL, title VARCHAR(255) NOT NULL, subtitle VARCHAR(255) DEFAULT NULL, course_nature VARCHAR(255) DEFAULT \'Course\' NOT NULL, description LONGTEXT DEFAULT NULL, price DOUBLE PRECISION NOT NULL, tax_rate DOUBLE PRECISION DEFAULT NULL, number VARCHAR(20) DEFAULT NULL, material_cost DOUBLE PRECISION DEFAULT NULL, target_age_min INT DEFAULT NULL, target_age_max INT DEFAULT NULL, invoice_upper_comment LONGTEXT DEFAULT NULL, invoice_lower_comment LONGTEXT DEFAULT NULL, invoice_lower_comment_debit LONGTEXT DEFAULT NULL, created DATETIME NOT NULL, modified DATETIME DEFAULT NULL, clientId INT DEFAULT NULL, INDEX IDX_169E6FB9EA1CE9BE (clientId), INDEX IDX_169E6FB99A1887DC (subscription_id), INDEX IDX_169E6FB912469DE2 (category_id), INDEX IDX_169E6FB95278319C (series_id), INDEX IDX_169E6FB9C54C8C93 (type_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE course_data (id INT AUTO_INCREMENT NOT NULL, client_id INT NOT NULL, course_id INT NOT NULL, field_id INT NOT NULL, value_text LONGTEXT DEFAULT NULL, value_integer INT DEFAULT NULL, value_date DATE DEFAULT NULL, created DATETIME NOT NULL, modified DATETIME DEFAULT NULL, INDEX IDX_65512E6519EB6921 (client_id), INDEX IDX_65512E65591CC992 (course_id), INDEX IDX_65512E65443707B0 (field_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE course_field (id INT AUTO_INCREMENT NOT NULL, client_id INT NOT NULL, name VARCHAR(100) NOT NULL, category LONGTEXT DEFAULT NULL, course_type LONGTEXT DEFAULT NULL, type VARCHAR(32) NOT NULL, order_id INT DEFAULT 0 NOT NULL, certificate TINYINT(1) DEFAULT \'0\', created DATETIME NOT NULL, modified DATETIME DEFAULT NULL, INDEX IDX_B25E42B019EB6921 (client_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE course_image (id INT AUTO_INCREMENT NOT NULL, course_id INT NOT NULL, title VARCHAR(255) DEFAULT NULL, description LONGTEXT DEFAULT NULL, author VARCHAR(255) NOT NULL, order_id INT NOT NULL, image VARCHAR(255) DEFAULT NULL, created DATETIME NOT NULL, modified DATETIME DEFAULT NULL, INDEX IDX_2C9603B7591CC992 (course_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE course_occurrence (id INT AUTO_INCREMENT NOT NULL, published TINYINT(1) NOT NULL, start DATETIME NOT NULL, end DATETIME NOT NULL, slots INT NOT NULL, reservation_allowed TINYINT(1) NOT NULL, booked_slots INT NOT NULL, created DATETIME NOT NULL, modified DATETIME DEFAULT NULL, venueId INT DEFAULT NULL, venueRoomId INT DEFAULT NULL, courseId INT DEFAULT NULL, INDEX IDX_611FCF70157665C2 (venueId), INDEX IDX_611FCF70F14BE7A3 (venueRoomId), INDEX IDX_611FCF70C2B73C54 (courseId), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE course_occurrence_speaker (course_occurrence_id INT NOT NULL, speaker_id INT NOT NULL, INDEX IDX_CF1AAA5DF3DA6B75 (course_occurrence_id), INDEX IDX_CF1AAA5DD04A0F27 (speaker_id), PRIMARY KEY(course_occurrence_id, speaker_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE course_occurrence_time (id INT AUTO_INCREMENT NOT NULL, start DATETIME NOT NULL, end DATETIME NOT NULL, note LONGTEXT DEFAULT NULL, availability VARCHAR(255) DEFAULT \'Bookable\' NOT NULL, created DATETIME NOT NULL, modified DATETIME DEFAULT NULL, occurrenceId INT NOT NULL, INDEX IDX_8ED1486A8F93FCC7 (occurrenceId), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE course_series (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(255) NOT NULL, description LONGTEXT DEFAULT NULL, created DATETIME NOT NULL, modified DATETIME DEFAULT NULL, clientId INT DEFAULT NULL, INDEX IDX_9428C060EA1CE9BE (clientId), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE course_start_end (id INT AUTO_INCREMENT NOT NULL, start DATETIME NOT NULL, end DATETIME NOT NULL, order_id INT NOT NULL, tart_end VARCHAR(255) DEFAULT NULL, created DATETIME NOT NULL, modified DATETIME DEFAULT NULL, courseId INT DEFAULT NULL, INDEX IDX_8E366CBBC2B73C54 (courseId), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE course_subscription (id INT AUTO_INCREMENT NOT NULL, client_id INT NOT NULL, title VARCHAR(255) NOT NULL, description LONGTEXT DEFAULT NULL, short_description LONGTEXT DEFAULT NULL, termination_period_months INT DEFAULT NULL, created DATETIME NOT NULL, modified DATETIME DEFAULT NULL, INDEX IDX_220C1C2E19EB6921 (client_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE course_subscription_booking (id INT AUTO_INCREMENT NOT NULL, course INT DEFAULT NULL, created DATETIME NOT NULL, modified DATETIME DEFAULT NULL, courseSubscription INT DEFAULT NULL, INDEX IDX_14053662169E6FB9 (course), INDEX IDX_1405366291243D01 (courseSubscription), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE course_text (id INT AUTO_INCREMENT NOT NULL, course_id INT NOT NULL, content LONGTEXT NOT NULL, order_id INT NOT NULL, title VARCHAR(255) DEFAULT NULL, created DATETIME NOT NULL, modified DATETIME DEFAULT NULL, INDEX IDX_F3297AC1591CC992 (course_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE course_type (id INT AUTO_INCREMENT NOT NULL, client_id INT NOT NULL, slug VARCHAR(100) NOT NULL, name VARCHAR(100) NOT NULL, created DATETIME NOT NULL, modified DATETIME DEFAULT NULL, INDEX IDX_447C8A2F19EB6921 (client_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE customer_document (id INT AUTO_INCREMENT NOT NULL, customer_id INT NOT NULL, name VARCHAR(255) NOT NULL, filename VARCHAR(255) DEFAULT NULL, system_agent VARCHAR(50) NOT NULL, created DATETIME NOT NULL, modified DATETIME DEFAULT NULL, INDEX IDX_F4ACC9599395C3F3 (customer_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE customer_history_entry (id INT AUTO_INCREMENT NOT NULL, customer_id INT DEFAULT NULL, email_history_entry_id INT DEFAULT NULL, manual_newsletter_id INT DEFAULT NULL, entry VARCHAR(255) NOT NULL, system_agent VARCHAR(50) NOT NULL, date DATETIME NOT NULL, type VARCHAR(50) NOT NULL, admin_id INT DEFAULT NULL, set_by_admin TINYINT(1) DEFAULT NULL, INDEX IDX_16FCE5149395C3F3 (customer_id), INDEX IDX_16FCE514F4F4CDBF (email_history_entry_id), UNIQUE INDEX UNIQ_16FCE51488C05F90 (manual_newsletter_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE customer_order (id INT AUTO_INCREMENT NOT NULL, customer_id INT DEFAULT NULL, client_id INT NOT NULL, person_id INT DEFAULT NULL, invoice_recipient_id INT DEFAULT NULL, number VARCHAR(30) NOT NULL, order_date DATE NOT NULL, customer_title VARCHAR(100) DEFAULT NULL, customer_company VARCHAR(255) DEFAULT NULL, customer_firstname VARCHAR(255) NOT NULL, customer_lastname VARCHAR(255) NOT NULL, customer_street VARCHAR(255) NOT NULL, customer_street_number VARCHAR(10) NOT NULL, customer_postalcode VARCHAR(10) NOT NULL, customer_city VARCHAR(255) NOT NULL, customer_contact_email VARCHAR(255) DEFAULT NULL, customer_country VARCHAR(10) NOT NULL, customer_phone VARCHAR(30) DEFAULT NULL, customer_age_group INT DEFAULT NULL, status VARCHAR(20) NOT NULL, iban VARCHAR(30) DEFAULT NULL, bic VARCHAR(20) DEFAULT NULL, bank VARCHAR(255) DEFAULT NULL, payment_type VARCHAR(30) NOT NULL, customer_comment LONGTEXT DEFAULT NULL, created DATETIME NOT NULL, modified DATETIME DEFAULT NULL, INDEX IDX_3B1CE6A39395C3F3 (customer_id), INDEX IDX_3B1CE6A319EB6921 (client_id), INDEX IDX_3B1CE6A3217BBB47 (person_id), INDEX IDX_3B1CE6A356E8A00C (invoice_recipient_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE customer_order_item (id INT AUTO_INCREMENT NOT NULL, _order_id INT NOT NULL, course_occurrence_id INT DEFAULT NULL, course_occurrence_time_id INT DEFAULT NULL, course_subscription_booking_id INT DEFAULT NULL, course_item_id INT DEFAULT NULL, price DOUBLE PRECISION DEFAULT NULL, tax_rate DOUBLE PRECISION DEFAULT NULL, quantity INT NOT NULL, cancelled_quantity INT NOT NULL, is_free TINYINT(1) NOT NULL, name VARCHAR(255) DEFAULT NULL, description LONGTEXT DEFAULT NULL, status VARCHAR(20) DEFAULT NULL, created DATETIME NOT NULL, modified DATETIME DEFAULT NULL, INDEX IDX_AF231B8BA35F2858 (_order_id), INDEX IDX_AF231B8BF3DA6B75 (course_occurrence_id), INDEX IDX_AF231B8BEA75AC07 (course_occurrence_time_id), INDEX IDX_AF231B8BD464BF90 (course_subscription_booking_id), INDEX IDX_AF231B8B1AAC57B2 (course_item_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE customer_order_item_person (id INT AUTO_INCREMENT NOT NULL, order_item_id INT DEFAULT NULL, person_id INT DEFAULT NULL, wait_item_id INT DEFAULT NULL, title VARCHAR(100) DEFAULT NULL, firstname VARCHAR(255) DEFAULT NULL, lastname VARCHAR(255) DEFAULT NULL, date_of_birth DATE DEFAULT NULL, comment LONGTEXT DEFAULT NULL, status VARCHAR(20) DEFAULT NULL, cancelled DATETIME DEFAULT NULL, created DATETIME NOT NULL, modified DATETIME DEFAULT NULL, INDEX IDX_BD862622E415FB15 (order_item_id), INDEX IDX_BD862622217BBB47 (person_id), INDEX IDX_BD86262239E536C5 (wait_item_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE email_history_entry (id INT AUTO_INCREMENT NOT NULL, client_id INT NOT NULL, order_id INT DEFAULT NULL, invoice_id INT DEFAULT NULL, created DATETIME NOT NULL, recipients LONGTEXT NOT NULL, subject VARCHAR(255) NOT NULL, content LONGTEXT NOT NULL, attachment VARCHAR(255) DEFAULT NULL, attachment_name VARCHAR(255) DEFAULT NULL, sender VARCHAR(255) DEFAULT NULL, INDEX IDX_80AE86BF19EB6921 (client_id), INDEX IDX_80AE86BF8D9F6D38 (order_id), INDEX IDX_80AE86BF2989F1FD (invoice_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE email_history_entry_person (email_history_entry_id INT NOT NULL, person_id INT NOT NULL, INDEX IDX_F17569B5F4F4CDBF (email_history_entry_id), INDEX IDX_F17569B5217BBB47 (person_id), PRIMARY KEY(email_history_entry_id, person_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE invoice (id INT AUTO_INCREMENT NOT NULL, _order_id INT NOT NULL, parent_id INT DEFAULT NULL, signed_by_id INT DEFAULT NULL, invoice_adress_person_id INT DEFAULT NULL, invoice_date DATE NOT NULL, number VARCHAR(30) NOT NULL, due_date DATE DEFAULT NULL, payment_type VARCHAR(30) NOT NULL, status VARCHAR(30) NOT NULL, cancellation TINYINT(1) NOT NULL, cancelled TINYINT(1) DEFAULT NULL, iban VARCHAR(30) DEFAULT NULL, bic VARCHAR(20) DEFAULT NULL, bank VARCHAR(255) DEFAULT NULL, origin_id VARCHAR(100) DEFAULT NULL, export_status VARCHAR(30) NOT NULL, is_new_sepa_mandate TINYINT(1) NOT NULL, title VARCHAR(255) DEFAULT NULL, firstname VARCHAR(255) DEFAULT NULL, lastname VARCHAR(255) DEFAULT NULL, street VARCHAR(255) DEFAULT NULL, street_number VARCHAR(10) DEFAULT NULL, postalcode VARCHAR(20) DEFAULT NULL, city VARCHAR(255) DEFAULT NULL, invoice_adress TINYINT(1) NOT NULL, company VARCHAR(255) DEFAULT NULL, payment_status INT DEFAULT NULL, created DATETIME NOT NULL, modified DATETIME DEFAULT NULL, INDEX IDX_90651744A35F2858 (_order_id), INDEX IDX_90651744727ACA70 (parent_id), INDEX IDX_90651744D2EDD3FB (signed_by_id), INDEX IDX_90651744185DA53E (invoice_adress_person_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE invoice_item (id INT AUTO_INCREMENT NOT NULL, order_item_id INT NOT NULL, invoice_id INT NOT NULL, price DOUBLE PRECISION DEFAULT NULL, tax_rate DOUBLE PRECISION DEFAULT NULL, quantity INT NOT NULL, is_free TINYINT(1) NOT NULL, name VARCHAR(255) DEFAULT NULL, description LONGTEXT DEFAULT NULL, created DATETIME NOT NULL, modified DATETIME DEFAULT NULL, INDEX IDX_1DDE477B2989F1FD (invoice_id), INDEX IDX_1DDE477BE415FB15 (order_item_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE invoice_item_attendees (id INT AUTO_INCREMENT NOT NULL, person_id INT DEFAULT NULL, invoice_item_id INT DEFAULT NULL, firstname VARCHAR(255) NOT NULL, secondname VARCHAR(255) NOT NULL, date_of_birth DATETIME DEFAULT NULL, INDEX IDX_249143B9217BBB47 (person_id), INDEX IDX_249143B9E0B6648D (invoice_item_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE invoice_payment (id INT AUTO_INCREMENT NOT NULL, invoice_id INT NOT NULL, payed_date DATETIME NOT NULL, sum DOUBLE PRECISION NOT NULL, created DATETIME NOT NULL, modified DATETIME DEFAULT NULL, INDEX IDX_9FF1B2DE2989F1FD (invoice_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE invoice_reminder (id INT AUTO_INCREMENT NOT NULL, invoice_id INT NOT NULL, remind_date DATETIME NOT NULL, comment LONGTEXT DEFAULT NULL, title VARCHAR(255) DEFAULT NULL, created DATETIME NOT NULL, modified DATETIME DEFAULT NULL, INDEX IDX_5F1F15182989F1FD (invoice_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE manual_newsletter (id INT AUTO_INCREMENT NOT NULL, person_id INT DEFAULT NULL, activate_token VARCHAR(50) NOT NULL, activated TINYINT(1) NOT NULL, email_confirmed_at DATETIME DEFAULT NULL, key_expired DATETIME NOT NULL, INDEX IDX_76687F07217BBB47 (person_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE newsletter (id INT AUTO_INCREMENT NOT NULL, email VARCHAR(255) NOT NULL, activate_token VARCHAR(50) NOT NULL, activated TINYINT(1) DEFAULT \'0\', email_confirmed_at DATETIME DEFAULT NULL, key_expired DATETIME NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE oauth2_access_token (identifier CHAR(80) NOT NULL, client VARCHAR(32) NOT NULL, expiry DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', user_identifier VARCHAR(128) DEFAULT NULL, scopes TEXT DEFAULT NULL COMMENT \'(DC2Type:oauth2_scope)\', revoked TINYINT(1) NOT NULL, INDEX IDX_454D9673C7440455 (client), PRIMARY KEY(identifier)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE oauth2_authorization_code (identifier CHAR(80) NOT NULL, client VARCHAR(32) NOT NULL, expiry DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', user_identifier VARCHAR(128) DEFAULT NULL, scopes TEXT DEFAULT NULL COMMENT \'(DC2Type:oauth2_scope)\', revoked TINYINT(1) NOT NULL, INDEX IDX_509FEF5FC7440455 (client), PRIMARY KEY(identifier)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE oauth2_refresh_token (identifier CHAR(80) NOT NULL, access_token CHAR(80) DEFAULT NULL, expiry DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', revoked TINYINT(1) NOT NULL, INDEX IDX_4DD90732B6A2DD68 (access_token), PRIMARY KEY(identifier)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE oauth_access_token (identifier VARCHAR(80) NOT NULL, client_id VARCHAR(32) DEFAULT NULL, user_id INT DEFAULT NULL, cart_id INT DEFAULT NULL, user_identifier VARCHAR(128) DEFAULT NULL, expiry DATETIME NOT NULL, INDEX IDX_F7FA86A419EB6921 (client_id), INDEX IDX_F7FA86A4A76ED395 (user_id), UNIQUE INDEX UNIQ_F7FA86A41AD5CDBF (cart_id), PRIMARY KEY(identifier)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE oauth_auth_code (identifier CHAR(80) NOT NULL, user_id INT DEFAULT NULL, expiry DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', user_identifier VARCHAR(128) DEFAULT NULL, scopes TEXT DEFAULT NULL COMMENT \'(DC2Type:oauth2_scope)\', revoked TINYINT(1) NOT NULL, INDEX IDX_4D12F0E0A76ED395 (user_id), PRIMARY KEY(identifier)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE oauth_client (identifier VARCHAR(32) NOT NULL, application_client_id INT DEFAULT NULL, name VARCHAR(128) NOT NULL, secret VARCHAR(128) DEFAULT NULL, redirect_uris TEXT DEFAULT NULL COMMENT \'(DC2Type:oauth2_redirect_uri)\', grants TEXT DEFAULT NULL COMMENT \'(DC2Type:oauth2_grant)\', scopes TEXT DEFAULT NULL COMMENT \'(DC2Type:oauth2_scope)\', active TINYINT(1) NOT NULL, allow_plain_text_pkce TINYINT(1) DEFAULT \'0\' NOT NULL, activation_url VARCHAR(255) DEFAULT NULL, confirm_email_url VARCHAR(255) DEFAULT NULL, reset_password_url VARCHAR(255) DEFAULT NULL, google_client_id VARCHAR(255) DEFAULT NULL, UNIQUE INDEX UNIQ_AD73274D9DEA1320 (application_client_id), PRIMARY KEY(identifier)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE oauth_refresh_token (identifier CHAR(80) NOT NULL, client_id VARCHAR(32) DEFAULT NULL, user_id INT DEFAULT NULL, expiry DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', revoked TINYINT(1) NOT NULL, INDEX IDX_55DCF75519EB6921 (client_id), INDEX IDX_55DCF755A76ED395 (user_id), PRIMARY KEY(identifier)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE person (id INT AUTO_INCREMENT NOT NULL, user_id INT DEFAULT NULL, family_member_of_id INT DEFAULT NULL, title VARCHAR(100) DEFAULT NULL, firstname VARCHAR(255) DEFAULT NULL, lastname VARCHAR(255) DEFAULT NULL, date_of_birth DATE DEFAULT NULL, comment LONGTEXT DEFAULT NULL, is_main_contact TINYINT(1) DEFAULT NULL, is_speaker TINYINT(1) DEFAULT NULL, is_customer TINYINT(1) DEFAULT NULL, street VARCHAR(255) DEFAULT NULL, street_number VARCHAR(10) DEFAULT NULL, postalcode VARCHAR(10) DEFAULT NULL, city VARCHAR(255) DEFAULT NULL, contact_email VARCHAR(255) DEFAULT NULL, web VARCHAR(255) DEFAULT NULL, country VARCHAR(10) DEFAULT NULL, phone VARCHAR(30) DEFAULT NULL, mobile VARCHAR(30) DEFAULT NULL, delete_date DATETIME DEFAULT NULL, iban VARCHAR(30) DEFAULT NULL, bic VARCHAR(20) DEFAULT NULL, bank VARCHAR(255) DEFAULT NULL, debit_agree TINYINT(1) DEFAULT NULL, debit_agree_source VARCHAR(50) DEFAULT NULL, debit_agree_date DATETIME DEFAULT NULL, email_invoice TINYINT(1) DEFAULT NULL, privacy_policy_confirmed TINYINT(1) NOT NULL, receive_newsletter TINYINT(1) NOT NULL, debit_active TINYINT(1) DEFAULT NULL, is_invoice_recipient TINYINT(1) NOT NULL, company VARCHAR(255) DEFAULT NULL, person INT DEFAULT NULL, created DATETIME NOT NULL, modified DATETIME DEFAULT NULL, UNIQUE INDEX UNIQ_34DCD176A76ED395 (user_id), INDEX IDX_34DCD1768F51E312 (family_member_of_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE person_course_occurrence (person_id INT NOT NULL, course_occurrence_id INT NOT NULL, INDEX IDX_68CE9F95217BBB47 (person_id), INDEX IDX_68CE9F95F3DA6B75 (course_occurrence_id), PRIMARY KEY(person_id, course_occurrence_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE protocol_entry (id INT AUTO_INCREMENT NOT NULL, user_id INT DEFAULT NULL, created DATETIME NOT NULL, entity_class VARCHAR(100) NOT NULL, entity_id INT NOT NULL, action VARCHAR(20) NOT NULL, entry LONGTEXT NOT NULL, INDEX IDX_E5457710A76ED395 (user_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE search_index_entry (entity_class VARCHAR(100) NOT NULL, entity_id INT NOT NULL, field VARCHAR(100) NOT NULL, client_id INT NOT NULL, entry LONGTEXT NOT NULL, raw_entry LONGTEXT NOT NULL, weight INT NOT NULL, FULLTEXT INDEX IDX_A28180782B219D70 (entry), FULLTEXT INDEX IDX_A28180781D096132 (raw_entry), PRIMARY KEY(entity_class, entity_id, field)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = MyISAM');
$this->addSql('CREATE TABLE speaker (id INT AUTO_INCREMENT NOT NULL, person_id INT NOT NULL, image VARCHAR(500) DEFAULT NULL, created DATETIME NOT NULL, modified DATETIME DEFAULT NULL, UNIQUE INDEX UNIQ_7B85DB61217BBB47 (person_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE speaker_image (id INT AUTO_INCREMENT NOT NULL, speaker_id INT NOT NULL, order_id INT NOT NULL, image VARCHAR(255) DEFAULT NULL, created DATETIME NOT NULL, modified DATETIME DEFAULT NULL, INDEX IDX_F0ABBBCCD04A0F27 (speaker_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE speaker_text (id INT AUTO_INCREMENT NOT NULL, speaker_id INT NOT NULL, content LONGTEXT NOT NULL, order_id INT NOT NULL, title VARCHAR(255) NOT NULL, short_content LONGTEXT DEFAULT NULL, created DATETIME NOT NULL, modified DATETIME DEFAULT NULL, INDEX IDX_189CCEEFD04A0F27 (speaker_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE textblocks (id INT AUTO_INCREMENT NOT NULL, position VARCHAR(64) DEFAULT NULL, subject VARCHAR(255) DEFAULT NULL, message LONGTEXT DEFAULT NULL, language VARCHAR(3) DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE user (id INT AUTO_INCREMENT NOT NULL, username VARCHAR(255) NOT NULL, password VARCHAR(64) DEFAULT NULL, role VARCHAR(20) NOT NULL, password_reset_token VARCHAR(43) DEFAULT NULL, password_requested_at DATETIME DEFAULT NULL, password_reset_at DATETIME DEFAULT NULL, activate_token VARCHAR(43) DEFAULT NULL, activate_requested_at DATETIME DEFAULT NULL, activated_at DATETIME DEFAULT NULL, email_confirm_token VARCHAR(43) DEFAULT NULL, email_confirm_requested_at DATETIME DEFAULT NULL, email_confirmed_at DATETIME DEFAULT NULL, facebook_id VARCHAR(255) DEFAULT NULL, google_id VARCHAR(255) DEFAULT NULL, created DATETIME NOT NULL, modified DATETIME DEFAULT NULL, clientId INT DEFAULT NULL, INDEX IDX_8D93D649EA1CE9BE (clientId), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE venue (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(255) DEFAULT NULL, postalcode VARCHAR(255) NOT NULL, city VARCHAR(255) NOT NULL, street VARCHAR(255) NOT NULL, street_number VARCHAR(10) NOT NULL, geo_latitude DOUBLE PRECISION DEFAULT NULL, geo_longitude DOUBLE PRECISION DEFAULT NULL, created DATETIME NOT NULL, modified DATETIME DEFAULT NULL, clientId INT DEFAULT NULL, INDEX IDX_91911B0DEA1CE9BE (clientId), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE venue_document (id INT AUTO_INCREMENT NOT NULL, venue_id INT NOT NULL, venue_room_id INT DEFAULT NULL, name VARCHAR(255) NOT NULL, filename VARCHAR(255) DEFAULT NULL, system_agent VARCHAR(50) NOT NULL, created DATETIME NOT NULL, modified DATETIME DEFAULT NULL, INDEX IDX_B9B2BD5240A73EBA (venue_id), INDEX IDX_B9B2BD52E4DF874D (venue_room_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE venue_image (id INT AUTO_INCREMENT NOT NULL, venue_id INT NOT NULL, title VARCHAR(255) DEFAULT NULL, description LONGTEXT DEFAULT NULL, author VARCHAR(255) NOT NULL, order_id INT NOT NULL, image VARCHAR(255) DEFAULT NULL, created DATETIME NOT NULL, modified DATETIME DEFAULT NULL, INDEX IDX_1D86098840A73EBA (venue_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE venue_room (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(255) NOT NULL, number VARCHAR(20) DEFAULT NULL, floor VARCHAR(10) DEFAULT NULL, building VARCHAR(255) DEFAULT NULL, created DATETIME NOT NULL, modified DATETIME DEFAULT NULL, venueId INT DEFAULT NULL, INDEX IDX_C4B95C33157665C2 (venueId), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE wait_item (id INT AUTO_INCREMENT NOT NULL, course_occurrence_id INT NOT NULL, course_occurrence_time_id INT DEFAULT NULL, _order_id INT NOT NULL, quantity INT NOT NULL, created DATETIME NOT NULL, modified DATETIME DEFAULT NULL, INDEX IDX_640BFE6EF3DA6B75 (course_occurrence_id), INDEX IDX_640BFE6EEA75AC07 (course_occurrence_time_id), INDEX IDX_640BFE6EA35F2858 (_order_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('ALTER TABLE attachment ADD CONSTRAINT FK_795FD9BBF4F4CDBF FOREIGN KEY (email_history_entry_id) REFERENCES email_history_entry (id)');
$this->addSql('ALTER TABLE cart ADD CONSTRAINT FK_BA388B79395C3F3 FOREIGN KEY (customer_id) REFERENCES person (id)');
$this->addSql('ALTER TABLE cart ADD CONSTRAINT FK_BA388B719EB6921 FOREIGN KEY (client_id) REFERENCES client (id)');
$this->addSql('ALTER TABLE cart ADD CONSTRAINT FK_BA388B7888114B4 FOREIGN KEY (oauth_access_token_id) REFERENCES oauth_access_token (identifier)');
$this->addSql('ALTER TABLE cart_item ADD CONSTRAINT FK_F0FE25271AD5CDBF FOREIGN KEY (cart_id) REFERENCES cart (id)');
$this->addSql('ALTER TABLE cart_item ADD CONSTRAINT FK_F0FE2527F3DA6B75 FOREIGN KEY (course_occurrence_id) REFERENCES course_occurrence (id)');
$this->addSql('ALTER TABLE cart_item ADD CONSTRAINT FK_F0FE2527EA75AC07 FOREIGN KEY (course_occurrence_time_id) REFERENCES course_occurrence_time (id)');
$this->addSql('ALTER TABLE cart_item ADD CONSTRAINT FK_F0FE25271AAC57B2 FOREIGN KEY (course_item_id) REFERENCES cart_item (id)');
$this->addSql('ALTER TABLE cart_item_person ADD CONSTRAINT FK_E1F65DF9E9B59A59 FOREIGN KEY (cart_item_id) REFERENCES cart_item (id)');
$this->addSql('ALTER TABLE cart_item_person ADD CONSTRAINT FK_E1F65DF9217BBB47 FOREIGN KEY (person_id) REFERENCES person (id)');
$this->addSql('ALTER TABLE category ADD CONSTRAINT FK_64C19C119EB6921 FOREIGN KEY (client_id) REFERENCES client (id)');
$this->addSql('ALTER TABLE client_config ADD CONSTRAINT FK_812C64CFEA1CE9BE FOREIGN KEY (clientId) REFERENCES client (id)');
$this->addSql('ALTER TABLE course ADD CONSTRAINT FK_169E6FB9EA1CE9BE FOREIGN KEY (clientId) REFERENCES client (id)');
$this->addSql('ALTER TABLE course ADD CONSTRAINT FK_169E6FB99A1887DC FOREIGN KEY (subscription_id) REFERENCES course_subscription (id)');
$this->addSql('ALTER TABLE course ADD CONSTRAINT FK_169E6FB912469DE2 FOREIGN KEY (category_id) REFERENCES category (id)');
$this->addSql('ALTER TABLE course ADD CONSTRAINT FK_169E6FB95278319C FOREIGN KEY (series_id) REFERENCES course_series (id)');
$this->addSql('ALTER TABLE course ADD CONSTRAINT FK_169E6FB9C54C8C93 FOREIGN KEY (type_id) REFERENCES course_type (id)');
$this->addSql('ALTER TABLE course_data ADD CONSTRAINT FK_65512E6519EB6921 FOREIGN KEY (client_id) REFERENCES client (id)');
$this->addSql('ALTER TABLE course_data ADD CONSTRAINT FK_65512E65591CC992 FOREIGN KEY (course_id) REFERENCES course (id)');
$this->addSql('ALTER TABLE course_data ADD CONSTRAINT FK_65512E65443707B0 FOREIGN KEY (field_id) REFERENCES course_field (id)');
$this->addSql('ALTER TABLE course_field ADD CONSTRAINT FK_B25E42B019EB6921 FOREIGN KEY (client_id) REFERENCES client (id)');
$this->addSql('ALTER TABLE course_image ADD CONSTRAINT FK_2C9603B7591CC992 FOREIGN KEY (course_id) REFERENCES course (id)');
$this->addSql('ALTER TABLE course_occurrence ADD CONSTRAINT FK_611FCF70157665C2 FOREIGN KEY (venueId) REFERENCES venue (id)');
$this->addSql('ALTER TABLE course_occurrence ADD CONSTRAINT FK_611FCF70F14BE7A3 FOREIGN KEY (venueRoomId) REFERENCES venue_room (id)');
$this->addSql('ALTER TABLE course_occurrence ADD CONSTRAINT FK_611FCF70C2B73C54 FOREIGN KEY (courseId) REFERENCES course (id)');
$this->addSql('ALTER TABLE course_occurrence_speaker ADD CONSTRAINT FK_CF1AAA5DF3DA6B75 FOREIGN KEY (course_occurrence_id) REFERENCES course_occurrence (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE course_occurrence_speaker ADD CONSTRAINT FK_CF1AAA5DD04A0F27 FOREIGN KEY (speaker_id) REFERENCES speaker (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE course_occurrence_time ADD CONSTRAINT FK_8ED1486A8F93FCC7 FOREIGN KEY (occurrenceId) REFERENCES course_occurrence (id)');
$this->addSql('ALTER TABLE course_series ADD CONSTRAINT FK_9428C060EA1CE9BE FOREIGN KEY (clientId) REFERENCES client (id)');
$this->addSql('ALTER TABLE course_start_end ADD CONSTRAINT FK_8E366CBBC2B73C54 FOREIGN KEY (courseId) REFERENCES course (id)');
$this->addSql('ALTER TABLE course_subscription ADD CONSTRAINT FK_220C1C2E19EB6921 FOREIGN KEY (client_id) REFERENCES client (id)');
$this->addSql('ALTER TABLE course_subscription_booking ADD CONSTRAINT FK_14053662169E6FB9 FOREIGN KEY (course) REFERENCES course (id)');
$this->addSql('ALTER TABLE course_subscription_booking ADD CONSTRAINT FK_1405366291243D01 FOREIGN KEY (courseSubscription) REFERENCES course_subscription (id)');
$this->addSql('ALTER TABLE course_text ADD CONSTRAINT FK_F3297AC1591CC992 FOREIGN KEY (course_id) REFERENCES course (id)');
$this->addSql('ALTER TABLE course_type ADD CONSTRAINT FK_447C8A2F19EB6921 FOREIGN KEY (client_id) REFERENCES client (id)');
$this->addSql('ALTER TABLE customer_document ADD CONSTRAINT FK_F4ACC9599395C3F3 FOREIGN KEY (customer_id) REFERENCES person (id)');
$this->addSql('ALTER TABLE customer_history_entry ADD CONSTRAINT FK_16FCE5149395C3F3 FOREIGN KEY (customer_id) REFERENCES person (id)');
$this->addSql('ALTER TABLE customer_history_entry ADD CONSTRAINT FK_16FCE514F4F4CDBF FOREIGN KEY (email_history_entry_id) REFERENCES email_history_entry (id)');
$this->addSql('ALTER TABLE customer_history_entry ADD CONSTRAINT FK_16FCE51488C05F90 FOREIGN KEY (manual_newsletter_id) REFERENCES manual_newsletter (id)');
$this->addSql('ALTER TABLE customer_order ADD CONSTRAINT FK_3B1CE6A39395C3F3 FOREIGN KEY (customer_id) REFERENCES person (id)');
$this->addSql('ALTER TABLE customer_order ADD CONSTRAINT FK_3B1CE6A319EB6921 FOREIGN KEY (client_id) REFERENCES client (id)');
$this->addSql('ALTER TABLE customer_order ADD CONSTRAINT FK_3B1CE6A3217BBB47 FOREIGN KEY (person_id) REFERENCES person (id)');
$this->addSql('ALTER TABLE customer_order ADD CONSTRAINT FK_3B1CE6A356E8A00C FOREIGN KEY (invoice_recipient_id) REFERENCES person (id)');
$this->addSql('ALTER TABLE customer_order_item ADD CONSTRAINT FK_AF231B8BA35F2858 FOREIGN KEY (_order_id) REFERENCES customer_order (id)');
$this->addSql('ALTER TABLE customer_order_item ADD CONSTRAINT FK_AF231B8BF3DA6B75 FOREIGN KEY (course_occurrence_id) REFERENCES course_occurrence (id)');
$this->addSql('ALTER TABLE customer_order_item ADD CONSTRAINT FK_AF231B8BEA75AC07 FOREIGN KEY (course_occurrence_time_id) REFERENCES course_occurrence_time (id)');
$this->addSql('ALTER TABLE customer_order_item ADD CONSTRAINT FK_AF231B8BD464BF90 FOREIGN KEY (course_subscription_booking_id) REFERENCES course_subscription_booking (id)');
$this->addSql('ALTER TABLE customer_order_item ADD CONSTRAINT FK_AF231B8B1AAC57B2 FOREIGN KEY (course_item_id) REFERENCES customer_order_item (id)');
$this->addSql('ALTER TABLE customer_order_item_person ADD CONSTRAINT FK_BD862622E415FB15 FOREIGN KEY (order_item_id) REFERENCES customer_order_item (id)');
$this->addSql('ALTER TABLE customer_order_item_person ADD CONSTRAINT FK_BD862622217BBB47 FOREIGN KEY (person_id) REFERENCES person (id)');
$this->addSql('ALTER TABLE customer_order_item_person ADD CONSTRAINT FK_BD86262239E536C5 FOREIGN KEY (wait_item_id) REFERENCES wait_item (id)');
$this->addSql('ALTER TABLE email_history_entry ADD CONSTRAINT FK_80AE86BF19EB6921 FOREIGN KEY (client_id) REFERENCES client (id)');
$this->addSql('ALTER TABLE email_history_entry ADD CONSTRAINT FK_80AE86BF8D9F6D38 FOREIGN KEY (order_id) REFERENCES customer_order (id)');
$this->addSql('ALTER TABLE email_history_entry ADD CONSTRAINT FK_80AE86BF2989F1FD FOREIGN KEY (invoice_id) REFERENCES invoice (id)');
$this->addSql('ALTER TABLE email_history_entry_person ADD CONSTRAINT FK_F17569B5F4F4CDBF FOREIGN KEY (email_history_entry_id) REFERENCES email_history_entry (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE email_history_entry_person ADD CONSTRAINT FK_F17569B5217BBB47 FOREIGN KEY (person_id) REFERENCES person (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE invoice ADD CONSTRAINT FK_90651744A35F2858 FOREIGN KEY (_order_id) REFERENCES customer_order (id)');
$this->addSql('ALTER TABLE invoice ADD CONSTRAINT FK_90651744727ACA70 FOREIGN KEY (parent_id) REFERENCES invoice (id)');
$this->addSql('ALTER TABLE invoice ADD CONSTRAINT FK_90651744D2EDD3FB FOREIGN KEY (signed_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE invoice ADD CONSTRAINT FK_90651744185DA53E FOREIGN KEY (invoice_adress_person_id) REFERENCES person (id)');
$this->addSql('ALTER TABLE invoice_item ADD CONSTRAINT FK_1DDE477B2989F1FD FOREIGN KEY (invoice_id) REFERENCES invoice (id)');
$this->addSql('ALTER TABLE invoice_item ADD CONSTRAINT FK_1DDE477BE415FB15 FOREIGN KEY (order_item_id) REFERENCES customer_order_item (id)');
$this->addSql('ALTER TABLE invoice_item_attendees ADD CONSTRAINT FK_249143B9217BBB47 FOREIGN KEY (person_id) REFERENCES person (id)');
$this->addSql('ALTER TABLE invoice_item_attendees ADD CONSTRAINT FK_249143B9E0B6648D FOREIGN KEY (invoice_item_id) REFERENCES invoice_item (id)');
$this->addSql('ALTER TABLE invoice_payment ADD CONSTRAINT FK_9FF1B2DE2989F1FD FOREIGN KEY (invoice_id) REFERENCES invoice (id)');
$this->addSql('ALTER TABLE invoice_reminder ADD CONSTRAINT FK_5F1F15182989F1FD FOREIGN KEY (invoice_id) REFERENCES invoice (id)');
$this->addSql('ALTER TABLE manual_newsletter ADD CONSTRAINT FK_76687F07217BBB47 FOREIGN KEY (person_id) REFERENCES person (id)');
$this->addSql('ALTER TABLE oauth2_access_token ADD CONSTRAINT FK_454D9673C7440455 FOREIGN KEY (client) REFERENCES oauth_client (identifier) ON DELETE CASCADE');
$this->addSql('ALTER TABLE oauth2_authorization_code ADD CONSTRAINT FK_509FEF5FC7440455 FOREIGN KEY (client) REFERENCES oauth_client (identifier) ON DELETE CASCADE');
$this->addSql('ALTER TABLE oauth2_refresh_token ADD CONSTRAINT FK_4DD90732B6A2DD68 FOREIGN KEY (access_token) REFERENCES oauth2_access_token (identifier) ON DELETE SET NULL');
$this->addSql('ALTER TABLE oauth_access_token ADD CONSTRAINT FK_F7FA86A419EB6921 FOREIGN KEY (client_id) REFERENCES oauth_client (identifier)');
$this->addSql('ALTER TABLE oauth_access_token ADD CONSTRAINT FK_F7FA86A4A76ED395 FOREIGN KEY (user_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE oauth_access_token ADD CONSTRAINT FK_F7FA86A41AD5CDBF FOREIGN KEY (cart_id) REFERENCES cart (id)');
$this->addSql('ALTER TABLE oauth_auth_code ADD CONSTRAINT FK_4D12F0E0A76ED395 FOREIGN KEY (user_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE oauth_client ADD CONSTRAINT FK_AD73274D9DEA1320 FOREIGN KEY (application_client_id) REFERENCES client (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE oauth_refresh_token ADD CONSTRAINT FK_55DCF75519EB6921 FOREIGN KEY (client_id) REFERENCES oauth_client (identifier)');
$this->addSql('ALTER TABLE oauth_refresh_token ADD CONSTRAINT FK_55DCF755A76ED395 FOREIGN KEY (user_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE person ADD CONSTRAINT FK_34DCD176A76ED395 FOREIGN KEY (user_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE person ADD CONSTRAINT FK_34DCD1768F51E312 FOREIGN KEY (family_member_of_id) REFERENCES person (id)');
$this->addSql('ALTER TABLE person_course_occurrence ADD CONSTRAINT FK_68CE9F95217BBB47 FOREIGN KEY (person_id) REFERENCES person (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE person_course_occurrence ADD CONSTRAINT FK_68CE9F95F3DA6B75 FOREIGN KEY (course_occurrence_id) REFERENCES course_occurrence (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE protocol_entry ADD CONSTRAINT FK_E5457710A76ED395 FOREIGN KEY (user_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE speaker ADD CONSTRAINT FK_7B85DB61217BBB47 FOREIGN KEY (person_id) REFERENCES person (id)');
$this->addSql('ALTER TABLE speaker_image ADD CONSTRAINT FK_F0ABBBCCD04A0F27 FOREIGN KEY (speaker_id) REFERENCES speaker (id)');
$this->addSql('ALTER TABLE speaker_text ADD CONSTRAINT FK_189CCEEFD04A0F27 FOREIGN KEY (speaker_id) REFERENCES speaker (id)');
$this->addSql('ALTER TABLE user ADD CONSTRAINT FK_8D93D649EA1CE9BE FOREIGN KEY (clientId) REFERENCES client (id)');
$this->addSql('ALTER TABLE venue ADD CONSTRAINT FK_91911B0DEA1CE9BE FOREIGN KEY (clientId) REFERENCES client (id)');
$this->addSql('ALTER TABLE venue_document ADD CONSTRAINT FK_B9B2BD5240A73EBA FOREIGN KEY (venue_id) REFERENCES venue (id)');
$this->addSql('ALTER TABLE venue_document ADD CONSTRAINT FK_B9B2BD52E4DF874D FOREIGN KEY (venue_room_id) REFERENCES venue_room (id)');
$this->addSql('ALTER TABLE venue_image ADD CONSTRAINT FK_1D86098840A73EBA FOREIGN KEY (venue_id) REFERENCES venue (id)');
$this->addSql('ALTER TABLE venue_room ADD CONSTRAINT FK_C4B95C33157665C2 FOREIGN KEY (venueId) REFERENCES venue (id)');
$this->addSql('ALTER TABLE wait_item ADD CONSTRAINT FK_640BFE6EF3DA6B75 FOREIGN KEY (course_occurrence_id) REFERENCES course_occurrence (id)');
$this->addSql('ALTER TABLE wait_item ADD CONSTRAINT FK_640BFE6EEA75AC07 FOREIGN KEY (course_occurrence_time_id) REFERENCES course_occurrence_time (id)');
$this->addSql('ALTER TABLE wait_item ADD CONSTRAINT FK_640BFE6EA35F2858 FOREIGN KEY (_order_id) REFERENCES customer_order (id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE cart_item DROP FOREIGN KEY FK_F0FE25271AD5CDBF');
$this->addSql('ALTER TABLE oauth_access_token DROP FOREIGN KEY FK_F7FA86A41AD5CDBF');
$this->addSql('ALTER TABLE cart_item DROP FOREIGN KEY FK_F0FE25271AAC57B2');
$this->addSql('ALTER TABLE cart_item_person DROP FOREIGN KEY FK_E1F65DF9E9B59A59');
$this->addSql('ALTER TABLE course DROP FOREIGN KEY FK_169E6FB912469DE2');
$this->addSql('ALTER TABLE cart DROP FOREIGN KEY FK_BA388B719EB6921');
$this->addSql('ALTER TABLE category DROP FOREIGN KEY FK_64C19C119EB6921');
$this->addSql('ALTER TABLE client_config DROP FOREIGN KEY FK_812C64CFEA1CE9BE');
$this->addSql('ALTER TABLE course DROP FOREIGN KEY FK_169E6FB9EA1CE9BE');
$this->addSql('ALTER TABLE course_data DROP FOREIGN KEY FK_65512E6519EB6921');
$this->addSql('ALTER TABLE course_field DROP FOREIGN KEY FK_B25E42B019EB6921');
$this->addSql('ALTER TABLE course_series DROP FOREIGN KEY FK_9428C060EA1CE9BE');
$this->addSql('ALTER TABLE course_subscription DROP FOREIGN KEY FK_220C1C2E19EB6921');
$this->addSql('ALTER TABLE course_type DROP FOREIGN KEY FK_447C8A2F19EB6921');
$this->addSql('ALTER TABLE customer_order DROP FOREIGN KEY FK_3B1CE6A319EB6921');
$this->addSql('ALTER TABLE email_history_entry DROP FOREIGN KEY FK_80AE86BF19EB6921');
$this->addSql('ALTER TABLE oauth_client DROP FOREIGN KEY FK_AD73274D9DEA1320');
$this->addSql('ALTER TABLE user DROP FOREIGN KEY FK_8D93D649EA1CE9BE');
$this->addSql('ALTER TABLE venue DROP FOREIGN KEY FK_91911B0DEA1CE9BE');
$this->addSql('ALTER TABLE course_data DROP FOREIGN KEY FK_65512E65591CC992');
$this->addSql('ALTER TABLE course_image DROP FOREIGN KEY FK_2C9603B7591CC992');
$this->addSql('ALTER TABLE course_occurrence DROP FOREIGN KEY FK_611FCF70C2B73C54');
$this->addSql('ALTER TABLE course_start_end DROP FOREIGN KEY FK_8E366CBBC2B73C54');
$this->addSql('ALTER TABLE course_subscription_booking DROP FOREIGN KEY FK_14053662169E6FB9');
$this->addSql('ALTER TABLE course_text DROP FOREIGN KEY FK_F3297AC1591CC992');
$this->addSql('ALTER TABLE course_data DROP FOREIGN KEY FK_65512E65443707B0');
$this->addSql('ALTER TABLE cart_item DROP FOREIGN KEY FK_F0FE2527F3DA6B75');
$this->addSql('ALTER TABLE course_occurrence_speaker DROP FOREIGN KEY FK_CF1AAA5DF3DA6B75');
$this->addSql('ALTER TABLE course_occurrence_time DROP FOREIGN KEY FK_8ED1486A8F93FCC7');
$this->addSql('ALTER TABLE customer_order_item DROP FOREIGN KEY FK_AF231B8BF3DA6B75');
$this->addSql('ALTER TABLE person_course_occurrence DROP FOREIGN KEY FK_68CE9F95F3DA6B75');
$this->addSql('ALTER TABLE wait_item DROP FOREIGN KEY FK_640BFE6EF3DA6B75');
$this->addSql('ALTER TABLE cart_item DROP FOREIGN KEY FK_F0FE2527EA75AC07');
$this->addSql('ALTER TABLE customer_order_item DROP FOREIGN KEY FK_AF231B8BEA75AC07');
$this->addSql('ALTER TABLE wait_item DROP FOREIGN KEY FK_640BFE6EEA75AC07');
$this->addSql('ALTER TABLE course DROP FOREIGN KEY FK_169E6FB95278319C');
$this->addSql('ALTER TABLE course DROP FOREIGN KEY FK_169E6FB99A1887DC');
$this->addSql('ALTER TABLE course_subscription_booking DROP FOREIGN KEY FK_1405366291243D01');
$this->addSql('ALTER TABLE customer_order_item DROP FOREIGN KEY FK_AF231B8BD464BF90');
$this->addSql('ALTER TABLE course DROP FOREIGN KEY FK_169E6FB9C54C8C93');
$this->addSql('ALTER TABLE customer_order_item DROP FOREIGN KEY FK_AF231B8BA35F2858');
$this->addSql('ALTER TABLE email_history_entry DROP FOREIGN KEY FK_80AE86BF8D9F6D38');
$this->addSql('ALTER TABLE invoice DROP FOREIGN KEY FK_90651744A35F2858');
$this->addSql('ALTER TABLE wait_item DROP FOREIGN KEY FK_640BFE6EA35F2858');
$this->addSql('ALTER TABLE customer_order_item DROP FOREIGN KEY FK_AF231B8B1AAC57B2');
$this->addSql('ALTER TABLE customer_order_item_person DROP FOREIGN KEY FK_BD862622E415FB15');
$this->addSql('ALTER TABLE invoice_item DROP FOREIGN KEY FK_1DDE477BE415FB15');
$this->addSql('ALTER TABLE attachment DROP FOREIGN KEY FK_795FD9BBF4F4CDBF');
$this->addSql('ALTER TABLE customer_history_entry DROP FOREIGN KEY FK_16FCE514F4F4CDBF');
$this->addSql('ALTER TABLE email_history_entry_person DROP FOREIGN KEY FK_F17569B5F4F4CDBF');
$this->addSql('ALTER TABLE email_history_entry DROP FOREIGN KEY FK_80AE86BF2989F1FD');
$this->addSql('ALTER TABLE invoice DROP FOREIGN KEY FK_90651744727ACA70');
$this->addSql('ALTER TABLE invoice_item DROP FOREIGN KEY FK_1DDE477B2989F1FD');
$this->addSql('ALTER TABLE invoice_payment DROP FOREIGN KEY FK_9FF1B2DE2989F1FD');
$this->addSql('ALTER TABLE invoice_reminder DROP FOREIGN KEY FK_5F1F15182989F1FD');
$this->addSql('ALTER TABLE invoice_item_attendees DROP FOREIGN KEY FK_249143B9E0B6648D');
$this->addSql('ALTER TABLE customer_history_entry DROP FOREIGN KEY FK_16FCE51488C05F90');
$this->addSql('ALTER TABLE oauth2_refresh_token DROP FOREIGN KEY FK_4DD90732B6A2DD68');
$this->addSql('ALTER TABLE cart DROP FOREIGN KEY FK_BA388B7888114B4');
$this->addSql('ALTER TABLE oauth2_access_token DROP FOREIGN KEY FK_454D9673C7440455');
$this->addSql('ALTER TABLE oauth2_authorization_code DROP FOREIGN KEY FK_509FEF5FC7440455');
$this->addSql('ALTER TABLE oauth_access_token DROP FOREIGN KEY FK_F7FA86A419EB6921');
$this->addSql('ALTER TABLE oauth_refresh_token DROP FOREIGN KEY FK_55DCF75519EB6921');
$this->addSql('ALTER TABLE cart DROP FOREIGN KEY FK_BA388B79395C3F3');
$this->addSql('ALTER TABLE cart_item_person DROP FOREIGN KEY FK_E1F65DF9217BBB47');
$this->addSql('ALTER TABLE customer_document DROP FOREIGN KEY FK_F4ACC9599395C3F3');
$this->addSql('ALTER TABLE customer_history_entry DROP FOREIGN KEY FK_16FCE5149395C3F3');
$this->addSql('ALTER TABLE customer_order DROP FOREIGN KEY FK_3B1CE6A39395C3F3');
$this->addSql('ALTER TABLE customer_order DROP FOREIGN KEY FK_3B1CE6A3217BBB47');
$this->addSql('ALTER TABLE customer_order DROP FOREIGN KEY FK_3B1CE6A356E8A00C');
$this->addSql('ALTER TABLE customer_order_item_person DROP FOREIGN KEY FK_BD862622217BBB47');
$this->addSql('ALTER TABLE email_history_entry_person DROP FOREIGN KEY FK_F17569B5217BBB47');
$this->addSql('ALTER TABLE invoice DROP FOREIGN KEY FK_90651744185DA53E');
$this->addSql('ALTER TABLE invoice_item_attendees DROP FOREIGN KEY FK_249143B9217BBB47');
$this->addSql('ALTER TABLE manual_newsletter DROP FOREIGN KEY FK_76687F07217BBB47');
$this->addSql('ALTER TABLE person DROP FOREIGN KEY FK_34DCD1768F51E312');
$this->addSql('ALTER TABLE person_course_occurrence DROP FOREIGN KEY FK_68CE9F95217BBB47');
$this->addSql('ALTER TABLE speaker DROP FOREIGN KEY FK_7B85DB61217BBB47');
$this->addSql('ALTER TABLE course_occurrence_speaker DROP FOREIGN KEY FK_CF1AAA5DD04A0F27');
$this->addSql('ALTER TABLE speaker_image DROP FOREIGN KEY FK_F0ABBBCCD04A0F27');
$this->addSql('ALTER TABLE speaker_text DROP FOREIGN KEY FK_189CCEEFD04A0F27');
$this->addSql('ALTER TABLE invoice DROP FOREIGN KEY FK_90651744D2EDD3FB');
$this->addSql('ALTER TABLE oauth_access_token DROP FOREIGN KEY FK_F7FA86A4A76ED395');
$this->addSql('ALTER TABLE oauth_auth_code DROP FOREIGN KEY FK_4D12F0E0A76ED395');
$this->addSql('ALTER TABLE oauth_refresh_token DROP FOREIGN KEY FK_55DCF755A76ED395');
$this->addSql('ALTER TABLE person DROP FOREIGN KEY FK_34DCD176A76ED395');
$this->addSql('ALTER TABLE protocol_entry DROP FOREIGN KEY FK_E5457710A76ED395');
$this->addSql('ALTER TABLE course_occurrence DROP FOREIGN KEY FK_611FCF70157665C2');
$this->addSql('ALTER TABLE venue_document DROP FOREIGN KEY FK_B9B2BD5240A73EBA');
$this->addSql('ALTER TABLE venue_image DROP FOREIGN KEY FK_1D86098840A73EBA');
$this->addSql('ALTER TABLE venue_room DROP FOREIGN KEY FK_C4B95C33157665C2');
$this->addSql('ALTER TABLE course_occurrence DROP FOREIGN KEY FK_611FCF70F14BE7A3');
$this->addSql('ALTER TABLE venue_document DROP FOREIGN KEY FK_B9B2BD52E4DF874D');
$this->addSql('ALTER TABLE customer_order_item_person DROP FOREIGN KEY FK_BD86262239E536C5');
$this->addSql('DROP TABLE attachment');
$this->addSql('DROP TABLE cart');
$this->addSql('DROP TABLE cart_item');
$this->addSql('DROP TABLE cart_item_person');
$this->addSql('DROP TABLE category');
$this->addSql('DROP TABLE client');
$this->addSql('DROP TABLE client_config');
$this->addSql('DROP TABLE course');
$this->addSql('DROP TABLE course_data');
$this->addSql('DROP TABLE course_field');
$this->addSql('DROP TABLE course_image');
$this->addSql('DROP TABLE course_occurrence');
$this->addSql('DROP TABLE course_occurrence_speaker');
$this->addSql('DROP TABLE course_occurrence_time');
$this->addSql('DROP TABLE course_series');
$this->addSql('DROP TABLE course_start_end');
$this->addSql('DROP TABLE course_subscription');
$this->addSql('DROP TABLE course_subscription_booking');
$this->addSql('DROP TABLE course_text');
$this->addSql('DROP TABLE course_type');
$this->addSql('DROP TABLE customer_document');
$this->addSql('DROP TABLE customer_history_entry');
$this->addSql('DROP TABLE customer_order');
$this->addSql('DROP TABLE customer_order_item');
$this->addSql('DROP TABLE customer_order_item_person');
$this->addSql('DROP TABLE email_history_entry');
$this->addSql('DROP TABLE email_history_entry_person');
$this->addSql('DROP TABLE invoice');
$this->addSql('DROP TABLE invoice_item');
$this->addSql('DROP TABLE invoice_item_attendees');
$this->addSql('DROP TABLE invoice_payment');
$this->addSql('DROP TABLE invoice_reminder');
$this->addSql('DROP TABLE manual_newsletter');
$this->addSql('DROP TABLE newsletter');
$this->addSql('DROP TABLE oauth2_access_token');
$this->addSql('DROP TABLE oauth2_authorization_code');
$this->addSql('DROP TABLE oauth2_refresh_token');
$this->addSql('DROP TABLE oauth_access_token');
$this->addSql('DROP TABLE oauth_auth_code');
$this->addSql('DROP TABLE oauth_client');
$this->addSql('DROP TABLE oauth_refresh_token');
$this->addSql('DROP TABLE person');
$this->addSql('DROP TABLE person_course_occurrence');
$this->addSql('DROP TABLE protocol_entry');
$this->addSql('DROP TABLE search_index_entry');
$this->addSql('DROP TABLE speaker');
$this->addSql('DROP TABLE speaker_image');
$this->addSql('DROP TABLE speaker_text');
$this->addSql('DROP TABLE textblocks');
$this->addSql('DROP TABLE user');
$this->addSql('DROP TABLE venue');
$this->addSql('DROP TABLE venue_document');
$this->addSql('DROP TABLE venue_image');
$this->addSql('DROP TABLE venue_room');
$this->addSql('DROP TABLE wait_item');
}
}