My preference is to do deadlifts first, before doing squats.
I would structure it like this,
Deadlift, Back Squat, Leg press, leg ext. , leg curl, calf work.
However I think doing both regular deadlifts and back squat on the same day will put a lot of stress on your lower back, I personally would not recommend this combination.
For bodybuilding purposes strictly, I think there are better lifts you can do to train your hamstrings, glutes etc instead of regular deadlifts. My personal preference is the romanian deadlift, It does a great job of growing out your back legs and I have had absolutely zero lower back issues with doing heavy rdl and front squat on the same day.
Doing regular deadlifts followed by back squat will put a lot of stress on your lower back and might negatively affect your performance because of this, I also feel like there are better lifts you can do in place of the regular deadlift on leg day for bodybuilding purposes.
I would personally do something like this instead,
Romanian Deadlift
High bar back squat
leg press
leg ext
leg curl
seated calf raise
standing calf raise
If you really want to do regular deadlifts then I would switch to Front squat instead of back so you can reduce the amount of stress being put on your lower back, otherwise you might have to reduce your overall volume for deadlifts or squats because of how taxing doing both reg deadlifts and back squat on the same day can be.