| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- <?php
- namespace App\Models;
- use Illuminate\Database\Eloquent\Factories\HasFactory;
- use Illuminate\Database\Eloquent\Model;
- /**
- * @property int $id
- * @property string $origin_table
- * @property int $origin_id
- * @property int|null $unit_id
- * @property int|null $franchisee_id
- * @property string $notification_type
- * @property string $title
- * @property string $message
- * @property string|null $url
- * @property string|null $action_text
- * @property string $priority
- * @property string|null $expires_at
- * @property int $created_by_user_id
- * @property \Illuminate\Support\Carbon|null $created_at
- * @property \Illuminate\Support\Carbon|null $updated_at
- * @property string|null $deleted_at
- * @method static \Illuminate\Database\Eloquent\Builder<static>|Notification newModelQuery()
- * @method static \Illuminate\Database\Eloquent\Builder<static>|Notification newQuery()
- * @method static \Illuminate\Database\Eloquent\Builder<static>|Notification query()
- * @method static \Illuminate\Database\Eloquent\Builder<static>|Notification whereActionText($value)
- * @method static \Illuminate\Database\Eloquent\Builder<static>|Notification whereCreatedAt($value)
- * @method static \Illuminate\Database\Eloquent\Builder<static>|Notification whereCreatedByUserId($value)
- * @method static \Illuminate\Database\Eloquent\Builder<static>|Notification whereDeletedAt($value)
- * @method static \Illuminate\Database\Eloquent\Builder<static>|Notification whereExpiresAt($value)
- * @method static \Illuminate\Database\Eloquent\Builder<static>|Notification whereFranchiseeId($value)
- * @method static \Illuminate\Database\Eloquent\Builder<static>|Notification whereId($value)
- * @method static \Illuminate\Database\Eloquent\Builder<static>|Notification whereMessage($value)
- * @method static \Illuminate\Database\Eloquent\Builder<static>|Notification whereNotificationType($value)
- * @method static \Illuminate\Database\Eloquent\Builder<static>|Notification whereOriginId($value)
- * @method static \Illuminate\Database\Eloquent\Builder<static>|Notification whereOriginTable($value)
- * @method static \Illuminate\Database\Eloquent\Builder<static>|Notification wherePriority($value)
- * @method static \Illuminate\Database\Eloquent\Builder<static>|Notification whereTitle($value)
- * @method static \Illuminate\Database\Eloquent\Builder<static>|Notification whereUnitId($value)
- * @method static \Illuminate\Database\Eloquent\Builder<static>|Notification whereUpdatedAt($value)
- * @method static \Illuminate\Database\Eloquent\Builder<static>|Notification whereUrl($value)
- * @mixin \Eloquent
- */
- class Notification extends Model
- {
- use HasFactory;
- protected $table = 'notifications';
- protected $guarded = [
- 'id', // Add more fields that shouldn't be edited here
- ];
- protected $casts = [
- 'created_at' => 'datetime',
- 'updated_at' => 'datetime',
- // Add your casts here (e.g., 'is_active' => 'boolean')
- ];
- // Relationships
- // Business Logic Methods
- // Custom Finders
- // Query Scopes
- }
|