table('customer_state_check', ['comment' => '客户状态检查表']) ->addColumn('customer_id', 'integer', ['comment' => '客户ID']) ->addColumn('employee_id', 'integer', ['comment' => '员工id']) ->addColumn('root_id', 'integer', ['comment' => '企业id']) ->addColumn('org_id', 'integer', ['comment' => '部门id']) ->addColumn('state', 'boolean', ['comment' => '状态']) ->addColumn('check_state', 'boolean', ['comment' => '检查状态', 'default'=>0]) ->addColumn('check_time', 'datetime', ['comment' => '检查时间', 'null'=>true]) ->addColumn('check_employee_id', 'integer', ['comment' => '检查人', 'null'=>true]) ->addColumn('addtime', 'timestamp', ['comment' => '添加时间', 'default'=>'CURRENT_TIMESTAMP']) ->create(); } }