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.
user_center/database/migrations/2021_02_04_035947_create_ca...

53 lines
2.4 KiB

4 years ago
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateCarIntoTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('uc_car_info_t', function (Blueprint $table) {
$table->id();
$table->string('car_no',50)->unique()->comment('车牌号');
$table->string('frame_no',100)->unique()->comment('车架号');
$table->string('engine_no',50)->default('')->comment('发动机号');
$table->string('factory_model',50)->default('')->comment('厂牌型号');
$table->string('car_used_type',100)->default('')->comment('车辆使用性质');
$table->string('car_man',100)->default('')->comment('车主姓名');
$table->string('purchase_price',50)->default('')->comment('新车购置价');
$table->string('register_date',50)->default('')->comment('初登日期');
$table->string('seat_count',10)->default('')->comment('座位数');
$table->tinyInteger('insurance_times')->default(0)->comment('投保次数');
$table->tinyInteger('insurance_serial_times')->default(0)->comment('连续投保次数');
$table->tinyInteger('repair_times')->default(0)->comment('维修次数');
$table->tinyInteger('insurance_repair_times')->default(0)->comment('回修次数');
$table->string('last_insurance_company',10)->default('')->comment('上年承保公司');
$table->string('last_insurance_type',10)->default('')->comment('上年承保险种');
$table->tinyInteger('last_insurance_rate')->default(100)->comment('上年保险折扣率');
$table->string('last_insurance_salesman',10)->default('')->comment('上年保险业务');
$table->string('last_insurance_date',10)->default('')->comment('上年正本日期');
$table->string('force_expire_date',10)->default('')->comment('交强到期日期');
$table->string('business_expire_date',10)->default('')->comment('商业到期日期');
$table->tinyInteger('status')->default(1)->comment('数据状态');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('uc_car_info_t');
}
}