In order to export all database structure in Sql Server, follow these steps :
Right Click database > Tasks > Generate Scripts..
Script entire database and all database objects > Next
Select Save scripts to a specific location > File name
Now Select finish
AND YOU ARE DONE..