Fix error: not use Id and foreign key ignoring.