. */ namespace FireflyIII\Models; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\BelongsTo; /** * Class WebhookMessage * * @property int $id * @property \Illuminate\Support\Carbon|null $created_at * @property \Illuminate\Support\Carbon|null $updated_at * @property string|null $deleted_at * @property int $webhook_id * @property int $sent * @property int $errored * @property string $uuid * @property string $message * @property-read \FireflyIII\Models\Webhook $webhook * @method static \Illuminate\Database\Eloquent\Builder|WebhookMessage newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder|WebhookMessage newQuery() * @method static \Illuminate\Database\Eloquent\Builder|WebhookMessage query() * @method static \Illuminate\Database\Eloquent\Builder|WebhookMessage whereCreatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|WebhookMessage whereDeletedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|WebhookMessage whereErrored($value) * @method static \Illuminate\Database\Eloquent\Builder|WebhookMessage whereId($value) * @method static \Illuminate\Database\Eloquent\Builder|WebhookMessage whereMessage($value) * @method static \Illuminate\Database\Eloquent\Builder|WebhookMessage whereSent($value) * @method static \Illuminate\Database\Eloquent\Builder|WebhookMessage whereUpdatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|WebhookMessage whereUuid($value) * @method static \Illuminate\Database\Eloquent\Builder|WebhookMessage whereWebhookId($value) * @mixin \Eloquent * @property int $attempts * @property array|null $logs * @method static \Illuminate\Database\Eloquent\Builder|WebhookMessage whereAttempts($value) * @method static \Illuminate\Database\Eloquent\Builder|WebhookMessage whereLogs($value) */ class WebhookMessage extends Model { protected $casts = [ 'sent' => 'boolean', 'errored' => 'boolean', 'uuid' => 'string', 'message' => 'json', 'logs' => 'json', ]; /** * @codeCoverageIgnore * @return BelongsTo */ public function webhook(): BelongsTo { return $this->belongsTo(Webhook::class); } }