table('agent_customer_log', ['comment' => '全民经纪人客户到访记录表', 'engine'=>'InnoDB']); $table->addColumn('agent_id', 'integer',array('limit' => 11, 'comment'=>'经纪人id')) ->addColumn(Column::tinyInteger('type')->setComment('来源类型')->setDefault(null)) ->addColumn(Column::tinyInteger('agent_type')->setComment('经济人类型')->setDefault(null)) ->addColumn('addtime', 'integer',array('limit' => 11,'comment'=>'添加时间','null' => true)) ->addColumn('typename', 'string', array('limit' => 20,'null' => true, 'comment'=>'来源名称')) ->addColumn('customer_id', 'integer', array('limit' => 11,'null' => true, 'comment'=>'来源客户id')) ->addColumn(Column::tinyInteger('status')->setComment('记录状态')->setNull(true)) ->create(); } }