26 lines
486 B
PHP
26 lines
486 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class AiTask extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $fillable = [
|
|
'title',
|
|
'description',
|
|
'ai_prompt_template',
|
|
'budget_min',
|
|
'budget_max',
|
|
'is_active'
|
|
];
|
|
|
|
protected $casts = [
|
|
'budget_min' => 'decimal:2',
|
|
'budget_max' => 'decimal:2',
|
|
'is_active' => 'boolean'
|
|
];
|
|
} |