table('customer_extension', ['comment' => '员工pc端推广明细表', 'engine'=>'InnoDB']); $table->addColumn('addtime', 'date',array('comment'=>'投放日期')) ->addColumn(Column::decimal('money',10,2)->setComment('推广费用')->setDefault(0)) ->addColumn('show', 'integer', array('default'=> '0', 'comment'=>'展现次数')) ->addColumn('click', 'integer', array('default'=> '0', 'comment'=>'点击次数')) ->addColumn('root_id', 'integer', array('default'=> '0', 'comment'=>'所属企业')) ->addColumn('employee_id', 'integer', array('default'=> '0', 'comment'=>'员工id')) ->addColumn('org_id', 'integer', array('default'=> '0', 'comment'=>'所属部门id')) ->addColumn('source_id', 'integer', array('default'=> '0', 'comment'=>'来源id')) ->create(); } }