40 lines
967 B
PHP
40 lines
967 B
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Schema;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
class Ratings extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('ratings', function (Blueprint $table) {
|
|
$table->increments('rating_id');
|
|
$table->uuid('rating_uuid')->unique();
|
|
$table->integer('lcard_id');
|
|
$table->integer('station_id');
|
|
$table->integer('payment_id');
|
|
$table->integer('rate');
|
|
$table->timestamps();
|
|
$table->integer('created_by')->default(0);
|
|
$table->integer('updated_by')->default(0);
|
|
$table->boolean('is_active')->default(1);
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::dropIfExists('ratings');
|
|
}
|
|
}
|