'integer', 'last_activity_at' => 'datetime', 'muted_at' => 'datetime', 'hidden_at' => 'datetime', ]; } public function conversation(): BelongsTo { return $this->belongsTo(DmConversation::class, 'conversation_id'); } public function profile(): BelongsTo { return $this->belongsTo(Profile::class, 'profile_id'); } public function isActive(): bool { return $this->state === self::STATE_ACTIVE; } public function isRequest(): bool { return $this->state === self::STATE_REQUEST; } public function hasLeft(): bool { return $this->state === self::STATE_LEFT; } }