src/Packages/Notifications/database/migrations/2016_04_14_180036_create_notifications_table.php
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateNotificationsTable extends Migration
{
/**
* Run the migrations.
*/
public function up()
{
Schema::create('notifications', function (Blueprint $table) {
$table->increments('id');
$table->integer('user_id');
$table->string('flag');
$table->string('uuid');
$table->string('title');
$table->text('details')->nullable();
$table->boolean('is_read')->default(false);
$table->softDeletes();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down()
{
Schema::drop('notifications');
}
}