. */ declare(strict_types=1); namespace FireflyIII\Models; use FireflyIII\User; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\BelongsTo; /** * Class InvitedUser */ class InvitedUser extends Model { protected $fillable = ['user_id', 'email', 'invite_code', 'expires', 'redeemed']; protected $casts = [ 'expires' => 'datetime', 'redeemed' => 'boolean', ]; /** * @codeCoverageIgnore * @return BelongsTo */ public function user(): BelongsTo { return $this->belongsTo(User::class); } }