PocketBase also allows you to export the schema for your collections to a pb_schema.json file. We could also use this as the "source of truth" for the collections instead of loading it directly from the database. While this file could be outdated it doesn't require you to set the admin credentials at all for public collections. This makes it easier to collaborate with other people, publishing only this schema file in your repository.
Requirements
PocketBase also allows you to export the schema for your collections to a
pb_schema.json
file. We could also use this as the "source of truth" for the collections instead of loading it directly from the database. While this file could be outdated it doesn't require you to set the admin credentials at all for public collections. This makes it easier to collaborate with other people, publishing only this schema file in your repository.