How to make a website's content searchable on google?

Hi there! My website is build by “showing and hiding” groups and I am not quite sure how it works with google searches in regards to that. Or is it possible to set up that google could access my database directly? I only have started using google’s Search Console and I wanted some advice on how to make content on my website searchable on google. Thank you!