This option would have a limit for free accounts, which would be a single template, but for paid accounts, they would have unlimited access to templates.
Implementing this would be quite important to ensure that users feel secure entering their data into the database. One option could be to use end-to-end encryption, or we could also consider encryption with a master key provided by the server.
As it stands, the application is saving the password in the session so that the user doesn't have to enter it each time. So, to enhance security, the user is given the option to securely save the password in the session or to request it each time they enter the application.
When the password is changed, we will need to update the encryption for all the user's notes to make it work with the new user password.
We will need to create a separate service that changes the encryption of each note one by one. Something like tasks that run synchronously without affecting the service and consuming excessive resources.
For this feature, bookmarks could be created similar to Instagram, where there is the possibility to create folders and have a general folder. This feature is available through a paid subscription, similar to Twitter.