backend: align API/models with current PostgreSQL schema
Deploy Backend / deploy (push) Has been cancelled

This commit is contained in:
Abdul Kareem
2026-02-19 19:43:11 +03:00
parent 4ee662a0ae
commit 5764dd03e4
14 changed files with 673 additions and 110 deletions
+30
View File
@@ -0,0 +1,30 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Factories\HasFactory;
class Offer extends Model
{
use HasFactory;
public $timestamps = false;
protected $fillable = [
'venue_id',
'title',
'description',
'image_url',
'start_at',
'end_at',
'is_active',
'created_at',
];
protected $casts = [
'is_active' => 'boolean',
'start_at' => 'datetime',
'end_at' => 'datetime',
];
}