{"action":"created","issue":{"url":"https://api.github.com/repos/neumino/thinky/issues/494","repository_url":"https://api.github.com/repos/neumino/thinky","labels_url":"https://api.github.com/repos/neumino/thinky/issues/494/labels{/name}","comments_url":"https://api.github.com/repos/neumino/thinky/issues/494/comments","events_url":"https://api.github.com/repos/neumino/thinky/issues/494/events","html_url":"https://github.com/neumino/thinky/issues/494","id":152476260,"number":494,"title":"Recommendations for multi-tenancy approach","user":{"login":"newoga","id":344018,"avatar_url":"https://avatars.githubusercontent.com/u/344018?v=3","gravatar_id":"","url":"https://api.github.com/users/newoga","html_url":"https://github.com/newoga","followers_url":"https://api.github.com/users/newoga/followers","following_url":"https://api.github.com/users/newoga/following{/other_user}","gists_url":"https://api.github.com/users/newoga/gists{/gist_id}","starred_url":"https://api.github.com/users/newoga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/newoga/subscriptions","organizations_url":"https://api.github.com/users/newoga/orgs","repos_url":"https://api.github.com/users/newoga/repos","events_url":"https://api.github.com/users/newoga/events{/privacy}","received_events_url":"https://api.github.com/users/newoga/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-02T03:28:53Z","updated_at":"2016-05-02T06:09:57Z","closed_at":null,"body":"Thanks for the great work on your rethinkdb projects. I was looking at using thinky to prototype a small multi-tenanted app. Do you have any recommendations on best way to achieve this using thinky and/or rethinkdbdash?\r\n\r\nI reckon that the nature of how rethinkdbdash pools connections, doing multitenancy at the database level would be difficult. I'm assuming that adding some kind of `accountId` or `tenantId` key in each model would the most reasonable approach."},"comment":{"url":"https://api.github.com/repos/neumino/thinky/issues/comments/216112508","html_url":"https://github.com/neumino/thinky/issues/494#issuecomment-216112508","issue_url":"https://api.github.com/repos/neumino/thinky/issues/494","id":216112508,"user":{"login":"neumino","id":1461947,"avatar_url":"https://avatars.githubusercontent.com/u/1461947?v=3","gravatar_id":"","url":"https://api.github.com/users/neumino","html_url":"https://github.com/neumino","followers_url":"https://api.github.com/users/neumino/followers","following_url":"https://api.github.com/users/neumino/following{/other_user}","gists_url":"https://api.github.com/users/neumino/gists{/gist_id}","starred_url":"https://api.github.com/users/neumino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neumino/subscriptions","organizations_url":"https://api.github.com/users/neumino/orgs","repos_url":"https://api.github.com/users/neumino/repos","events_url":"https://api.github.com/users/neumino/events{/privacy}","received_events_url":"https://api.github.com/users/neumino/received_events","type":"User","site_admin":false},"created_at":"2016-05-02T06:09:57Z","updated_at":"2016-05-02T06:09:57Z","body":"I depends what kind of multi tenanted app you need. I'm not sure what you are trying to do, but I guess you probably want to create different databases with each a different user to access it.\r\n\r\nAccounts were added in RethinkDB 2.3"}}