table('statistics_setting')->setComment('线上巡店统计自定义'); $table->addColumn('root_id', 'integer', ['limit'=> 10, 'comment'=> '组织id', 'default'=> 0]) ->addColumn('employee_id', 'integer', ['limit'=> 10, 'comment'=> '员工id', 'default'=> 0]) ->addColumn('type', 'string', ['limit'=> 10, 'comment'=> '类别:1行为统计、2高层3、管理层4、客户统计列表5、总统计6、员工管理端', 'default'=> '']) ->addColumn('content', 'text', ['comment'=> '设置内容', 'null'=> true]) ->addColumn('addtime', 'timestamp', ['comment'=> '添加时间', 'default'=> 'CURRENT_TIMESTAMP']) ->create(); } }