feat: add migrations for settings_locations, settings_projects, settings_urgency_levels

This commit is contained in:
Ghassan Yusuf 2026-05-24 09:45:34 +03:00
parent 45f330617c
commit c70dde9b1b
3 changed files with 93 additions and 0 deletions

View File

@ -0,0 +1,29 @@
<?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::create('settings_locations', function (Blueprint $table) {
$table->id();
$table->string('name', 255);
$table->boolean('is_active')->default(true);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('settings_locations');
}
};

View File

@ -0,0 +1,29 @@
<?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::create('settings_projects', function (Blueprint $table) {
$table->id();
$table->string('name', 255);
$table->boolean('is_active')->default(true);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('settings_projects');
}
};

View File

@ -0,0 +1,35 @@
<?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::create('settings_urgency_levels', function (Blueprint $table) {
$table->id();
$table->string('label', 100);
$table->string('emoji', 10)->default('📋');
$table->string('color_bg', 20)->default('#f8fafc');
$table->string('color_text', 20)->default('#475569');
$table->string('subtitle', 100)->nullable();
$table->unsignedTinyInteger('sort_order')->default(99);
$table->boolean('show_date_picker')->default(false);
$table->boolean('is_active')->default(true);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('settings_urgency_levels');
}
};