Schema
Owner
albenard
Tablespace
(default)
Descriptions
There is no description for table genotype
Columns
PK | FK | Name | Data type | Not null | Unique | Inherited | Default | Description |
---|---|---|---|---|---|---|---|---|
|
idgeno |
serial |
|
nextval('genotype_idgeno_seq'::regclass) |
|
|||
|
idgeno_pere |
integer |
|
|
|
|
utilisé seulement pour les croisements. |
|
|
idespece |
integer |
|
|
|
|
||
|
idlot_pollen_pere |
integer |
|
|
|
|
|
|
|
idgeno_mere |
integer |
|
|
|
|
Le parent d'un clone OGM est un idgeno_mere (quel que soit le sexe du clone ogm) |
|
|
lieu_origine |
integer |
|
|
|
|
|
|
|
type_geno |
integer |
|
|
|
|
||
|
|
nom_arrivee |
varchar(60) |
|
|
|
|
|
|
|
nom_court |
varchar(30) |
|
|
|
Saisie :sans espace devant ou derrière, sans zéro devant, majuscule. |
|
|
|
date_creation |
date |
|
|
|
|
|
|
|
date_maj |
date |
|
|
|
|
|
|
|
commentaire |
text |
|
|
|
|
|
|
|
programme |
varchar(30) |
|
|
|
|
|
|
|
annee_arrivee |
integer |
|
|
|
|
|
|
|
recoltant_exp |
varchar(150) |
|
|
|
|
|
|
|
proprietaire_legal |
varchar(90) |
|
|
|
|
|
|
|
autre_lieu |
varchar(128) |
|
|
|
|
|
|
|
inscription_officielle |
varchar(50) |
|
|
|
|
|
|
|
mois_arrivee |
integer |
|
|
|
|
|
|
|
recup_nom_lieu |
varchar(50) |
|
|
|
|
|
|
|
recup_code_espece |
varchar(50) |
|
|
|
|
|
|
|
recup_nom_geno |
varchar(50) |
|
|
|
|
|
|
|
recup_com1 |
text |
|
|
|
|
|
|
|
recup_com2 |
text |
|
|
|
|
|
|
|
recup_pollen |
varchar(50) |
|
|
|
|
|
|
|
recup_geno_mere |
varchar(50) |
|
|
|
|
|
|
|
recup_geno_pere |
varchar(50) |
|
|
|
|
|
|
|
code_crb32 |
varchar(50) |
|
|
|
05-06-2007. Code international des ressources genetiques : pays espece identifiant. |
|
|
iduser |
integer |
|
|
|
|
12-10-2007 tracabiltté |
|
|
|
nb_constituants |
integer |
|
|
|
|
29-10-2007. Uniquement pour les melanges et les Desc Paternelles. |
|
|
recolte_aire_nat |
varchar(15) |
|
|
|
|
aout 2008. recolté naturel dans son aire naturelle (oui, non, vide). ceci dépend du pays de récolte |
|
lettre_type |
varchar(1) |
|
|
|
HVS. 15-03-2007 : variable qui reprend type_genotype_ref.champ_lettre. 10-11-2009 : copie de l ancienne variable lettre_type(qui a été renommée en zzlettre_type) qui était en CHAR au lieu de VARCHAR |
Foreign Keys
Name | Columns | FK Table | FK Columns | Delete Action | Update Action | Deferrable | Check Time | Description |
---|---|---|---|---|---|---|---|---|
idespece |
idespece |
No Action |
No Action |
|
Immediate |
|
||
iduser |
iduser |
Restrict |
Restrict |
|
Immediate |
|
||
idgeno_mere |
idgeno |
No Action |
No Action |
|
Immediate |
|
||
idgeno_pere |
idgeno |
No Action |
No Action |
|
Immediate |
|
||
lieu_origine |
idlieu |
No Action |
No Action |
|
Immediate |
|
||
idlot_pollen_pere |
idlot_pollen |
No Action |
No Action |
|
Immediate |
|
||
type_geno |
id_lc |
No Action |
No Action |
|
Immediate |
|
||
type_geno, lettre_type |
id_lc, lettre_type |
Restrict |
Restrict |
|
Immediate |
|
Check Constraints
There are no check constraints for table genotype
Indices
Name | Type | Function | Columns | Primary Key | Unique | Description |
---|---|---|---|---|---|---|
btree |
|
code_crb32 |
|
|
||
btree |
|
idespece, lettre_type, nom_court |
|
|
||
btree |
|
iduser |
|
|
|
|
btree |
|
idgeno |
|
Triggers
There are no triggers for table genotype
Rules
There are no rules for table genotype
Policies
There are no policies for table genotype
Referenced
Table | Schema | Foreign Key | Columns | FK Table | FK Columns | Delete Action | Update Action | Deferrable | Check Time | Description |
---|---|---|---|---|---|---|---|---|---|---|
idgeno_autre_cru |
idgeno |
Restrict |
Restrict |
|
Immediate |
|
||||
idgeno |
idgeno |
No Action |
No Action |
|
Immediate |
|
||||
idgeno |
idgeno |
No Action |
No Action |
|
Immediate |
|
||||
idgeno |
idgeno |
No Action |
No Action |
|
Immediate |
|
||||
idgeno_mere |
idgeno |
No Action |
No Action |
|
Immediate |
|
||||
idgeno_pere |
idgeno |
No Action |
No Action |
|
Immediate |
|
||||
idgeno_gr |
idgeno |
No Action |
No Action |
|
Immediate |
|
||||
idgeno_du_melange |
idgeno |
No Action |
No Action |
|
Immediate |
|
||||
idmelange_g |
idgeno |
No Action |
No Action |
|
Immediate |
|
||||
idgeno |
idgeno |
No Action |
No Action |
|
Immediate |
|
||||
idgeno |
idgeno |
No Action |
No Action |
|
Immediate |
|
||||
idgeno_p |
idgeno |
No Action |
No Action |
|
Immediate |
|
||||
idgeno |
idgeno |
No Action |
No Action |
|
Immediate |
|
||||
idgeno |
idgeno |
No Action |
No Action |
|
Immediate |
|
||||
idgeno |
idgeno |
No Action |
No Action |
|
Immediate |
|
Properties
Property | Value |
---|---|
Inherited From |
|
Rows |
29155 |
Pages |
596 |
System |
|
Temporary |
|
With OID |
Definition
CREATE TABLE public.genotype (
idgeno SERIAL,
idgeno_pere INTEGER,
idespece INTEGER NOT NULL,
idlot_pollen_pere INTEGER,
idgeno_mere INTEGER,
lieu_origine INTEGER,
type_geno INTEGER NOT NULL,
nom_arrivee VARCHAR(60),
nom_court VARCHAR(30) NOT NULL,
date_creation DATE,
date_maj DATE,
commentaire TEXT,
programme VARCHAR(30),
annee_arrivee INTEGER,
recoltant_exp VARCHAR(150),
proprietaire_legal VARCHAR(90),
autre_lieu VARCHAR(128),
inscription_officielle VARCHAR(50),
mois_arrivee INTEGER,
recup_nom_lieu VARCHAR(50),
recup_code_espece VARCHAR(50),
recup_nom_geno VARCHAR(50),
recup_com1 TEXT,
recup_com2 TEXT,
recup_pollen VARCHAR(50),
recup_geno_mere VARCHAR(50),
recup_geno_pere VARCHAR(50),
code_crb32 VARCHAR(50),
iduser INTEGER,
nb_constituants INTEGER,
recolte_aire_nat VARCHAR(15),
lettre_type VARCHAR(1) NOT NULL,
CONSTRAINT crb32 UNIQUE(code_crb32),
CONSTRAINT espece_lettre_nom UNIQUE(idespece, lettre_type, nom_court),
CONSTRAINT pk_genotype PRIMARY KEY(idgeno),
CONSTRAINT fk_genotype_espece FOREIGN KEY (idespece)
REFERENCES public.espece(idespece)
ON DELETE NO ACTION
ON UPDATE NO ACTION
NOT DEFERRABLE,
CONSTRAINT fk_genotype_iduser FOREIGN KEY (iduser)
REFERENCES public.utilisateur(iduser)
ON DELETE RESTRICT
ON UPDATE RESTRICT
NOT DEFERRABLE,
CONSTRAINT fk_genotype_mere FOREIGN KEY (idgeno_mere)
REFERENCES public.genotype(idgeno)
ON DELETE NO ACTION
ON UPDATE NO ACTION
NOT DEFERRABLE,
CONSTRAINT fk_genotype_pere FOREIGN KEY (idgeno_pere)
REFERENCES public.genotype(idgeno)
ON DELETE NO ACTION
ON UPDATE NO ACTION
NOT DEFERRABLE,
CONSTRAINT fk_lieu_origine FOREIGN KEY (lieu_origine)
REFERENCES public.lieu(idlieu)
ON DELETE NO ACTION
ON UPDATE NO ACTION
NOT DEFERRABLE,
CONSTRAINT fk_pollen_pere FOREIGN KEY (idlot_pollen_pere)
REFERENCES public.pollen(idlot_pollen)
ON DELETE NO ACTION
ON UPDATE NO ACTION
NOT DEFERRABLE,
CONSTRAINT genotype_type_geno_fkey FOREIGN KEY (type_geno)
REFERENCES public.donnees_liste_classique(id_lc)
ON DELETE NO ACTION
ON UPDATE NO ACTION
NOT DEFERRABLE,
CONSTRAINT type_et_lettre FOREIGN KEY (type_geno, lettre_type)
REFERENCES public.type_genotype_ref(id_lc, lettre_type)
ON DELETE RESTRICT
ON UPDATE RESTRICT
NOT DEFERRABLE
) ;
COMMENT ON COLUMN public.genotype.idgeno_pere
IS 'utilisé seulement pour les croisements.
Le parent d''un clone OGM est un idgeno_mere (quel que soit le sexe du clone ogm)';
COMMENT ON COLUMN public.genotype.idgeno_mere
IS 'Le parent d''un clone OGM est un idgeno_mere (quel que soit le sexe du clone ogm)';
COMMENT ON COLUMN public.genotype.nom_court
IS 'Saisie :sans espace devant ou derrière, sans zéro devant, majuscule.
Modification :sans espace devant ou derrière, majuscule ; la présence de zéros devant doit être testée pour éviter des doublons.';
COMMENT ON COLUMN public.genotype.code_crb32
IS '05-06-2007. Code international des ressources genetiques : pays espece identifiant.';
COMMENT ON COLUMN public.genotype.iduser
IS '12-10-2007 tracabiltté';
COMMENT ON COLUMN public.genotype.nb_constituants
IS '29-10-2007. Uniquement pour les melanges et les Desc Paternelles.';
COMMENT ON COLUMN public.genotype.recolte_aire_nat
IS 'aout 2008. recolté naturel dans son aire naturelle (oui, non, vide). ceci dépend du pays de récolte';
COMMENT ON COLUMN public.genotype.lettre_type
IS 'HVS. 15-03-2007 : variable qui reprend type_genotype_ref.champ_lettre. 10-11-2009 : copie de l ancienne variable lettre_type(qui a été renommée en zzlettre_type) qui était en CHAR au lieu de VARCHAR';
CREATE INDEX fki_genotype_iduser ON public.genotype
USING btree (iduser);
This file was generated with SQL Manager for PostgreSQL (www.pgsqlmanager.com) |