Should Genesis be taken literally - creation.com
"Chapters 12–50 of Genesis were very clearly written as authentic history, as they describe the lives of Abraham, Isaac, Jacob, and his 12 sons who were the ancestral heads of the 12 tribes of Israel. The Jewish people, from earliest biblical times to the present day, have always regarded this portion of Genesis as the true record of their nation’s history."
Next point in that article
"Are any of the first 11 chapters of Genesis poetry?
Answer: No, because these chapters do not contain information or invocation in any of the forms of Hebrew poetry, in either overt or covert form, and because Hebrew scholars of substance are agreed that this is so (see below).
Note: There certainly is repetition in Genesis chapter 1, e.g. ‘And God said …’ occurs 10 times; ‘and God saw that it was good/very good’ seven times; ‘after his/their kind’ 10 times; ‘And the evening and the morning were the … day’ six times. However, these repetitions have none of the poetic forms discussed above; rather they are statements of fact and thus a record of what happened, and possibly for emphasis—to indicate the importance of the words repeated."
========================
What is more the "legal code" we find in Ex 20 in the TEN Commandments is not allegory, or poetry or symbolism... and that is where we find the literal 7 day week of Gen 2:1-3 given as the origin for the 7 day week for mankind.