table('agent', ['engine' => 'MyISAM', 'comment' => '代理商表']); $table->addColumn('language_id', 'integer', ['signed' => false, 'null' => false, 'comment' => '语言ID']) ->addColumn('corp_name', 'string', ['limit' => 64, 'null' => false, 'comment' => '公司名称']) ->addColumn('email', 'string', ['limit' => 128, 'null' => false, 'comment' => '邮箱']) ->addColumn('phone', 'string', ['limit' => 64, 'null' => false, 'comment' => '电话']) ->addColumn('referer_url', 'string', ['limit' => 255, 'null' => false, 'comment' => '来源URL']) ->addColumn('website_url', 'string', ['limit' => 255, 'null' => false, 'comment' => '网站URL']) ->addColumn('business_type', 'string', ['limit' => 128, 'null' => false, 'comment' => '业务类型']) ->addColumn('enterprise_size', 'string', ['limit' => 128, 'null' => false, 'comment' => '企业规模']) ->addColumn('address', 'string', ['limit' => 255, 'null' => true, 'default' => null, 'comment' => '地址']) ->addColumn('message', 'text', ['null' => true, 'default' => null, 'comment' => '留言']) ->addColumn('ip', 'string', ['limit' => 64, 'null' => false, 'comment' => 'IP']) ->addColumn('created_at', 'timestamp', ['null' => false, 'default' => 'CURRENT_TIMESTAMP', 'comment' => '创建时间']) ->create(); } }