In my panel, users have the option of checking in with their date and location. This is a separate function outside of the normal login.
How would you log the data? A lot of information can accumulate over time. I would prefer not to add it to the user, but to have a separate collection with all the data. A data set would look something like this:
fields:
user:
label: User
type: user
timestamp:
label: Check-in
type: date
location:
label: Location
type: text
I am afraid that a collection based on pages could slow down the system, especially if there are a lot of entries.
I need the same database connection in several places in the plugin. Is it then unnecessary that I have created such a DatabaseManager? Could I also define the connection once in the plugin and reuse it?