feat: add Settings models for Location, ProjectSetting, UrgencyLevel

This commit is contained in:
ghassan committed 2026-05-24 09:48:31 +03:00
1 parent c70dde9b1b
commit f8dc7f6d1c
3 files changed
+63

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
<?php
namespace App\Models\Settings;
use Illuminate\Database\Eloquent\Model;
class UrgencyLevel extends Model
{
protected $table = 'settings_urgency_levels';
protected $fillable = [
'label', 'emoji', 'color_bg', 'color_text',
'subtitle', 'sort_order', 'show_date_picker', 'is_active',
];
protected $casts = [
'show_date_picker' => 'boolean',
'is_active' => 'boolean',
];
public function scopeActive($query)
{
return $query->where('is_active', true)->orderBy('sort_order');
}
}