Question

So, I'm trying to get started with CouchDB (and NoSQL in general), coming from a well-entrenched background in T-SQL, and I'm running into a bit of a mental roadblock. I'm unsure how to model an end user in my CouchDB database.

My main point of confusion, is that it seems to me that the default _users document in CouchDB is supposed to handle all types of user. In effect, this document should contain user information for both my SA user, as well as some guy on the internet who registered today. Is this the case, or am I horribly misreading the entire thing?

Was it helpful?

Solution

You should check out the documentation regarding security. The _users database contains "registered users" as you have discovered. However, "system users" (admins) are configured seperately and exist in the config.ini rather than in the database itself.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top