Files
monica/database/migrations/2016_09_10_170122_create_notifications_table.php
T
2017-02-16 19:21:44 -05:00

38 lines
830 B
PHP

<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateNotificationsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('notifications', function (Blueprint $table) {
$table->increments('id');
$table->integer('account_id');
$table->integer('people_id');
$table->enum('for', ['reminder']);
$table->enum('how', ['email']);
$table->string('address');
$table->longText('content');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
}