Yea I think the relationship should be reversed where a line item belongs to a gift card and a gift card has one line item.  Can save that change for another time though.