unioil-loyalty-app/database/migrations/2019_04_08_114641_payments_...

36 lines
784 B
PHP
Executable File

<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class PaymentsItems extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('payments_items', function (Blueprint $table) {
$table->increments('p_item_id');
$table->integer('payment_id');
$table->string('item_name', 50);
$table->integer('quantity');
$table->double('price');
$table->datetime('created_at');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('payments_items');
}
}