I think it's better to save the code. More importantly, you must maintain this code (or generate it) every time you change the database schema.
This is important for the following reasons.
- You will probably be surprised how many times you need it. If you need to move the server or configure another environment (for example, TEST or DEMO), etc.
- I also found that I often refer to DDL SQL when coding, especially if I have not touched the system for a while.
- You have a link to your decisions, such as the indexes you created, unique keys, etc. etc.
, , , , , . , (.. ) , .