6 weeks cramping and spotting

I had really bad cramping last night when I was going to sleep. Like period cramps. I woke up in the morning to Brown discharge and throughout the day it was mixing between brown and pink. I can’t say I was super hydrated the day I got the cramps at night. I’m still having the discharge but not horrible cramps. Did I miscarry? I have an appointment for sono this Friday.