Initial commit - lms-v2 + CLAUDE.md
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
<?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('sops', function (Blueprint $table) {
|
||||
$table->id(); // 1. id sop
|
||||
$table->string('title'); // 2. judul
|
||||
$table->string('sop_code')->unique(); // 3. kode_sop
|
||||
$table->string('category_name')->nullable(); // 4. kategori name
|
||||
$table->string('version')->default('1.0'); // 5. versi
|
||||
$table->text('revision_history')->nullable(); // 6. historical rev sop (bisa diset text atau json)
|
||||
$table->enum('status', ['Draft', 'Active', 'Obsolete'])->default('Active'); // 7. status sop
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('sops');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user