For example
I ii iii IV V vi vii
____________________________________________________
Cmaj Dmin Emin Fmaj Gmaj Amin Bdim
____________________________________________________
Cmaj7 Dmin7 Emin7 Fmaj7 G7 Amin7 Bm7b5
the above table gives chords and scale degrees.
But I wonder, should I memorize them all for every scale or is there a formula for it?
Edit: In addition to Tim's answer I found this:
Major key chord sequence: Maj min min Maj Maj min dim