You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.6 KiB

5 months ago
<?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_type')->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->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('companies');
}
};