Configuration stored for widget

Where is the configuration for a custom widget is stored in the Community? Is it in the database or filestorage?

Any help will be appreciated.

Anshuman