generate first erd