The photoproduction off the nucleon in the quark model