# 4. EventModel — `app/Models/EventModel.php`

## Current State (line 16-20)

```php
protected $fillable = [
    'event_name', 'uuid', 'human_usable_id', 'client_id', 'type', 'cities_id',
    'area', 'description', 'saved_vendor_id', 'event_date', 'event_start_time',
    'guest_count', 'status', 'event_title_id', 'is_cancelled', 'cancel_date_time'
];
```

## Problem

The columns `country_id`, `state_id`, and `category` exist in the database:
- `country_id` — added via migration `2025_02_20_101841_add_countries_to_events_table.php`
- `state_id` — present in original migration `2020_12_15_163343_create_events_table.php`
- `category` — used by the API (`$eventModel->category = $request->category`)

But they are **missing from `$fillable`**. While the `storeEvent` method sets these via property assignment (not mass assignment), adding them to `$fillable` keeps the model consistent and enables future use of `create()` or `fill()`.

## Change

Replace the `$fillable` array:

```php
protected $fillable = [
    'event_name', 'uuid', 'human_usable_id', 'client_id', 'type', 'cities_id',
    'state_id', 'country_id', 'category', 'area', 'description', 'saved_vendor_id',
    'event_date', 'event_start_time', 'guest_count', 'status', 'event_title_id',
    'is_cancelled', 'cancel_date_time'
];
```

**Added:** `state_id`, `country_id`, `category`

---

## No other changes to this file.

All existing methods (`getEventList`, `getEventDetails`, `getEventServicesDetails`, etc.) remain untouched.
