shareit/database/migrations/2018_09_10_233609_users_per_item.php

34 lines
681 B
PHP

<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class UsersPerItem extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('users_per_item', function (Blueprint $table) {
$table->increments('id');
$table->integer('productID');
$table->integer('userID');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('users_per_item');
}
}