Dumped on 2002-10-12.

Index of database - person


Table: public.address

public.address Structure
F-Key Name Type Description
audit_id serialNOT NULL
id serialNOT NULL PRIMARY KEY
public -> street street integer
number character(10)
addendum text

Tables referencing this one via Foreign Key Constraints:

Index - Schema public


Table: public.address_external_ref

public.address_external_ref Structure
F-Key Name Type Description
public -> address id integerNOT NULL PRIMARY KEY
refcounter integerdefault 0

Index - Schema public


Table: public.address_info

public.address_info Structure
F-Key Name Type Description
audit_id serialNOT NULL
public -> address address_id integer
location point
public -> coordinate id_coord integer
mapref character(30)
public -> mapbook id_map integer
howto_get_there text
comments text

Index - Schema public


Table: public.address_type

public.address_type Structure
F-Key Name Type Description
audit_id serialNOT NULL
id serialNOT NULL PRIMARY KEY
name character(10)NOT NULL

Tables referencing this one via Foreign Key Constraints:

Index - Schema public


Table: public.audit_gis

not for direct use - must be inherited by all auditable tables

public.audit_gis Structure
F-Key Name Type Description
audit_id serialNOT NULL PRIMARY KEY

Index - Schema public


Table: public.audit_identity

not for direct use - must be inherited by all auditable tables

public.audit_identity Structure
F-Key Name Type Description
audit_id serialNOT NULL PRIMARY KEY

Index - Schema public


Table: public.coordinate

public.coordinate Structure
F-Key Name Type Description
id serialNOT NULL UNIQUE
name character varying(30)
scale double precision

Tables referencing this one via Foreign Key Constraints:

Index - Schema public


Table: public.country

a countries name and international code

public.country Structure
F-Key Name Type Description
code character(2)NOT NULL PRIMARY KEY

international two character country code as per ISO 3166-1
name character varying(80)
deprecated datedate when this state ceased officially to exist (if applicable)

Tables referencing this one via Foreign Key Constraints:

Index - Schema public


Table: public.identities_addresses

a many-to-many pivot table linking addresses to identities

public.identities_addresses Structure
F-Key Name Type Description
audit_id serialNOT NULL
id serialNOT NULL PRIMARY KEY
public -> identity id_identity integeridentity to whom the address belongs
public -> address id_address integeraddress belonging to this identity
public -> address_type id_type integerdefault 1

type of this address (like home, work, parents, holidays ...)
address_source character varying(30)

Index - Schema public


Table: public.identity

represents the unique identity of a person

public.identity Structure
F-Key Name Type Description
audit_id serialNOT NULL
id serialNOT NULL PRIMARY KEY
pupic character(24)Portable Unique Person Identification Code as per gnumed white papers
gender character(2)default '?'

(m)ale, (f)emale, (h)ermaphrodite, (tm)transsexual phaenotype male, (tf)transsexual phaenotype female, (?)unknown
karyotype character(10)
dob character(10)date of birth in format yyyymmdd
cob character(2)country of birth as per date of birth, coded as 2 character ISO code
deceased datedate when a person has died (if so), format yyyymmdd

 

public.identity Constraints
Name Constraint
identity_gender CHECK (((((gender = 'm'::bpchar) OR (gender = 'f'::bpchar)) OR (gender = 'h'::bpchar)) OR (gender = 'tm'::bpchar)) OR (gender = 'tf'::bpchar)) OR (gender = '?'::bpchar)

Tables referencing this one via Foreign Key Constraints:

 

Permissions which apply to identity
User
Select
Insert
Update
Delete
Rule
Reference
Trigger
PUBLIC
hherb

Index - Schema public


Table: public.mapbook

public.mapbook Structure
F-Key Name Type Description
id serialNOT NULL UNIQUE
name character(30)

Tables referencing this one via Foreign Key Constraints:

Index - Schema public


Table: public.names

all the names an identity is known under

public.names Structure
F-Key Name Type Description
audit_id serialNOT NULL
id serialNOT NULL PRIMARY KEY
public -> identity id_identity integer
active booleandefault 't'

true if the name is still in use
lastnames character varying(80)all last names of an identity in legal order
firstnames character varying(255)all first names of an identity in legal order
preferred character varying(80)the preferred first name, the name a person is usually called (nickname)
title character varying(80)

 

Permissions which apply to names
User
Select
Insert
Update
Delete
Rule
Reference
Trigger
PUBLIC
hherb

Index - Schema public


Table: public.relation

biological and social relationships between an identity and other identities

public.relation Structure
F-Key Name Type Description
audit_id serialNOT NULL
id serialNOT NULL PRIMARY KEY
public -> identity id_identity integerprimary identity to whom the relationship applies
public -> identity id_relative integerreferred identity of this relationship (e.g. "child" if id_identity points to the father and id_relation_type points to "parent")
public -> relation_types id_relation_type integer
started datedate when this relationship begun
ended datedate when this relationship ended. Biological relationships do not end!

Index - Schema public


Table: public.relation_types

types of biological and social relationships between an identities

public.relation_types Structure
F-Key Name Type Description
audit_id serialNOT NULL
id serialNOT NULL PRIMARY KEY
biological booleantrue id the relationship is biological (proven or reasonable assumption), else false
biol_verified booleandefault 'f'::bool

ONLY set to true if there is genetic proof for this relationship
description character varying(40)plain text description of relationship

Tables referencing this one via Foreign Key Constraints:

Index - Schema public


Table: public.state

state codes (country specific)

public.state Structure
F-Key Name Type Description
audit_id serialNOT NULL
id serialNOT NULL PRIMARY KEY
code character(10)state code
public -> country country character(2)2 character ISO 3166-1 country code
name character varying(60)
deprecated date

 

public.state Constraints
Name Constraint
nodupes UNIQUE (code, country)

Tables referencing this one via Foreign Key Constraints:

Index - Schema public


Table: public.street

street names, specific for distinct "urbs"

public.street Structure
F-Key Name Type Description
audit_id serialNOT NULL
id serialNOT NULL PRIMARY KEY
public -> urb id_urb integerNOT NULL

reference to information postcode, city, country and state
name character varying(60)name of this street
postcode character(10)postcode for systems (such as UK Royal Mail) which specify the street.

Tables referencing this one via Foreign Key Constraints:

Index - Schema public


Table: public.urb

cities, towns, dwellings ...

public.urb Structure
F-Key Name Type Description
audit_id serialNOT NULL
id serialNOT NULL PRIMARY KEY
public -> state statecode integerreference to information about country and state
postcode character(8)the postcode (if applicable
name character varying(60)the name of the city/town/dwelling

Tables referencing this one via Foreign Key Constraints:

Index - Schema public


Function: public.check_active_name( )

NO COMMENT

Function: public.delete_names( )

NO COMMENT

Function: public.find_or_create_state( text, text )

NO COMMENT

Function: public.find_state( text, text )

NO COMMENT

Function: public.find_street( text, integer )

NO COMMENT

Function: public.find_urb( text, text, text, text )

NO COMMENT

Function: public.new_pupic( )

NO COMMENT

W3C HTML 4.01 Strict