27 lines
717 B
PHP
27 lines
717 B
PHP
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
return new class extends Migration
|
|
{
|
|
public function up(): void
|
|
{
|
|
Schema::create('vot', function (Blueprint $table) {
|
|
$table->id();
|
|
$table->foreignId('jabatan_id')->nullable()->constrained('jabatan')->nullOnDelete();
|
|
$table->string('kod')->unique();
|
|
$table->string('nama');
|
|
$table->text('penerangan')->nullable();
|
|
$table->boolean('status')->default(true);
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
|
|
public function down(): void
|
|
{
|
|
Schema::dropIfExists('vot');
|
|
}
|
|
};
|