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.
46 lines
1.9 KiB
46 lines
1.9 KiB
4 years ago
|
<?php
|
||
|
|
||
|
use Illuminate\Database\Migrations\Migration;
|
||
|
use Illuminate\Database\Schema\Blueprint;
|
||
|
use Illuminate\Support\Facades\Schema;
|
||
|
|
||
|
class CreateCarSeriesTable extends Migration
|
||
|
{
|
||
|
/**
|
||
|
* Run the migrations.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function up()
|
||
|
{
|
||
|
Schema::create('uc_car_series_t', function (Blueprint $table) {
|
||
|
$table->id();
|
||
|
$table->integer('car_sub_brand_id')->comment('厂家ID');
|
||
|
$table->string('name', 100)->comment('名称');
|
||
|
$table->string('series', 50)->default('')->comment('系列');
|
||
|
$table->string('level', 50)->default('')->comment('等级');
|
||
|
$table->decimal('externalPanelPrice', 10,2)->default(0)->comment('钣金外工时费');
|
||
|
$table->decimal('internalPanelPrice', 10,2)->default(0)->comment('钣金内工时费');
|
||
|
$table->decimal('externalPaintPrice', 10,2)->default(0)->comment('喷漆外工时费');
|
||
|
$table->decimal('internalPaintPrice', 10,2)->default(0)->comment('喷漆内工时费');
|
||
|
$table->decimal('externalUnderPrice', 10,2)->default(0)->comment('中涂外工时费');
|
||
|
$table->decimal('internalUnderPrice', 10,2)->default(0)->comment('中涂内工时费');
|
||
|
$table->decimal('externalPolishPrice', 10,2)->default(0)->comment('美容外工时费');
|
||
|
$table->decimal('internalPolishPrice', 10,2)->default(0)->comment('美容内工时费');
|
||
|
$table->decimal('externalRepairPrice', 10,2)->default(0)->comment('机电外工时费');
|
||
|
$table->decimal('internalRepairPrice', 10,2)->default(0)->comment('机电内工时费');
|
||
|
$table->decimal('externalOutreachPrice', 10,2)->default(0)->comment('外联工时费');
|
||
|
});
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Reverse the migrations.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function down()
|
||
|
{
|
||
|
Schema::dropIfExists('uc_car_series_t');
|
||
|
}
|
||
|
}
|