How do you connect to your local database? Using SQL Server Management Studio?
In SSMS, you can just right-click on your database => Tasks => Generate Scripts.
This will generate all the required statements for creating your database with all your table structure (maybe you only mark the structure with the database itself)
I hope my answer is helpful to you,
Your
Bjoern Peters
If the reply was helpful, please upvote and/or accept it as an answer, as this helps others in the community with similar questions. Thanks!