Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kMy6g-0001Zt-KZ for pgsql-general@arkaria.postgresql.org; Mon, 28 Sep 2020 18:42:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kMy6f-0003Fh-FA for pgsql-general@arkaria.postgresql.org; Mon, 28 Sep 2020 18:42:37 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kMy6f-0003Fa-7P for pgsql-general@lists.postgresql.org; Mon, 28 Sep 2020 18:42:37 +0000 Received: from mail.appl-ecosys.com ([50.126.108.78]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kMy6Y-0000lK-Tl for pgsql-general@lists.postgresql.org; Mon, 28 Sep 2020 18:42:36 +0000 Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by mail.appl-ecosys.com (Postfix) with ESMTP id 8D8D7260DCB for ; Mon, 28 Sep 2020 11:42:27 -0700 (PDT) Date: Mon, 28 Sep 2020 11:42:27 -0700 (PDT) From: Rich Shepard To: pgsql-general@lists.postgresql.org Subject: Re: Modifying database schema without losing data In-Reply-To: Message-ID: References: User-Agent: Alpine 2.20 (LNX 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Mon, 28 Sep 2020, Adam Scott wrote: > What if a person is a member of more than one Org? Consider a person_org > table. Adam, Not applicable. An individual is employed by a single organization. > I see mention of a site in the person table. It may also be the case that > you need a site table. Yep. That's what I need to add. > Often, you want a table for the Person and a Contact (or Address) table > separately. This allows for having more than one contact for a Person. Possible, but I've not encountered more than a couple of phone numbers per person (work and mobile). I don't need home addresses or phones. > This way a person can be a member of more than one org, at one or more > sites, and have one or more contacts. Doesn't apply to businesses in my market areas. Thanks for the thoughts, Rich