This commit is contained in:
gholak tala
2026-01-24 14:03:11 +00:00
parent 7dcd83715a
commit eb26afbcb3
224 changed files with 32652 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class PriceTrigger extends Model
{
use HasFactory, SoftDeletes;
protected $fillable = [
'customer_id',
'target_price',
'price_condition',
'action',
'is_active',
'triggered_at',
];
protected $casts = [
"is_active" => "boolean",
];
public function customer()
{
return $this->belongsTo(Customer::class);
}
}