What is a null and alternative hypothesis for linear & logistic models?

Null and alternative hypothesis

Ho: Β1 = 0
Ha: Β1 ≠ 0

In logistic regression -
Null hypothesis: There is no relationship between x and y
Alternative hypothesis: There is a relationship between the null and alternative hypotheses.