Schema
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 |
---|---|---|---|---|---|---|---|---|
idespece |
idespece |
No Action |
No Action |
|
Immediate |
|
||
idgeno_p |
idgeno |
No Action |
No Action |
|
Immediate |
|
||
iduser |
iduser |
Restrict |
Restrict |
|
Immediate |
|
||
idlieu_recolte_p |
idlieu |
No Action |
No Action |
|
Immediate |
|
||
idgeno_p, idcru |
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 |
---|---|---|---|---|---|---|
btree |
|
iduser |
|
|
|
|
btree |
|
idlot_pollen |
|
|||
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 |
---|---|---|---|---|---|---|---|---|---|---|
idlot_pollen_pere |
idlot_pollen |
Restrict |
Restrict |
|
Immediate |
|
||||
idlot_pollen |
idlot_pollen |
Restrict |
Restrict |
|
Immediate |
|
||||
idlot_pollen_pere |
idlot_pollen |
No Action |
No Action |
|
Immediate |
|
||||
idmelange |
idlot_pollen |
No Action |
No Action |
|
Immediate |
|
||||
idlot_pollen |
idlot_pollen |
No Action |
No Action |
|
Immediate |
|
||||
idlot_pollen |
idlot_pollen |
No Action |
No Action |
|
Immediate |
|
||||
idlot_pollen |
idlot_pollen |
No Action |
No Action |
|
Immediate |
|
||||
idlot_pollen |
idlot_pollen |
No Action |
No Action |
|
Immediate |
|
||||
idlot_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) |