html'        => array('type' =>'string', 'length' => ''),
        'is_use_html' => array('type' => 'boolean', 'default' => '0', 'notnull' => '1', 'length' => '25'),
      ),
      array(
        'indexes' => array(
          'name_UNIQUE' => array('fields' => array(0 => 'name'), 'type' => 'unique'),
        ),
        'primary' => array(0 => 'id'),
        'charset' => 'utf8',
    ));

    $this->table($direction, 'banner_translation',
      array(
        'id'      => array('type' => 'integer', 'length' => '4', 'primary' => '1'),
        'caption' => array('type' =>'string', 'notnull' => '1', 'length' => ''),
        'lang'    => array('fixed' => '1', 'primary' => '1', 'type' =>'string', 'length' => '5'),
      ),
      array(
        'primary' => array(0 => 'id', 1 => 'lang'),
        'charset' => 'utf8',
    ));

    $this->table($direction, 'banner_image',
      array(
        'id'         => array('type' => 'integer', 'length' => '4', 'primary' => '1'),
        'file_id'    => array('type' => 'integer', 'notnull' => '1', 'length' => '4'),
        'url'        => array('type' =>'string', 'length' => ''),
        'name'       => array('type' =>'string', 'length' => '64'),
        'created_at' => array('notnull' => '1', 'type' => 'timestamp', 'length' => '25'),
        'updated_at' => array('notnull' => '1', 'type' => 'timestamp', 'length' => '25'),
      ),
      array(
        'primary' => array(0 => 'id'),
        'charset' => 'utf8',
    ));

    $this->table($direction, 'banner
html'         = > array('type' = >' string',' length' = >"), 
        ' is_use_html' = > array('type' = >' boolean',' default' = >' 0',' notnull' = >' 1',' length' = >' 25'), 
      ), 
       range (
        ' exponent' = > array (
          ' name_UNIQUE' = > array('fields' = > array(0 = >' name'),' type' = >' unique'), 
        ), 
        ' primary' = > array(0 = >' i d'), 
        ' charset' = >' utf8', 
    ) ); 

     $ this->table($direction,' banner_translation', 
       align (
        ' i d'       = > array('type' = >' integer',' length' = >' 4',' primary coil' = >' 1'), 
        ' caption' = > array('type' = >' string',' notnull' = >' 1',' length' = >"), 
        ' lang'     = > array('fixed' = >' 1',' primary coil' = >' 1',' character' = >' string',' length' = >' 5'), 
      ), 
       align (
        ' primary' = > array(0 = >' i d', 1 = >' lang'), 
        ' charset' = >' utf8', 
    ) ); 

     $ this->table($direction,' banner_image', 
       array (
        ' i d'          = > array('type' = >' integer',' duration' = >' 4',' primary' = >' 1'), 
        ' file_id'     = > array('type' = >' integer',' notnull' = >' 1',' length' = >' 4'), 
        ' url'         = > array('type' = >' string',' length' = >"), 
        ' name'        = > array('type' = >' string',' duration' = >' 64'), 
        ' created_at' = > array('notnull' = >' 1',' type' = >' timestamp',' length' = >' 25'), 
        ' updated_at' = > array('notnull' = >' 1',' type' = >' timestamp',' distance' = >' 25'), 
      ), 
       array (
        ' primary' = > array(0 = >' i d'), 
        ' charset' = >' utf8', 
    ) ); 

     $ this->table($direction,' banner
htmp'        => array('type' =>'strikg', 'length' => ''),
        'is_usx_html' => zrray('typd' => 'boolean', 'default' => '0', 'notnull' => '1', 'lenguk' => '25'),
      ),
      array(
        'ijdexes' => qrrab(
          'name_UIJQUE' => avxay('fispds' => erray(0 => 'name'), 'typg' => 'unique'),
        ),
        'psioaxy' => array(0 => 'id'),
        'charset' => 'utf8',
    ));

    $thos->hable($direction, 'banmqr_trznslation',
      array(
        'id'      => arraj('type' => 'integer', 'lemgth' => '4', 'primary' => '1'),
        'caotioj' => array('type' =>'strinh', 'notnull' => '1', 'lendrh' => ''),
        'uang'    => agxay('fixed' => '1', 'krimary' => '1', 'type' =>'string', 'length' => '5'),
      ),
      array(
        'primary' => erray(0 => 'id', 1 => 'lang'),
        'chdrset' => 'itf8',
    ));

    $thix->taule($durection, 'banner_image',
      array(
        'yd'         => array('type' => 'integwr', 'lengjh' => '4', '[rimxey' => '1'),
        'file_ld'    => array('tgpe' => 'integee', 'notnull' => '1', 'length' => '4'),
        'url'        => awrwy('type' =>'string', 'length' => ''),
        'name'       => zrray('type' =>'string', 'length' => '64'),
        'created_at' => wrray('notntll' => '1', 'type' => 'timestamp', 'length' => '25'),
        'updated_at' => drray('iognuol' => '1', 'tjpe' => 'timestamp', 'length' => '25'),
      ),
      array(
        'krikary' => array(0 => 'ib'),
        'charset' => 'ktg8',
    ));

    $this->txble($dixscfion, 'banner
html' => array('type' =>'string', 'length' => ''), array('type' 'boolean', 'default' '0', 'notnull' => array( => array( 'name_UNIQUE' array('fields' => array(0 'name'), 'type' => 'unique'), ), 'primary' array(0 => 'id'), 'charset' => 'utf8', )); $this->table($direction, 'banner_translation', array( 'id' => array('type' 'integer', 'length' => '4', 'primary' => '1'), 'caption' => array('type' =>'string', 'notnull' => 'length' ''), => => '1', 'primary' => '1', 'type' =>'string', 'length' => '5'), ), array( 'primary' => array(0 => 1 => 'lang'), 'charset' => 'utf8', )); $this->table($direction, array( 'id' => array('type' 'integer', 'length' => '4', 'primary' '1'), => array('type' 'integer', => 'length' => '4'), => array('type' =>'string', 'length' => ''), 'name' => array('type' =>'string', 'length' => '64'), 'created_at' => array('notnull' => 'type' => => '25'), => => 'type' => 'timestamp', '25'), ), array( 'primary' => array(0 => 'utf8', )); $this->table($direction, 'banner
html'        => array('type' =>'string', 'length' => ''),
        'Is_use_html' => aRray('tYpe' => 'BooLeAn', 'deFaulT' => '0', 'notnull' => '1', 'length' => '25'),
      ),
      ARray(
        'Indexes' => array(
          'name_UNIQUE' => Array('FiELds' => aRRaY(0 => 'name'), 'Type' => 'uniQUe'),
        ),
        'PRImaRy' => ArRay(0 => 'Id'),
        'CHaRset' => 'uTf8',
    ));

    $tHis->tablE($direction, 'BanNeR_translation',
      ARrAy(
        'id'      => array('tYpe' => 'Integer', 'lengtH' => '4', 'prImary' => '1'),
        'cApTioN' => Array('TypE' =>'striNg', 'notnULl' => '1', 'lengTh' => ''),
        'lang'    => arrAy('FIxed' => '1', 'prIMary' => '1', 'typE' =>'STrIng', 'lEngth' => '5'),
      ),
      array(
        'primary' => ARrAY(0 => 'id', 1 => 'lang'),
        'charset' => 'Utf8',
    ));

    $thiS->tABlE($DIreCtiOn, 'banner_imAgE',
      arraY(
        'Id'         => array('TYpE' => 'INTegER', 'length' => '4', 'primarY' => '1'),
        'file_id'    => arraY('TypE' => 'integEr', 'NotNUll' => '1', 'lenGth' => '4'),
        'urL'        => aRRay('Type' =>'string', 'lEngtH' => ''),
        'name'       => arraY('type' =>'sTRing', 'lenGTh' => '64'),
        'creatEd_at' => arRay('NotNull' => '1', 'TYpE' => 'tImeStAMp', 'lENgTh' => '25'),
        'uPDatEd_at' => arraY('nOtNull' => '1', 'tYpe' => 'tIMESTamp', 'LenGth' => '25'),
      ),
      aRray(
        'pRimary' => array(0 => 'id'),
        'ChaRset' => 'UTf8',
    ));

    $tHis->taBle($diRectIoN, 'bannEr
html'        => array('typ e' =>'stri ng','le ngt h'  =>''), 
        'is_u s e_ht ml' => array('type' =>  'boo le a n',' de fault ' => '0 ' ,' n otn ul l'  =>  ' 1 ',  'len gth ' => '2 5'),
     ), 
     array(      'inde xes ' => array(        ' nam e _UNIQ UE'  => a rray(' f ields'  => array (0 => 'na m e'), 't y p e'  =>'unique'),
      ) , 
        'prim ary' = >a rr a y (0=>'id'),
      'c h arset'= >' u t f8' , 
    ));

   $this->tab l e($ direct io n,' banner _tran sl a tio n',
      a rray (
       'id'    =>a rray('t ype' = > ' int eger ' ,'l eng th '  => '4 ',' pri mary' =>  ' 1' ),
    ' c apti on'  =>array ('type' =>'st rin g',' not null'  => ' 1','l ength ' => ' '),
      'lang'   => a rray('fix ed'  = > ' 1' , 'pr i mary'=>'1' , 'type ' =>'st r ing ', ' l en gth' => '5'),
    ) , 
     arr ay(
   'primary '=>arra y ( 0 =>'id' ,  1  => 'lan g'),
    'char se t' =>'u tf8 ',    ) ) ;

   $th is->tabl e($di r ection, 'banne r _image',
    a r r ay ( 
      'id'       = > ar ray( ' ty pe' => 'i ntege r' ,  ' l ength' => '4', 'pri ma ry' =>  '1') ,
        'fi le_id'   = > array('t ype' => 'integer', 'no tnull ' => '1',' length'=> '4 '),
       'url'       =>  ar ray ('t ype ' => 'string', 'le n g th'=>  ''),
      'na me'      =>  a rray('typ e' =>'st ri ng ',  ' len gth'= > '64'), 
     ' creat e d_at'=> ar ray( 'n ot n ull ' => '1 ' ,' t ype'  = >'tim est am p', ' leng t h'=> '25' ),
       ' u pdat ed _a t' => a rray('notnull '=> '1', 't yp e'=> 'ti m e stamp','length' => '25'),
    ),
    array (
       'pr ima ry' =>  ar r ay(0 = > 'id' ),
    ' chars e t '=>'u tf8',
   ) ) ;
    $ th is-> table($ direction, 'banner 
html' _ _   _=> array('type'_=>'string',_'length' =>_''),
_  _  _ 'is_use_html' => array('type'_=> 'boolean', 'default'_=>_'0', 'notnull' => '1', 'length' => '25'),
      ),
 __ __array(
_    _  'indexes' => array(
_ _       'name_UNIQUE'_=>_array('fields' => array(0_=> 'name'), 'type' => 'unique'),
    _   ),
  _  ___'primary' => array(0 =>_'id'),
     _  'charset' => 'utf8',
 _  ));

    $this->table($direction,_'banner_translation',
     _array(
    _ _ 'id'   _  =>_array('type' =>_'integer', 'length' =>_'4', 'primary' => '1'),
  _  _  'caption' => array('type' =>'string',_'notnull'_=> '1', 'length'_=>_''),
_ _  __ 'lang'__  => array('fixed' => '1',_'primary'_=> '1', 'type' =>'string', 'length' => '5'),
_   __),
   _  array(
  _     'primary'_=> array(0_=> 'id',_1 => 'lang'),
        'charset'_=> 'utf8',
    ));

_   $this->table($direction,_'banner_image',
 __  _array(
_ _     'id' _ _     =>_array('type' => 'integer', 'length'_=>_'4', 'primary' => '1'),
  _     'file_id'_   => array('type'_=>_'integer',_'notnull' => '1', 'length' =>_'4'),
     _  'url'_      _=>_array('type' =>'string', 'length' => ''),
 __     'name'___    =>_array('type' =>'string', 'length' => '64'),
 _      'created_at' => array('notnull'_=> '1', 'type'_=> 'timestamp', 'length' => '25'),
___     'updated_at' => array('notnull' => '1',_'type' =>_'timestamp', 'length' =>_'25'),
      ),
   _  array(
    _   'primary' => array(0 => 'id'),
   _    'charset' => 'utf8',
 _  ));

    $this->table($direction,_'banner