db_venik
Previous topic Chapter index Next topic

Table: pollen

 

 

Schema

public

 

Owner

albenard

 

Tablespace

(default)

 

Descriptions

aout 2008. Suite a modification de tables pour les crus, suppression de la laison avec cru_geno, et mis liaison avec autre_cru_geno.

 

Columns

PK

FK

Name

Data type

Not null

Unique

Inherited

Default

Description

 

idlot_pollen

serial

 

nextval('public.pollen_idlot_pollen_seq'::text::regclass)

 

 

idlieu_recolte_p

integer

 

 

 

 

 

 

idcru

integer

 

 

 

 

 

 

idgeno_p

integer

 

 

 

 

 

 

idespece

integer

 

 

 

 

 

 

annee

integer

 

 

 

 

 

 

nom_lot

varchar(128)

 

 

 

 

 

 

 

nom_court

varchar(15)

 

 

 

 

 

 

date_creation

date

 

 

 

 

 

 

 

date_maj

date

 

 

 

 

 

 

 

recoltant_exp

varchar(128)

 

 

 

 

 

 

 

recup_nom_lieu

varchar(50)

 

 

 

 

 

 

 

recup_nom_geno

varchar(50)

 

 

 

 

 

 

 

recup_pollen

varchar(50)

 

 

 

 

 

 

 

recup_code_espece

varchar(50)

 

 

 

 

 

 

 

recup_com1

text

 

 

 

 

 

 

 

recup_com2

text

 

 

 

 

 

 

 

autre_lieu

varchar(128)

 

 

 

 

 

 

 

commentaire

text

 

 

 

 

 

 

 

nb_lots

integer

 

 

 

 

HVS ajout pour faciliter la getion des melanges : nb de lots prevus

 

iduser

integer

 

 

 

 

12-10-2007 tracabiltté

 

Foreign Keys

Name

Columns

FK Table

FK Columns

Delete Action

Update Action

Deferrable

Check Time

Description

fk_pollen_espece

idespece

public.espece

idespece

No Action

No Action

 

Immediate

 

fk_pollen_genotype

idgeno_p

public.genotype

idgeno

No Action

No Action

 

Immediate

 

fk_pollen_iduser

iduser

public.utilisateur

iduser

Restrict

Restrict

 

Immediate

 

fk_pollen_lieu

idlieu_recolte_p

public.lieu

idlieu

No Action

No Action

 

Immediate

 

idgeno_idcru

idgeno_p, idcru

public.autre_cru_geno

idgeno_autre_cru, idcru_autre_cru

Restrict

Restrict

 

Immediate

 

 

Check Constraints

There are no check constraints for table pollen

 

Indices

Name

Type

Function

Columns

Primary Key

Unique

Description

fki_pollen_iduser

btree

 

iduser

 

 

 

pk_pollen

btree

 

idlot_pollen

 

pollen_annee_key

btree

 

annee, nom_court

 

 

 

Triggers

There are no triggers for table pollen

 

Rules

There are no rules for table pollen

 

Policies

There are no policies for table pollen

 

Referenced

Table

Schema

Foreign Key

Columns

FK Table

FK Columns

Delete Action

Update Action

Deferrable

Check Time

Description

autre_cru_geno

public

pollen

idlot_pollen_pere

public.pollen

idlot_pollen

Restrict

Restrict

 

Immediate

 

conserv_pollen

public

$1

idlot_pollen

public.pollen

idlot_pollen

Restrict

Restrict

 

Immediate

 

genotype

public

fk_pollen_pere

idlot_pollen_pere

public.pollen

idlot_pollen

No Action

No Action

 

Immediate

 

melange_pollen

public

fk_melange_pollen

idmelange

public.pollen

idlot_pollen

No Action

No Action

 

Immediate

 

melange_pollen

public

fk_melange_pollen_pollen

idlot_pollen

public.pollen

idlot_pollen

No Action

No Action

 

Immediate

 

reception_pollen

public

fk_reception_pollen

idlot_pollen

public.pollen

idlot_pollen

No Action

No Action

 

Immediate

 

recolte_pollen

public

fk_recolte_pollen

idlot_pollen

public.pollen

idlot_pollen

No Action

No Action

 

Immediate

 

sortie_pollen

public

fk_sortie_pollen_pollen

idlot_pollen

public.pollen

idlot_pollen

No Action

No Action

 

Immediate

 

stockage_pollen

public

fk_stockage_pollen_pollen

idlot_pollen

public.pollen

idlot_pollen

No Action

No Action

 

Immediate

 

 

Properties

Property

Value

Inherited From

 

Rows

2893

Pages

48

System

 

Temporary

 

With OID

 

Definition

CREATE TABLE public.pollen (
 idlot_pollen SERIAL,
 idlieu_recolte_p INTEGER,
 idcru INTEGER,
 idgeno_p INTEGER,
 idespece INTEGER NOT NULL,
 annee INTEGER NOT NULL,
 nom_lot VARCHAR(128),
 nom_court VARCHAR(15) NOT NULL,
 date_creation DATE,
 date_maj DATE,
 recoltant_exp VARCHAR(128),
 recup_nom_lieu VARCHAR(50),
 recup_nom_geno VARCHAR(50),
 recup_pollen VARCHAR(50),
 recup_code_espece VARCHAR(50),
 recup_com1 TEXT,
 recup_com2 TEXT,
 autre_lieu VARCHAR(128),
 commentaire TEXT,
 nb_lots INTEGER,
 iduser INTEGER,
 CONSTRAINT pk_pollen PRIMARY KEY(idlot_pollen),
 CONSTRAINT pollen_annee_key UNIQUE(annee, nom_court),
 CONSTRAINT fk_pollen_espece FOREIGN KEY (idespece)
   REFERENCES public.espece(idespece)
   ON DELETE NO ACTION
   ON UPDATE NO ACTION
   NOT DEFERRABLE
,
 CONSTRAINT fk_pollen_genotype FOREIGN KEY (idgeno_p)
   REFERENCES public.genotype(idgeno)
   ON DELETE NO ACTION
   ON UPDATE NO ACTION
   NOT DEFERRABLE
,
 CONSTRAINT fk_pollen_iduser FOREIGN KEY (iduser)
   REFERENCES public.utilisateur(iduser)
   ON DELETE RESTRICT
   ON UPDATE RESTRICT
   NOT DEFERRABLE
,
 CONSTRAINT fk_pollen_lieu FOREIGN KEY (idlieu_recolte_p)
   REFERENCES public.lieu(idlieu)
   ON DELETE NO ACTION
   ON UPDATE NO ACTION
   NOT DEFERRABLE
,
 CONSTRAINT idgeno_idcru FOREIGN KEY (idgeno_p, idcru)
   REFERENCES public.autre_cru_geno(idgeno_autre_cru, idcru_autre_cru)
   ON DELETE RESTRICT
   ON UPDATE RESTRICT
   NOT DEFERRABLE

) ;

COMMENT ON TABLE public.pollen
IS 'aout 2008. Suite a modification de tables pour les crus,  suppression de la laison avec cru_geno, et mis liaison avec autre_cru_geno.';

COMMENT ON COLUMN public.pollen.nb_lots
IS 'HVS ajout pour faciliter la getion des melanges : nb de lots prevus';

COMMENT ON COLUMN public.pollen.iduser
IS '12-10-2007 tracabiltté';

CREATE INDEX fki_pollen_iduser ON public.pollen
 USING btree (iduser);

This file was generated with SQL Manager for PostgreSQL (www.pgsqlmanager.com)
Previous topic Chapter index Next topic