startSetup(); $this->run(" DROP TABLE IF EXISTS {$this->getTable('auctaneshipstation_user')}; CREATE TABLE {$this->getTable('auctaneshipstation_user')} ( `entity_id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, `store_id` SMALLINT(5) NOT NULL DEFAULT 0 COMMENT 'Store 0 is admin', `admin_user_id` MEDIUMINT(9) UNSIGNED, `request_url` VARCHAR(255), `request_username` VARCHAR(255), `auth_token_enc` VARCHAR(255), `auth_url` VARCHAR(255), PRIMARY KEY (`entity_id`), UNIQUE KEY (`admin_user_id`, `store_id`) -- CONSTRAINT `FK_shipstation_core_store_id` FOREIGN KEY (`store_id`) -- REFERENCES {$this->getTable('core_store')} (`store_id`) -- ON DELETE CASCADE ON UPDATE CASCADE, -- CONSTRAINT `FK_shipstation_admin_user_id` FOREIGN KEY (`admin_user_id`) -- REFERENCES {$this->getTable('admin_user')} (`user_id`) -- ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8; "); $this->endSetup();