feat: full dashboard-ticketing scaffold with data model, controllers, Vue pages
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
<?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('tickets', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('number')->unique(); // e.g. "IT-0042"
|
||||
$table->foreignId('group_id')->constrained('ticketing_groups');
|
||||
$table->unsignedBigInteger('submitter_id');
|
||||
$table->unsignedBigInteger('assigned_to')->nullable();
|
||||
$table->foreignId('project_id')->nullable()->constrained('ticketing_projects')->nullOnDelete();
|
||||
$table->string('title');
|
||||
$table->text('description');
|
||||
$table->enum('status', ['open', 'in_progress', 'pending', 'resolved', 'closed'])->default('open');
|
||||
$table->foreignId('priority_id')->nullable()->constrained('ticketing_priority_levels')->nullOnDelete();
|
||||
$table->date('due_date')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('tickets');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user