$pointsLogs * * @mixin \Eloquent */ class IncentiveNewAbo extends Model { use HasFactory; protected $table = 'incentive_new_abos'; protected $casts = [ 'participant_id' => 'int', 'user_abo_id' => 'int', 'activated_at' => 'datetime', ]; protected $fillable = [ 'participant_id', 'user_abo_id', 'activated_at', ]; public function participant() { return $this->belongsTo(IncentiveParticipant::class, 'participant_id'); } public function userAbo() { return $this->belongsTo(UserAbo::class, 'user_abo_id'); } public function pointsLogs() { return $this->hasMany(IncentivePointsLog::class, 'incentive_new_abo_id'); } }