feat: implement intern blog management system with approval workflows and administrative feedback

This commit is contained in:
Ümit Tunç
2026-07-29 16:18:21 +03:00
parent 7c04433f6d
commit aa003df568
8 changed files with 695 additions and 36 deletions
@@ -0,0 +1,33 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('blogs', function (Blueprint $table) {
$table->foreignId('career_application_id')->nullable()->after('author_id')->constrained('career_applications')->onDelete('cascade');
$table->string('intern_category')->nullable()->after('career_application_id');
$table->text('admin_feedback')->nullable()->after('intern_category');
$table->foreignId('author_id')->nullable()->change();
$table->string('status')->default('draft')->change();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('blogs', function (Blueprint $table) {
$table->dropForeign(['career_application_id']);
$table->dropColumn(['career_application_id', 'intern_category', 'admin_feedback']);
});
}
};