Re: Research and EAV models

From: Karsten Hilbert <Karsten(dot)Hilbert(at)gmx(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Research and EAV models
Date: 2009-10-23 22:29:11
Message-ID: 20091023222910.GA4169@merkur.hilbert.loc
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Oct 23, 2009 at 11:53:26PM +0200, Leif B. Kristensen wrote:

> I'm a researcher type, and I've made an EAV model that suits me well in
> my genealogy research. How can you associate an essentially unknown
> number of sundry "events" to a "person" without an EAV model?

create table person (
pk serial primary key,
who_is_it text
);

create table event (
pk serial primary key,
fk_person integer references person(pk),
what_happened text
);

I'm sure you meant something else, no ?

Karsten
--
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Greg Smith 2009-10-23 22:30:19 Re: Research and EAV models
Previous Message Peter Hunsberger 2009-10-23 22:24:11 Re: Research and EAV models