Hi,
You will need to define the Scripting Options to determine what is included in the script output.
For example to include all the table constraints you will need to set DRIALL to true. The default option is false
Please see the Microsoft documentation for a list of all the available script options: -
There is an option to include OptimzerData which you may need to include as well.
If you require further assistance please provide a full list of the Scripting Options you are defining
Paul