40 lines
921 B
PHP
40 lines
921 B
PHP
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
class CreateNotifikasiTable extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('notifikasi', function (Blueprint $table) {
|
|
$table->uuid('id')->primary();
|
|
$table->string("role_from",30);
|
|
$table->string("role_to",30);
|
|
$table->uuid('userid');
|
|
$table->text("message");
|
|
$table->text("url");
|
|
$table->boolean("is_read");
|
|
$table->string("jenis", 50);
|
|
$table->string("id_unik",50);
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::dropIfExists('notifikasi');
|
|
}
|
|
}
|