*/ use HasFactory; use HasUuids; /** * The table associated with the model. * * @var string */ protected $table = 'organization_invitations'; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'email', 'role', ]; /** * Get the organization that the invitation belongs to. * * @return BelongsTo */ public function organization(): BelongsTo { return $this->belongsTo(Organization::class, 'organization_id'); } /** * Get the organization that the invitation belongs to. * * @return BelongsTo */ public function team(): BelongsTo { return $this->belongsTo(Organization::class, 'organization_id'); } }