public function actionCreate()
    {
        $this->output->startPrintf('Process');
        $tableOptions = $this->getOptions($this->table);
        $filterOptions = $this->getOptions($this->filter);

        $createTableInfo = Yii::t('dump', 'Create Table');
        $insertDataInfo = Yii::t('dump', 'Insert Data Of Table');
        $addKeyInfo = Yii::t('dump', 'Add Key Of Table');
        $addFKInfo = Yii::t('dump', 'Add Foreign Key Of Table');

        foreach ($this->db->getSchema()->getTableSchemas() as $table) {
            // filter some table  -filter=...  -table=...
            if ($this->filterTable($table->name, $filterOptions, $tableOptions)) {
                continue;
            }

            switch ($this->type) {
                case '0':
                    $this->printf($table, 'table', $createTableInfo);
                    break;

                case '1':
                    $this->printf($table, 'tableData', $insertDataInfo);
                    break;

                case '2':
                    $this->printf($table, 'key', $addKeyInfo);
                    break;

                case '3':
                    $this->printf($table, 'FK', $addFKInfo); // foreign key
                    break;

                default:
                    $this->printf($table, 'table', $createTableInfo);
                    $this->printf($table, 'tableData', $insertDataInfo);
                    $this->printf($table, 'key', $addKeyInfo);
                    $this->printf($table, 'FK', $addFKInfo); // foreign key
                    break;
            }

        }

        $this->output->conclusion($this->generations, $this->filters);
        $this->output->endPrintf('Process');
        return 0;
    }