|
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
|
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
|
|
|
|
|
|
return new class extends Migration {
|
|
|
|
|
/**
|
|
|
|
|
* Run the migrations.
|
|
|
|
|
*
|
|
|
|
|
* @return void
|
|
|
|
|
*/
|
|
|
|
|
public function up()
|
|
|
|
|
{
|
|
|
|
|
Schema::create('companies', function (Blueprint $table) {
|
|
|
|
|
$table->id();
|
|
|
|
|
$table->integer('admin_id')->nullable();
|
|
|
|
|
$table->integer('department_id')->nullable();
|
|
|
|
|
// 企业名字
|
|
|
|
|
$table->string('company_name')->nullable()->comment('企业名字');
|
|
|
|
|
// 行业类型
|
|
|
|
|
$table->string('company_attribute')->nullable()->comment('行业类型');
|
|
|
|
|
// 标签
|
|
|
|
|
$table->string('company_tag')->nullable()->comment('标签');
|
|
|
|
|
// 企业规模
|
|
|
|
|
$table->string('company_scale')->nullable()->comment('企业规模');
|
|
|
|
|
// 成立时间
|
|
|
|
|
$table->date('company_date')->nullable()->comment('成立时间');
|
|
|
|
|
// 法人代表
|
|
|
|
|
$table->string('company_legal_representative')->nullable()->comment('法人代表');
|
|
|
|
|
// 管理平台
|
|
|
|
|
$table->string('management_platform')->nullable()->comment('管理平台');
|
|
|
|
|
// 项目经理
|
|
|
|
|
$table->string('project_manager')->nullable()->comment('项目经理');
|
|
|
|
|
$table->bigInteger('market_value')->nullable()->comment('市值');
|
|
|
|
|
$table->bigInteger('company_fund')->nullable()->comment('公司融资情况');
|
|
|
|
|
$table->bigInteger('valuation')->nullable()->comment('估值');
|
|
|
|
|
$table->string('company_address')->nullable()->comment('公司地址');
|
|
|
|
|
$table->string('company_area')->nullable()->comment('公司区域');
|
|
|
|
|
$table->string('company_city')->nullable()->comment('公司城市');
|
|
|
|
|
$table->string('company_province')->nullable()->comment('公司省份');
|
|
|
|
|
// 是否上市
|
|
|
|
|
$table->boolean('company_market')->nullable()->comment('公司性质-0未上市1已上市');
|
|
|
|
|
// 是否校友企业
|
|
|
|
|
$table->boolean('is_schoolmate')->nullable()->comment('是否校友企业-0非校友1校友');
|
|
|
|
|
$table->boolean('company_need_fund')->nullable()->comment('公司是否需要融资-0否1是');
|
|
|
|
|
// 股东信息
|
|
|
|
|
$table->string('company_shareholder')->nullable()->comment('股东信息');
|
|
|
|
|
// 经度
|
|
|
|
|
$table->string('company_longitude')->nullable()->comment('经度');
|
|
|
|
|
// 纬度
|
|
|
|
|
$table->string('company_latitude')->nullable()->comment('纬度');
|
|
|
|
|
|
|
|
|
|
$table->string('company_industry')->nullable()->comment('公司所属行业');
|
|
|
|
|
$table->text('company_introduce')->nullable()->comment('公司简介');
|
|
|
|
|
$table->string('company_other')->nullable()->comment('其他');
|
|
|
|
|
$table->text('company_product')->nullable()->comment('产品');
|
|
|
|
|
$table->string('overseas_experience')->nullable()->comment('海外经验');
|
|
|
|
|
$table->string('sales_volume')->nullable()->comment('销售额');
|
|
|
|
|
$table->timestamps();
|
|
|
|
|
$table->softDeletes();
|
|
|
|
|
|
|
|
|
|
// 业务范围
|
|
|
|
|
$table->string('business_scope')->nullable()->comment('业务范围');
|
|
|
|
|
// 联系邮箱
|
|
|
|
|
$table->string('contact_mail')->nullable()->comment('联系邮箱');
|
|
|
|
|
// 联系手机
|
|
|
|
|
$table->string('contact_phone')->nullable()->comment('联系手机');
|
|
|
|
|
// 统一社会代码
|
|
|
|
|
$table->string('credit_code')->nullable()->comment('统一社会代码');
|
|
|
|
|
// 企业id
|
|
|
|
|
$table->string('enterprise_id')->nullable()->comment('企业id');
|
|
|
|
|
// 是否境外
|
|
|
|
|
$table->tinyInteger('is_abroad')->nullable()->comment('是否境外');
|
|
|
|
|
// 是否元禾已投
|
|
|
|
|
$table->tinyInteger('is_yh_invested')->nullable()->comment('是否元禾已投');
|
|
|
|
|
// 企业logo
|
|
|
|
|
$table->string('logo')->nullable()->comment('企业logo');
|
|
|
|
|
// 注册金额
|
|
|
|
|
$table->string('regist_amount')->nullable()->comment('注册金额');
|
|
|
|
|
// 注册资本币种
|
|
|
|
|
$table->string('regist_capi_type')->nullable()->comment('注册资本币种');
|
|
|
|
|
// 企业状态
|
|
|
|
|
$table->string('status')->nullable()->comment('企业状态');
|
|
|
|
|
// 上市日期
|
|
|
|
|
$table->string('stock_date')->nullable()->comment('上市日期');
|
|
|
|
|
// 股票代码
|
|
|
|
|
$table->string('stock_number')->nullable()->comment('股票代码');
|
|
|
|
|
// 上市类型
|
|
|
|
|
$table->string('stock_type')->nullable()->comment('上市类型');
|
|
|
|
|
// 注册资本币种
|
|
|
|
|
$table->string('currency_type')->nullable()->comment('注册资本币种');
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Reverse the migrations.
|
|
|
|
|
*
|
|
|
|
|
* @return void
|
|
|
|
|
*/
|
|
|
|
|
public function down()
|
|
|
|
|
{
|
|
|
|
|
Schema::dropIfExists('companies');
|
|
|
|
|
}
|
|
|
|
|
};
|