|Interaction newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder|Interaction newQuery() * @method static \Illuminate\Database\Eloquent\Builder|Interaction query() * @method static \Illuminate\Database\Eloquent\Builder|Interaction whereCount($value) * @method static \Illuminate\Database\Eloquent\Builder|Interaction whereCreatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|Interaction whereDealId($value) * @method static \Illuminate\Database\Eloquent\Builder|Interaction whereId($value) * @method static \Illuminate\Database\Eloquent\Builder|Interaction whereType($value) * @method static \Illuminate\Database\Eloquent\Builder|Interaction whereUpdatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|Interaction whereUserId($value) * @mixin \Eloquent */ class Interaction extends Model { protected $fillable = [ 'type', 'user_id', ]; public function user(): BelongsTo { return $this->belongsTo(Deal::class); } public function deal(): BelongsTo { return $this->belongsTo(Deal::class); } protected function casts(): array { return [ 'type' => InteractionType::class, ]; } }