Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 32232 invoked from network); 27 Oct 2009 23:01:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 27 Oct 2009 23:01:33 -0000 Received: (qmail 67452 invoked by uid 500); 27 Oct 2009 20:08:09 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 67377 invoked by uid 500); 27 Oct 2009 20:08:09 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 67239 invoked by uid 99); 27 Oct 2009 20:08:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Oct 2009 20:08:09 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [12.107.188.150] (HELO mx1.compuware.com) (12.107.188.150) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Oct 2009 20:08:06 +0000 Received: from nasa-dtw-ex009.nasa.cpwr.corp (unknown [10.10.0.230]) by mx1.compuware.com (Postfix) with ESMTP id D81EF72D5DA for ; Tue, 27 Oct 2009 20:07:41 +0000 (GMT) Content-Transfer-Encoding: 7bit Importance: normal Priority: normal Received: from nasa-dtw-ex004.nasa.cpwr.corp ([10.10.1.107]) by nasa-dtw-ex009.nasa.cpwr.corp with Microsoft SMTPSVC(6.0.3790.3959); Tue, 27 Oct 2009 16:07:41 -0400 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.4325 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01CA5741.2398AF34" Subject: How Do You Model This? Date: Tue, 27 Oct 2009 16:07:41 -0400 Message-ID: <319C03F7A120754B9128CF308BF5E0370308FF05@nasa-dtw-ex004.nasa.cpwr.corp> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: How Do You Model This? Thread-Index: AcpXQSNRUyndWbygR2yb7ax3yPijZg== From: "Welch, Matt" To: X-OriginalArrivalTime: 27 Oct 2009 20:07:41.0813 (UTC) FILETIME=[23C5B250:01CA5741] ------_=_NextPart_001_01CA5741.2398AF34 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Ok, forgive my table structured background. I'm trying to see the light, here, but I need help converting an SQL table based model into something more CouchDB-ish. In an old-fashioned relational database it would look similar to this: a users table and a permissions table. Users: Name Group ----------------- Alice Developers Bob Developers Carol Developers Eve Managers Frank Managers Permissions: Group Directory --------------------- Developers Source Developers Binary Managers Binary Managers Planning Then I want to look up what directories Alice has permissions to, or even make a master list of all the users and their permissions like: Alice Source Alice Binary Bob Source Bob Binary ... Frank Binary Frank Planning I need to do the equivalent of adding and removing users, adding and removing directories, and change group and permission assignments. None of that can be static.=20 So how do I set up my data and views in CouchDB to do this kind of thing? Or is this just not the sort of thing CouchDB will be good at modeling? Thanks in advance for your help. The contents of this e-mail are intended for the named addressee only. = It contains information that may be confidential. Unless you are the = named addressee or an authorized designee, you may not copy or use it, = or disclose it to anyone else. If you received it in error please notify = us immediately and then destroy it. ------_=_NextPart_001_01CA5741.2398AF34--