'boolean', 'timestamp' => 'integer', 'reactions' => 'array', 'attachments' => 'array', 'scraped_at' => 'datetime', ]; public function thread(): BelongsTo { return $this->belongsTo(DirectThread::class, 'thread_id', 'thread_id'); } public function repliedTo(): BelongsTo { return $this->belongsTo(self::class, 'replied_to_id', 'id'); } public function getSentAtAttribute(): ?\Carbon\Carbon { return $this->timestamp ? \Carbon\Carbon::createFromTimestampMs($this->timestamp) : null; } }