NotificationRecipient.php 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Factories\HasFactory;
  4. use Illuminate\Database\Eloquent\Model;
  5. /**
  6. * @property int $id
  7. * @property int $notification_id
  8. * @property int|null $user_id
  9. * @property int|null $unit_id
  10. * @property int|null $franchisee_id
  11. * @property bool $is_read
  12. * @property string|null $read_at
  13. * @property string $channel
  14. * @property bool $is_delivered
  15. * @property string|null $delivered_at
  16. * @property string|null $delivery_error
  17. * @property \Illuminate\Support\Carbon|null $created_at
  18. * @property \Illuminate\Support\Carbon|null $updated_at
  19. * @property string|null $deleted_at
  20. * @method static \Illuminate\Database\Eloquent\Builder<static>|NotificationRecipient newModelQuery()
  21. * @method static \Illuminate\Database\Eloquent\Builder<static>|NotificationRecipient newQuery()
  22. * @method static \Illuminate\Database\Eloquent\Builder<static>|NotificationRecipient query()
  23. * @method static \Illuminate\Database\Eloquent\Builder<static>|NotificationRecipient whereChannel($value)
  24. * @method static \Illuminate\Database\Eloquent\Builder<static>|NotificationRecipient whereCreatedAt($value)
  25. * @method static \Illuminate\Database\Eloquent\Builder<static>|NotificationRecipient whereDeletedAt($value)
  26. * @method static \Illuminate\Database\Eloquent\Builder<static>|NotificationRecipient whereDeliveredAt($value)
  27. * @method static \Illuminate\Database\Eloquent\Builder<static>|NotificationRecipient whereDeliveryError($value)
  28. * @method static \Illuminate\Database\Eloquent\Builder<static>|NotificationRecipient whereFranchiseeId($value)
  29. * @method static \Illuminate\Database\Eloquent\Builder<static>|NotificationRecipient whereId($value)
  30. * @method static \Illuminate\Database\Eloquent\Builder<static>|NotificationRecipient whereIsDelivered($value)
  31. * @method static \Illuminate\Database\Eloquent\Builder<static>|NotificationRecipient whereIsRead($value)
  32. * @method static \Illuminate\Database\Eloquent\Builder<static>|NotificationRecipient whereNotificationId($value)
  33. * @method static \Illuminate\Database\Eloquent\Builder<static>|NotificationRecipient whereReadAt($value)
  34. * @method static \Illuminate\Database\Eloquent\Builder<static>|NotificationRecipient whereUnitId($value)
  35. * @method static \Illuminate\Database\Eloquent\Builder<static>|NotificationRecipient whereUpdatedAt($value)
  36. * @method static \Illuminate\Database\Eloquent\Builder<static>|NotificationRecipient whereUserId($value)
  37. * @mixin \Eloquent
  38. */
  39. class NotificationRecipient extends Model
  40. {
  41. use HasFactory;
  42. protected $table = 'notification_recipients';
  43. protected $guarded = [
  44. 'id', // Add more fields that shouldn't be edited here
  45. ];
  46. protected $casts = [
  47. 'created_at' => 'datetime',
  48. 'updated_at' => 'datetime',
  49. // Add your casts here (e.g., 'is_active' => 'boolean')
  50. ];
  51. // Relationships
  52. // Business Logic Methods
  53. // Custom Finders
  54. // Query Scopes
  55. }