About two years ago had a project which required creating 76 tables, it seemed that it was a better idea to auto generate this as the spec kept changing and I wanted to ensure that it was documented at the end. There was no way I was going to be arsed to do it later!
Life being what it is, I had totally forgotten about it until this afternoon when I started another project with many tables. Anyway, it's not perfect but did the job for me and with some tweeking might be useful for others so feel free to do with as you will..