36 lines
794 B
PHP
36 lines
794 B
PHP
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
class CreateRemindersTable extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('reminders', function (Blueprint $table) {
|
|
$table->id();
|
|
$table->string('judul');
|
|
$table->text('deskripsi');
|
|
$table->date('tanggal_reminder');
|
|
$table->foreignId('id_desa')->nullable()->constrained('data_desa', 'id');
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::dropIfExists('reminders');
|
|
}
|
|
}
|