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.
38 lines
1.0 KiB
38 lines
1.0 KiB
4 years ago
|
<?php
|
||
|
|
||
|
use Illuminate\Database\Migrations\Migration;
|
||
|
use Illuminate\Database\Schema\Blueprint;
|
||
|
use Illuminate\Support\Facades\Schema;
|
||
|
|
||
|
class CreateCarManTable extends Migration
|
||
|
{
|
||
|
/**
|
||
|
* Run the migrations.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function up()
|
||
|
{
|
||
|
Schema::create('uc_car_man_t', function (Blueprint $table) {
|
||
|
$table->id();
|
||
|
$table->bigInteger('car_id')->comment('车辆ID');
|
||
|
$table->tinyInteger('type')->default(1)->comment('联系人类型: 1 车主 2 被保险人 3 保险联系人');
|
||
|
$table->string('name', 20)->comment('姓名');
|
||
|
$table->string('phone',20)->comment('手机号');
|
||
|
$table->tinyInteger('id_card_type')->default(1)->comment('证件类型');
|
||
|
$table->string('id_card', 20)->comment('证件号');
|
||
|
$table->timestamps();
|
||
|
});
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Reverse the migrations.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function down()
|
||
|
{
|
||
|
Schema::dropIfExists('uc_car_man_t');
|
||
|
}
|
||
|
}
|