38 lines
905 B
PHP
Executable File
38 lines
905 B
PHP
Executable File
<?php
|
|
|
|
use Illuminate\Support\Facades\Schema;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
class StationFuelPrices extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('station_fuel_prices', function (Blueprint $table) {
|
|
$table->increments('fuel_price_id');
|
|
$table->uuid('fuel_price_uuid')->unique();
|
|
$table->integer('station_id');
|
|
$table->string('fuel_code', 50);
|
|
$table->string('fuel_name', 50);
|
|
$table->double('price');
|
|
$table->timestamps();
|
|
$table->boolean('is_active')->default(1);
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::dropIfExists('station_fuel_prices');
|
|
}
|
|
}
|