CREATE TABLE JTXTContainerXTContainer (idXTContainer BIGINT NOT NULL, idXTOtherContainer BIGINT NOT NULL);

CREATE TABLE JTXTContainerXTWebServiceInfo (xTContainerIdXTContainer BIGINT NOT NULL, xTWebServiceInfoIdXTWebServiceInfo INT NOT NULL);

CREATE TABLE JTXTPromoXTContainer (xTContainerIdXTContainer BIGINT NOT NULL, xTPromoIdXTPromo INT NOT NULL);

CREATE TABLE JTXTPromoXTDeliveryMethod (xTDeliveryMethodIdXTDeliveryMethod BIGINT NOT NULL, xTPromoIdXTPromo INT NOT NULL);

CREATE TABLE JTXTPromoXTPaymentMethod (xTPaymentMethodIdXTPaymentMethod INT NOT NULL, xTPromoIdXTPromo INT NOT NULL);

CREATE TABLE JTXTPromoXTProduct (xTProductIdXTProduct BIGINT NOT NULL, xTPromoIdXTPromo INT NOT NULL);

CREATE TABLE JTXTPromoXTUsersGroup (xTPromoIdXTPromo INT NOT NULL, xTUsersGroupIdXTUsersGroup BIGINT NOT NULL);

CREATE TABLE JTXTUserXTPaymentMethod (xTPaymentMethodIdXTPaymentMethod INT NOT NULL, xTUserIdXTUser BIGINT NOT NULL);

CREATE TABLE JTXTUsersGroupXTPaymentMethod (xTPaymentMethodIdXTPaymentMethod INT NOT NULL, xTUsersGroupIdXTUsersGroup BIGINT NOT NULL);

CREATE TABLE JT_XTContainerXTAdminUsersGroup (xTContainerIdXTContainer BIGINT NOT NULL, xTUsersGroupIdXTUsersGroup BIGINT NOT NULL);

CREATE TABLE JT_XTContainerXTMetaDataPreset (xTContainerIdXTContainer BIGINT NOT NULL, xTMetaDataPresetIdXTMetaDataPreset INT NOT NULL);

CREATE TABLE JT_XTContainerXTUser (xTContainerIdXTContainer BIGINT NOT NULL, xTUserIdXTUser BIGINT NOT NULL);

CREATE TABLE _xt_container_xt_users_group (id_xt_container BIGINT NOT NULL, id_xt_users_group BIGINT NOT NULL);

CREATE TABLE JT_XTMetaDataPresetXTMetaDataModel (xTMetaDataModelIdXTMetaDataModel INT NOT NULL, xTMetaDataPresetIdXTMetaDataPreset INT NOT NULL);

CREATE TABLE JT_XTProductXTDeliveryMethod (xtDeliveryMethodIdXTDeliveryMethod BIGINT NOT NULL, xtProductIdXTProduct BIGINT NOT NULL);

CREATE TABLE _xt_product_xt_related_product (id_xt_product BIGINT NOT NULL, id_xt_related_product BIGINT NOT NULL);

CREATE TABLE JT_XTSMSCampaignXTUsersGroup (xtUsersGroupIdXTUsersGroup BIGINT NOT NULL, xtsmsCampaignId INT NOT NULL);

CREATE TABLE _xt_user_xt_event (id_xt_event BIGINT NOT NULL, id_xt_user BIGINT NOT NULL);

CREATE TABLE _xt_user_xt_usersgroup (id_xt_user BIGINT NOT NULL, id_xt_users_group BIGINT NOT NULL);

CREATE TABLE localized_content (flag_content_type VARCHAR(50), flag_draft TINYINT(1), flag_kind VARCHAR(15), flag_language_code VARCHAR(3), id_author BIGINT, id_xt_container BIGINT, id_xt_container_description BIGINT, idXTContainerHTMLHead BIGINT, id_xt_container_introduction BIGINT, id_xt_localized_content BIGINT NOT NULL, the_class VARCHAR(100), the_content LONGTEXT, the_content_text LONGTEXT, the_keywords LONGTEXT);

CREATE TABLE localized_multimedia_content (flag_draft TINYINT(1), flag_kind VARCHAR(15), flag_language_code VARCHAR(3), id_author BIGINT, id_xt_container BIGINT, id_xt_localized_multimedia_content BIGINT NOT NULL, the_class VARCHAR(100), the_extension VARCHAR(15), theExtensionMD VARCHAR(15), theExtensionSM VARCHAR(15), theFilePath TEXT, the_image_height INT, the_image_url VARCHAR(100), the_image_width INT, the_mime_type VARCHAR(50));

CREATE TABLE localized_title (flag_draft TINYINT(1), flag_kind VARCHAR(15), flag_language_code VARCHAR(3), id_author BIGINT, idXTContainer BIGINT, id_xt_container_keyword BIGINT, id_xt_container_sub_title BIGINT, id_xt_site_title BIGINT, id_xt_localized_title BIGINT NOT NULL, idXTMetaDataModel INT, idXTMetaDataPreset INT, tag_element VARCHAR(15), the_class VARCHAR(100), theContent VARCHAR(1000), theDocumentID TEXT, theExternalURL VARCHAR(300), theFileExtension VARCHAR(10), theURLFragment VARCHAR(200));

CREATE TABLE PayPalRequest (id INT NOT NULL, idPayPalTxn INT, theRequest TEXT);

CREATE TABLE PayPalTxn (id INT NOT NULL, theCreationDate DATETIME, theCurrency VARCHAR(6), theItemData VARCHAR(127), theItemName VARCHAR(255), thePayerEmail VARCHAR(255), thePaymentStatus VARCHAR(16), theQty INT, theTotalHandling DECIMAL(10,4), theTotalPaid DECIMAL(10,4), theTotalShipping DECIMAL(10,4), theTotalTax DECIMAL(10,4), theTxnId VARCHAR(127));

CREATE TABLE VATRates (flagActive INT NOT NULL, idCountry VARCHAR(3) NOT NULL, theCountryName VARCHAR(50) NOT NULL, theParkingRate DECIMAL(38,4), theReducedRate DECIMAL(38,4), theStandardRate DECIMAL(38,4), theSuperReducedRate DECIMAL(38,4));

CREATE TABLE xt_address (flagWarehouse TINYINT, id_country CHAR(2), idXPRegion INT, idXPTown INT, id_xt_address BIGINT NOT NULL, id_xt_container BIGINT, id_xt_user BIGINT, theCompanyName VARCHAR(250), the_email VARCHAR(250), the_fax VARCHAR(250), theLatitude DECIMAL(38,10), theLongitude DECIMAL(38,10), theMobile VARCHAR(250), the_name VARCHAR(250), the_phone VARCHAR(250), the_state VARCHAR(20), the_street VARCHAR(250), the_town VARCHAR(250), the_web_site VARCHAR(250), the_zip_code VARCHAR(10), theZone VARCHAR(250));

CREATE TABLE XTBlogEntry (datePublished DATETIME, flagApproved TINYINT, flagPublished TINYINT, idXTAdminUser INT, idXTBlogEntry INT NOT NULL, idXTContainer BIGINT, idXTUser INT, theContent VARCHAR(255), theIP VARCHAR(255), theTitle VARCHAR(255));

CREATE TABLE XTComment (datePublished DATETIME, flagVisible INT NOT NULL, idXTBlogEntry BIGINT, idXTComment INT NOT NULL, idXTContainer INT, idXTContent INT, idXTParentComment INT, idXTUser INT, theComment VARCHAR(1000), theDisplayName VARCHAR(255), theEmail VARCHAR(255), theIP VARCHAR(255), theTitle VARCHAR(255));

CREATE TABLE XTContact (flagSubType VARCHAR(30), flagType VARCHAR(30), idXTAddress BIGINT, idXTContact BIGINT NOT NULL, idXTUser BIGINT, thePersonalName VARCHAR(255), theValue VARCHAR(100));

CREATE TABLE xt_container (dateSent DATETIME, dateToDisplay DATETIME, flagAllowAdvancedEditor TINYINT(1), flagAllowChildrenSEOURL INT(1) NOT NULL, flagAllowSEOURL INT(1) NOT NULL, flagComment TINYINT(1), flag_container_class VARCHAR(35), flag_container_id VARCHAR(35), flag_content_intro TINYINT(1), flagDeleted TINYINT(1), flagDeliveryInProgress TINYINT(1), flag_draft TINYINT(1), flagEmbed TINYINT(1), flagFounder TINYINT(1) NOT NULL, flagHidden TINYINT(1), flag_hidden_to_users TINYINT(1), flag_home_published TINYINT(1), flag_layout_position VARCHAR(50), flag_lock TINYINT(1), the_main_language_code VARCHAR(3), flagNotification TINYINT(1) NOT NULL, flag_rss TINYINT, flagSearchable TINYINT, flagSent TINYINT, flag_shared TINYINT(1), flag_show_author TINYINT(1), flag_show_dates TINYINT(1), flag_show_images TINYINT(1), flag_show_intro TINYINT(1), flag_show_title TINYINT(1), flagSiteMapPublished TINYINT(1), flag_static_internal_url TINYINT(1), flagTemplate TINYINT(1), flagTestPublished TINYINT(1), flag_thumbnail TINYINT(1), flag_user_managed TINYINT(1), id_author BIGINT, id_main_language_content BIGINT, id_main_language_intro BIGINT, id_main_language_keywords BIGINT, id_main_language_subtitle BIGINT, id_main_language_title BIGINT, idMainSubcontainer BIGINT, id_owner BIGINT, id_parent_container BIGINT, id_xt_address BIGINT, id_xt_container BIGINT NOT NULL, idXTContainerAlias BIGINT, idXTEvent BIGINT, id_xt_main_language_multimedia_content BIGINT, idXTMetaDataPreset INT, id_xt_product BIGINT, idXTUIStore INT, idXTUserLastModification INT, theAllowedClassesForRelationship VARCHAR(255), theBehaviour VARCHAR(255), the_classes VARCHAR(50), theConfig TEXT, the_creation_date DATETIME, theDefaultImageFullHeight INT, theDefaultImageFullWidth INT, theDefaultImageIconHeight INT, theDefaultImageIconWidth INT, theDefaultImageThumbHeight INT, theDefaultImageThumbWidth INT, theDirectActionName VARCHAR(255), the_expiration_date DATE, the_extension VARCHAR(10), the_image_height INT, the_image_url VARCHAR(500), the_image_width INT, theInheritance CHAR(5), theMailAddressFrom VARCHAR(255), theMailAddressFromName VARCHAR(255), theMailAddressReplyTo VARCHAR(255), the_mime_type VARCHAR(50), the_modification_date DATETIME, the_multimedia_contents_alignment VARCHAR(10), the_multimedia_contents_orientation VARCHAR(10), the_multimedia_contents_position VARCHAR(10), the_name VARCHAR(127), theNotes LONGTEXT, the_position BIGINT, thePublishedCountries VARCHAR(255), the_published_date DATE, thePublishedLanguages VARCHAR(255), theQueryHash CHAR(6) NOT NULL, the_site_url VARCHAR(500), theStyleSheet MEDIUMTEXT, theTarget VARCHAR(255));

CREATE TABLE XTContainerAction (flagAutogenerated INT(1) NOT NULL, idXTContainer INT, idXTContainerAction INT NOT NULL, theActionClass VARCHAR(255), theCountryCode VARCHAR(10), theDirectActionName VARCHAR(255), theHTTPStatusCode INT, theLanguageCode VARCHAR(10), thePriority INT, theRedirectURL VARCHAR(500), theURL VARCHAR(255));

CREATE TABLE XTContainerGroupPrivilege (flagPrivilege INTEGER, idXTContainer BIGINT, idXTContainerGroupPrivilege INT NOT NULL, idXTUsersGroup BIGINT);

CREATE TABLE XTContainerName (idXTContainer INT, idXTContainerName INT NOT NULL, theLanguageCode VARCHAR(10), theName VARCHAR(255));

CREATE TABLE XTContainerWebService (dateCreation DATETIME, dateLastModification DATETIME, flagEnabled TINYINT(1), flagStatus VARCHAR(50), idXTContainer BIGINT, idXTContainerWebService INT NOT NULL, idXTWebServiceInfo INT, theID VARCHAR(255));

CREATE TABLE XTCounter (idXTContainer INT, idXTCounter INT NOT NULL, theDayOfYear INT, theHitCount BIGINT, theYear INT);

CREATE TABLE XTDeliveryMethod (flagEnabled TINYINT(1), flagPercentageBased TINYINT NOT NULL, flagPriceBased TINYINT, flagSingleItemCalculation TINYINT NOT NULL, id_xt_delivery_method BIGINT NOT NULL, the_handling_fee DECIMAL(14,2), the_name TEXT, the_notes TEXT, theOptionsJSON TEXT, the_over_weight DECIMAL(14,2), theOverWeightCostPerUnit DECIMAL(14,2), the_over_weight_fixed_cost DECIMAL(14,2), thePercentage DECIMAL(14,2), the_vat DECIMAL(14,2));

CREATE TABLE xt_delivery_pricing (id_delivery_method BIGINT, id_delivery_pricing BIGINT NOT NULL, theFromValue DECIMAL(14,2), thePrice DECIMAL(14,2), thePriceIsoleMaggiori DECIMAL(14,2), theToValue DECIMAL(14,2));

CREATE TABLE XTDiscountCoupon (dateCreation DATETIME, dateLastUsage DATETIME, flagDeleted TINYINT(1), flagDiscountKind TINYINT, flagFreeDelivery TINYINT(1), idMasterCoupon BIGINT, idOwner BIGINT, idXTDiscountCoupon BIGINT NOT NULL, idXTUser BIGINT, theDescription VARCHAR(100), theDiscountCode VARCHAR(100), theDiscountValue DECIMAL(16,4), theMinPrice DECIMAL(16,4) NOT NULL, theUsageCount INT, theUsageLimit INT, theValidPeriodEnd DATETIME, theValidPeriodStart DATETIME);

CREATE TABLE xt_event (flag_all_day CHAR(1), flag_allow_subscription CHAR(1), flag_repetition CHAR(1), flag_repetition_kind VARCHAR(31), id_xt_address BIGINT, id_xt_container BIGINT, id_xt_event BIGINT NOT NULL, id_xt_master_event BIGINT, id_xt_user BIGINT, the_date_end DATETIME, the_date_repetition_end DATETIME, the_date_start DATETIME, the_day_of_month INT, the_day_of_month_end INT, the_day_of_week INT, the_day_of_week_end INT, the_max_seats INT, the_month INT, the_month_end INT, theProximity INT, the_year INT, the_year_end INT);

CREATE TABLE XTFormSubmission (dateCreation DATETIME NOT NULL, id INT NOT NULL, idXTContainer BIGINT, idXTUser BIGINT, theClientAddress VARCHAR(50), theJSONRequestFormValues LONGTEXT, theLanguageCode VARCHAR(10), theMessage LONGTEXT, theSubject VARCHAR(100), theType VARCHAR(16), theUserAgent VARCHAR(255));

CREATE TABLE XTFtpItem (flagSent INT(1), id INT NOT NULL, theData TEXT, theDate DATETIME, theDestCharset VARCHAR(64), theFilenamePrefix VARCHAR(100), theFtpFilename VARCHAR(255));

CREATE TABLE XTInvoice (dateCreation DATETIME NOT NULL, dateFattura DATE, id VARCHAR(10) NOT NULL, idXTOrder INT, theCodiceFiscale VARCHAR(50) NOT NULL, theDestinazione TEXT, thePagamento VARCHAR(255), thePartitaIVA VARCHAR(50), theRagioneSociale VARCHAR(255), theSedeLegale TEXT, theTotale DECIMAL(38,2) NOT NULL, theTotaleImponibile DECIMAL(38,2) NOT NULL, theTotaleImposte DECIMAL(38,2) NOT NULL, theYear INT NOT NULL);

CREATE TABLE XTInvoiceNumerator (dateCreation DATETIME NOT NULL, theNumber INT NOT NULL, theType CHAR(4) NOT NULL, theYear INT NOT NULL);

CREATE TABLE XTInvoiceRow (dateCreation DATETIME NOT NULL, id INT NOT NULL, idXTInvoice VARCHAR(10) NOT NULL, theAliquotaIVA DECIMAL(38,2) NOT NULL, theDescrizione TEXT, thePosition INT NOT NULL, thePrezzoUnitario DECIMAL(38,2) NOT NULL, theQuantita DECIMAL(38,2) NOT NULL, theYear INT NOT NULL);

CREATE TABLE XTLogger (dateLogin DATETIME, dateOperation DATETIME, idXTLogger INT NOT NULL, theDescription VARCHAR(255), theEnterpriseObjectClass VARCHAR(250), theEnterpriseObjectClassPK INT, theHostAddress VARCHAR(100), theOperation VARCHAR(250), theServerAddress VARCHAR(100), theSessionID VARCHAR(100), theUserClass VARCHAR(250), theUserID INT, theUsername VARCHAR(250));

CREATE TABLE XTMetaData (dateCreation DATETIME, dateUpdate DATETIME, flagHidden TINYINT(1), idXTContainer INT, idXTContainerRelated BIGINT, idXTMetaData INT NOT NULL, idXTMetaDataModel INT, theLanguageCode CHAR(5), theSecretKey VARCHAR(255), theValue VARCHAR(5000), theValueBigDecimal DECIMAL(16,4), theValueBoolean TINYINT(1), theValueDatetime DATETIME);

CREATE TABLE XTMetaDataModel (flagListView TINYINT, flagLocalizable TINYINT, flagMultipleValues TINYINT, flagPublished TINYINT, flagSearchable TINYINT, flagTextarea TINYINT, idXTMetaDataModel INT NOT NULL, idXTMetaDataPreset INT, theClassName VARCHAR(255), theDefaultValue VARCHAR(255), theGroup VARCHAR(255), theInputMethod VARCHAR(255), theKey VARCHAR(255), thePosition INT, thePossibleValues TEXT);

CREATE TABLE XTMetaDataPreset (dateCreation DATETIME, idXTMetaDataPreset INT NOT NULL, theKey VARCHAR(255));

CREATE TABLE XTModule (flagEnabled TINYINT, idXTModule INT NOT NULL, theName VARCHAR(255));

CREATE TABLE XTNewsletterLog (dateLog DATETIME, flagSentSuccessfull TINYINT, idXTContainer INT, idXTNewsletterLog INT NOT NULL, idXTUser INT, theMessageID VARCHAR(100), theType CHAR(5));

CREATE TABLE XTOrder (dateDelivery DATETIME, dateModification DATETIME, dateOrder DATETIME, flagAcceptConditions TINYINT(1), flagDeleted TINYINT, flagFinalized TINYINT, flagPaymentNotificationReceived TINYINT, flagWarehouseUnloaded TINYINT, flagWishList TINYINT, idXTAddressWarehouse BIGINT, id_xt_customer BIGINT, id_xt_delivery_address BIGINT, id_xt_delivery_method BIGINT, id_xt_discount_coupon BIGINT, id_xt_order BIGINT NOT NULL, idXTPaymentMethod INT, id_xt_user BIGINT, theCodiceFiscale CHAR(50), theCompanyName VARCHAR(255), theCountry CHAR(8), theDiscountAmount DECIMAL(38,2), theDiscountCoupon VARCHAR(50), theEmail VARCHAR(255), theFax VARCHAR(255), theInvoiceDate DATE, theInvoiceNumber VARCHAR(15), theName VARCHAR(255), theNotes VARCHAR(255), theNotesHidden VARCHAR(255), theOrderID VARCHAR(50), thePartitaIVA CHAR(50), thePaymentID VARCHAR(255), thePhone VARCHAR(255), thePriceDelivery DECIMAL(14,2), theState CHAR(8), theStatus TINYINT, theStatusPayment INT, theStreet TEXT, theSurname VARCHAR(255), theTotal DECIMAL(14,2), theTotalWithTaxes DECIMAL(14,2), theTown VARCHAR(255), theTrackingNumber VARCHAR(255), theTransactionID CHAR(50), theZipCode CHAR(15));

CREATE TABLE XTOrderLine (flagDiscountKind TINYINT, flagWarehouseUnloaded TINYINT, idParentLine BIGINT, idXTOrder BIGINT, idXTOrderLine BIGINT NOT NULL, idXTProduct BIGINT, idXTPromo INT, theCustomerCode VARCHAR(255), theDescription VARCHAR(500), theDiscountValue DECIMAL(14,2), theNotes VARCHAR(500), theOptions VARCHAR(500), thePriceWithTaxes DECIMAL(14,4), theProductorCode VARCHAR(100), theProviderCode VARCHAR(100), quantity DECIMAL(14,2), theSKUCode VARCHAR(100), theSerialNumber VARCHAR(255), theStandardPrice DECIMAL(14,4), theTotal DECIMAL(14,2), theTotalWithTaxes DECIMAL(14,2), theVat DECIMAL(14,2), theWeight DECIMAL(14,2));

CREATE TABLE XTPageCache (theContainersArray MEDIUMTEXT, theContent MEDIUMTEXT, theHeaders TINYTEXT, theUri CHAR(32) NOT NULL);

CREATE TABLE XTPaymentMethod (flagEnabled TINYINT, flagKind TINYINT, flagPercentageFee TINYINT, idXTPaymentMethod INT NOT NULL, theCode VARCHAR(10), theConditions TEXT, theDescription VARCHAR(255), theExpirationDays INT, theMaxTotal DECIMAL(14,2), theMinTotal DECIMAL(14,2), theName VARCHAR(50), theOptionsJSON TEXT, thePayPalUser VARCHAR(255), thePaymentFee DECIMAL(14,2), theVat DECIMAL(14,2));

CREATE TABLE xt_pricing_class (flag_kind TINYINT, flag_public TINYINT(1), id_xt_pricing_class BIGINT NOT NULL, the_name TEXT);

CREATE TABLE xt_product (dateExpirationFeatured DATETIME, dateExpirationFreeShipping DATETIME, dateExpirationNew DATETIME, dateExpirationPromo DATETIME, flagDigitalDownload TINYINT, flagDiscountAbsolute TINYINT, flag_featured TINYINT, flag_free_shipping TINYINT, flagHidden TINYINT, flag_new_products TINYINT, flag_no_quantity_limit TINYINT, flagPromo TINYINT, flagSell TINYINT, flag_to_relate TINYINT, idXTBrandContainer BIGINT, id_xt_container BIGINT, id_xt_producer BIGINT, id_xt_product BIGINT NOT NULL, id_xt_provider BIGINT, theBrand VARCHAR(100), theDiameter DECIMAL(14,2), theDiscountValue DECIMAL(38,4), theFileName VARCHAR(255), theHeight DECIMAL(14,2), theLength DECIMAL(14,2), the_minimum_order_amount DECIMAL(14,2), theName VARCHAR(255), theOutOfStockLimitQuantity FLOAT, thePrice DECIMAL(14,4), the_productor_code VARCHAR(100), the_product_code VARCHAR(100), the_quantity_in_stock DECIMAL(14,2), the_quantity_per_package DECIMAL(14,2), theQuantitySold DECIMAL(14,2), theRandomID VARCHAR(255), the_sku_code VARCHAR(100), the_vat DECIMAL(14,2), theVolumeWeight DECIMAL(14,2), the_weight DECIMAL(14,2), theWidth DECIMAL(14,2));

CREATE TABLE XTProductAccessory (id INT NOT NULL, idXTAccessory BIGINT NOT NULL, idXTProduct BIGINT NOT NULL, theQuantitySuggested DECIMAL(38,2) NOT NULL);

CREATE TABLE xt_product_pricing (id_xt_pricing_class BIGINT, id_xt_product BIGINT, id_xt_product_pricing BIGINT NOT NULL, theDisplayPrice DECIMAL(14,4), theStandardPrice DECIMAL(14,4));

CREATE TABLE XTProductStock (idXTAddress BIGINT, idXTProduct BIGINT, idXTProductStock INT NOT NULL, theQuantity DECIMAL(14,2));

CREATE TABLE XTPromo (dateCreation DATETIME NOT NULL, dateFrom DATETIME, dateModification DATETIME, dateTo DATETIME, flagAllProducts TINYINT, flagAllUsers TINYINT, flagDiscountAbsolute TINYINT, idXTContainer INT NOT NULL, idXTPromo INT NOT NULL, idXTUserCreator BIGINT NOT NULL, theDiscountValue DECIMAL(14,2), theTotalPriceFrom DECIMAL(14,2), theTotalPriceTo DECIMAL(14,2));

CREATE TABLE XTProperty (flagHidden TINYINT, idProperty INT NOT NULL, idXTContainer INT, theBehaviours BLOB, theJavaClass VARCHAR(255), theKey VARCHAR(255), theValues BLOB);

CREATE TABLE XTSMSCampaign (dateCreation DATETIME NOT NULL, dateDelivery DATETIME, dateSend DATETIME, id INT NOT NULL, theMessage VARCHAR(500), theNumberKey VARCHAR(100) NOT NULL, theSender VARCHAR(50), theSenderNumber VARCHAR(50));

CREATE TABLE XTSMSCampaignLog (dateCreation DATETIME NOT NULL, dateDelivery DATETIME, id INT NOT NULL, idXTSMSCampaign INT, idXTUser INT, theMessage VARCHAR(500), theNumber VARCHAR(50), theSenderName VARCHAR(50), theSenderNumber VARCHAR(50));

CREATE TABLE XTStringLocalizable (id INT NOT NULL, theKey VARCHAR(255) NOT NULL, theLanguageCode VARCHAR(10) NOT NULL, theValue TEXT NOT NULL);

CREATE TABLE XTTag (id INT NOT NULL, theLanguageCode VARCHAR(5) NOT NULL, theTag VARCHAR(100) NOT NULL);

CREATE TABLE XTUIAction (idXTAction INT NOT NULL, idXTTarget INT, theName VARCHAR(255));

CREATE TABLE XTUIPrivilege (flagValid TINYINT, idXTAction INT, idXTUIPrivilege INT NOT NULL, idXTUser INT, idXTUsersGroup INT);

CREATE TABLE XTUIStore (flagNewsContainer INT NOT NULL, flagNewsListContainer INT NOT NULL, idXTUIStore INT NOT NULL, theColWidth INTEGER, theSortKey VARCHAR(255), theSortSelector VARCHAR(255));

CREATE TABLE XTUITarget (flagForEditor TINYINT(1), idXTTarget INT NOT NULL, theName VARCHAR(255));

CREATE TABLE XTUser (extra_field_001 VARCHAR(255), extra_field_002 VARCHAR(255), extra_field_003 VARCHAR(255), extra_field_004 VARCHAR(255), extra_field_005 VARCHAR(255), extra_field_006 VARCHAR(255), extra_field_007 VARCHAR(255), extra_field_008 VARCHAR(255), extra_field_009 VARCHAR(255), extraField010 VARCHAR(255), extraField011 VARCHAR(255), extraField012 VARCHAR(255), extraField013 VARCHAR(255), extraField014 VARCHAR(255), extraField015 VARCHAR(255), extraField016 VARCHAR(255), extraField017 VARCHAR(255), extraField018 VARCHAR(255), extraField019 VARCHAR(255), extraField020 VARCHAR(255), flag_access_backend TINYINT(1), flag_access_frontend TINYINT(1), flag_access_level TINYINT, flag_advanced_editor CHAR(1), flagCompany TINYINT, flag_confirmed TINYINT(1), flag_enabled TINYINT, flagHidden TINYINT, flag_privacy TINYINT, flag_root TINYINT, flagSubscribeNewsletter TINYINT, flagSubscribeNotifications TINYINT(1) NOT NULL, idOwner BIGINT, id_xt_container BIGINT, id_xt_main_address BIGINT, id_xt_user BIGINT NOT NULL, the_birthday DATE, the_company_name VARCHAR(255), the_confirmation_code VARCHAR(50), the_date_confirmation DATETIME, theDateExpiration DATETIME, the_date_last_access DATETIME, the_date_registration DATETIME, the_email VARCHAR(255), theEncryptedPassword VARCHAR(255), theEndpointArn VARCHAR(255), the_fax VARCHAR(50), the_fiscal_code VARCHAR(50), the_gender CHAR(1), theInheritance CHAR(5), the_job VARCHAR(50), theLanguageCode CHAR(3), theLastKnownSessionID VARCHAR(255), theMobile VARCHAR(50), the_modification_date DATETIME, the_name VARCHAR(255), theNotes TEXT, the_password VARCHAR(255), the_phone VARCHAR(50), thePlaceOfBirth VARCHAR(255), the_registration_date DATETIME, theSocialNetworkName VARCHAR(50), theSocialNetworkUID VARCHAR(50), the_surname VARCHAR(255), theTitle VARCHAR(50), theUID VARCHAR(255), the_username VARCHAR(255), the_vat VARCHAR(50));

CREATE TABLE XTUserXTModule (xTModuleIdXTModule INT NOT NULL, xTUserIdXTUser BIGINT NOT NULL);

CREATE TABLE xt_users_group (flagAndQualifier tinyint, flag_browsing TINYINT, flag_comment TINYINT, flag_editng TINYINT, flag_reading TINYINT, flagSmartGroup tinyint, idXTPricingClass INT, id_xt_users_group BIGINT NOT NULL, the_name VARCHAR(100));

CREATE TABLE XTUsersGroupQualifier (idXTUsersGroup BIGINT, idXTUsersGroupQualifier INT NOT NULL, theJavaClass VARCHAR(255), theKey VARCHAR(255), theOperator VARCHAR(50), theValue VARCHAR(255));

CREATE TABLE XTWebServiceInfo (idXTWebServiceInfo INT NOT NULL, theAPIKey VARCHAR(255), theContainerClasses VARCHAR(500), thePassword VARCHAR(100), thePrivateKey VARCHAR(255), theServiceName VARCHAR(100), theServiceType VARCHAR(100), theServiceURL VARCHAR(255), theSnippet VARCHAR(1500), theUsername VARCHAR(100));

CREATE TABLE __XTDBVERS (id INT NOT NULL, theDate DATE, theVers INT NOT NULL);

CREATE TABLE EO_PK_TABLE (NAME CHAR(40) PRIMARY KEY, PK INT);

ALTER TABLE JTXTContainerXTContainer ADD PRIMARY KEY (idXTContainer, idXTOtherContainer);

ALTER TABLE JTXTContainerXTWebServiceInfo ADD PRIMARY KEY (xTContainerIdXTContainer, xTWebServiceInfoIdXTWebServiceInfo);

ALTER TABLE JTXTPromoXTContainer ADD PRIMARY KEY (xTContainerIdXTContainer, xTPromoIdXTPromo);

ALTER TABLE JTXTPromoXTDeliveryMethod ADD PRIMARY KEY (xTDeliveryMethodIdXTDeliveryMethod, xTPromoIdXTPromo);

ALTER TABLE JTXTPromoXTPaymentMethod ADD PRIMARY KEY (xTPaymentMethodIdXTPaymentMethod, xTPromoIdXTPromo);

ALTER TABLE JTXTPromoXTProduct ADD PRIMARY KEY (xTProductIdXTProduct, xTPromoIdXTPromo);

ALTER TABLE JTXTPromoXTUsersGroup ADD PRIMARY KEY (xTPromoIdXTPromo, xTUsersGroupIdXTUsersGroup);

ALTER TABLE JTXTUserXTPaymentMethod ADD PRIMARY KEY (xTPaymentMethodIdXTPaymentMethod, xTUserIdXTUser);

ALTER TABLE JTXTUsersGroupXTPaymentMethod ADD PRIMARY KEY (xTPaymentMethodIdXTPaymentMethod, xTUsersGroupIdXTUsersGroup);

ALTER TABLE JT_XTContainerXTAdminUsersGroup ADD PRIMARY KEY (xTContainerIdXTContainer, xTUsersGroupIdXTUsersGroup);

ALTER TABLE JT_XTContainerXTMetaDataPreset ADD PRIMARY KEY (xTContainerIdXTContainer, xTMetaDataPresetIdXTMetaDataPreset);

ALTER TABLE JT_XTContainerXTUser ADD PRIMARY KEY (xTContainerIdXTContainer, xTUserIdXTUser);

ALTER TABLE _xt_container_xt_users_group ADD PRIMARY KEY (id_xt_container, id_xt_users_group);

ALTER TABLE JT_XTMetaDataPresetXTMetaDataModel ADD PRIMARY KEY (xTMetaDataModelIdXTMetaDataModel, xTMetaDataPresetIdXTMetaDataPreset);

ALTER TABLE JT_XTProductXTDeliveryMethod ADD PRIMARY KEY (xtDeliveryMethodIdXTDeliveryMethod, xtProductIdXTProduct);

ALTER TABLE _xt_product_xt_related_product ADD PRIMARY KEY (id_xt_product, id_xt_related_product);

ALTER TABLE JT_XTSMSCampaignXTUsersGroup ADD PRIMARY KEY (xtsmsCampaignId, xtUsersGroupIdXTUsersGroup);

ALTER TABLE _xt_user_xt_event ADD PRIMARY KEY (id_xt_event, id_xt_user);

ALTER TABLE _xt_user_xt_usersgroup ADD PRIMARY KEY (id_xt_user, id_xt_users_group);

ALTER TABLE localized_content ADD PRIMARY KEY (id_xt_localized_content);

ALTER TABLE localized_multimedia_content ADD PRIMARY KEY (id_xt_localized_multimedia_content);

ALTER TABLE localized_title ADD PRIMARY KEY (id_xt_localized_title);

ALTER TABLE PayPalRequest ADD PRIMARY KEY (id);

ALTER TABLE PayPalTxn ADD PRIMARY KEY (id);

ALTER TABLE VATRates ADD PRIMARY KEY (idCountry);

ALTER TABLE xt_address ADD PRIMARY KEY (id_xt_address);

ALTER TABLE XTBlogEntry ADD PRIMARY KEY (idXTBlogEntry);

ALTER TABLE XTComment ADD PRIMARY KEY (idXTComment);

ALTER TABLE XTContact ADD PRIMARY KEY (idXTContact);

ALTER TABLE xt_container ADD PRIMARY KEY (id_xt_container);

ALTER TABLE XTContainerAction ADD PRIMARY KEY (idXTContainerAction);

ALTER TABLE XTContainerGroupPrivilege ADD PRIMARY KEY (idXTContainerGroupPrivilege);

ALTER TABLE XTContainerName ADD PRIMARY KEY (idXTContainerName);

ALTER TABLE XTContainerWebService ADD PRIMARY KEY (idXTContainerWebService);

ALTER TABLE XTCounter ADD PRIMARY KEY (idXTCounter);

ALTER TABLE XTDeliveryMethod ADD PRIMARY KEY (id_xt_delivery_method);

ALTER TABLE xt_delivery_pricing ADD PRIMARY KEY (id_delivery_pricing);

ALTER TABLE XTDiscountCoupon ADD PRIMARY KEY (idXTDiscountCoupon);

ALTER TABLE xt_event ADD PRIMARY KEY (id_xt_event);

ALTER TABLE XTFormSubmission ADD PRIMARY KEY (id);

ALTER TABLE XTFtpItem ADD PRIMARY KEY (id);

ALTER TABLE XTInvoice ADD PRIMARY KEY (id, theYear);

ALTER TABLE XTInvoiceNumerator ADD PRIMARY KEY (theType, theYear);

ALTER TABLE XTInvoiceRow ADD PRIMARY KEY (id);

ALTER TABLE XTLogger ADD PRIMARY KEY (idXTLogger);

ALTER TABLE XTMetaData ADD PRIMARY KEY (idXTMetaData);

ALTER TABLE XTMetaDataModel ADD PRIMARY KEY (idXTMetaDataModel);

ALTER TABLE XTMetaDataPreset ADD PRIMARY KEY (idXTMetaDataPreset);

ALTER TABLE XTModule ADD PRIMARY KEY (idXTModule);

ALTER TABLE XTNewsletterLog ADD PRIMARY KEY (idXTNewsletterLog);

ALTER TABLE XTOrder ADD PRIMARY KEY (id_xt_order);

ALTER TABLE XTOrderLine ADD PRIMARY KEY (idXTOrderLine);

ALTER TABLE XTPageCache ADD PRIMARY KEY (theUri);

ALTER TABLE XTPaymentMethod ADD PRIMARY KEY (idXTPaymentMethod);

ALTER TABLE xt_pricing_class ADD PRIMARY KEY (id_xt_pricing_class);

ALTER TABLE xt_product ADD PRIMARY KEY (id_xt_product);

ALTER TABLE XTProductAccessory ADD PRIMARY KEY (id);

ALTER TABLE xt_product_pricing ADD PRIMARY KEY (id_xt_product_pricing);

ALTER TABLE XTProductStock ADD PRIMARY KEY (idXTProductStock);

ALTER TABLE XTPromo ADD PRIMARY KEY (idXTPromo);

ALTER TABLE XTProperty ADD PRIMARY KEY (idProperty);

ALTER TABLE XTSMSCampaign ADD PRIMARY KEY (id);

ALTER TABLE XTSMSCampaignLog ADD PRIMARY KEY (id);

ALTER TABLE XTStringLocalizable ADD PRIMARY KEY (id);

ALTER TABLE XTTag ADD PRIMARY KEY (id);

ALTER TABLE XTUIAction ADD PRIMARY KEY (idXTAction);

ALTER TABLE XTUIPrivilege ADD PRIMARY KEY (idXTUIPrivilege);

ALTER TABLE XTUIStore ADD PRIMARY KEY (idXTUIStore);

ALTER TABLE XTUITarget ADD PRIMARY KEY (idXTTarget);

ALTER TABLE XTUser ADD PRIMARY KEY (id_xt_user);

ALTER TABLE XTUserXTModule ADD PRIMARY KEY (xTModuleIdXTModule, xTUserIdXTUser);

ALTER TABLE xt_users_group ADD PRIMARY KEY (id_xt_users_group);

ALTER TABLE XTUsersGroupQualifier ADD PRIMARY KEY (idXTUsersGroupQualifier);

ALTER TABLE XTWebServiceInfo ADD PRIMARY KEY (idXTWebServiceInfo);

ALTER TABLE __XTDBVERS ADD PRIMARY KEY (id);

