table('wework_bind_ticket', ['comment' => '企业绑定过程票据记录', 'engine'=>'InnoDB']); $table->addColumn('wx_cid', 'integer', array('limit' => 10, 'comment'=>'企业微信数据ID')) ->addColumn('wx_uid', 'integer', array('limit' => 10, 'comment'=>'企业微信用户数据ID')) ->addColumn('phone', 'string', array('limit' => 30, 'comment'=>'操作手机号')) ->addColumn('ticket', 'string', array('limit' => 50,'comment'=>'票据')) ->addColumn(Column::tinyInteger('status')->setComment('票据使用状态')) ->addColumn('createtime', 'timestamp', array('default'=> 'CURRENT_TIMESTAMP', 'comment'=>'票据创建时间')) ->create(); } }