Deferred interest

Is it possible to issue a family member a secured loan with deferred interest payable when the house is sold?  Or because there wasn’t any payments being received would it be looked at as a gift?  If it is possible, how would it be recorded for taxes?