Files
apigizibalita/database/migrations/2023_07_05_155714_create_reminders_table.php
2026-06-07 19:10:00 +07:00

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');
}
}