I'm implementing the Laravel notification system. I have made a test of insertion in DB and it has gone well but when registering the notification I see that it arrives with "strange" data (from my point of view).
| id | type | notifiable_type | notifiable_id |
|---|---|---|---|
| 634db0ee-a9c0... | App\Notifications\HeatMapNotification | App\Models\User | 1 |
I don't understand why "id" column comes with an id with type uuid. I mean, with an autoincremental id would be enough (I think).
In the "type" column I would like to insert a much simpler text.
I don't see any use for the column "notifiable_type". In my case the notifiable entities will always be users.
Also I would like to change some column names (notifiable_id --> user_id)
How could I make these changes?
Thank you very much in advance.
App\Notifications\Appointment\ReminderandApp\Notifications\Prescription\Reminderwould both be called reminder. So, why not just store the full class name?