Schema
Owner
albenard
Tablespace
(default)
Descriptions
There is no description for table lieu
Columns
PK | FK | Name | Data type | Not null | Unique | Inherited | Default | Description |
---|---|---|---|---|---|---|---|---|
|
idlieu |
serial |
|
nextval('public.lieu_idlieu_seq'::text::regclass) |
|
|||
|
idlc_type_lieu |
integer |
|
|
|
|
||
|
idlieu_station_meteo |
integer |
|
|
|
|
|
|
|
idlieu_commun |
integer |
|
|
|
|
|
|
|
|
nom_lieu |
varchar(50) |
|
|
Saisie ou modification :sans espace devant ou derrière, majuscule, sans zéros devant. |
||
|
|
nom_origine |
varchar(50) |
|
|
|
|
|
|
|
date_creation |
date |
|
|
|
|
|
|
|
date_maj |
date |
|
|
|
|
|
|
|
commune |
varchar(50) |
|
|
|
HVS: replissage de commune par nom_origine ou nom_lieu, puis NOT NULL |
|
|
|
commentaire |
text |
|
|
|
|
|
|
|
place_lieu_commun |
varchar(70) |
|
|
|
|
|
|
|
recup_type_lieu |
varchar(50) |
|
|
|
|
|
|
|
recup_nom_lieu_meteo |
varchar(50) |
|
|
|
|
|
|
|
recup_nom_lieu_commun |
varchar(50) |
|
|
|
|
|
|
|
recup_com1 |
text |
|
|
|
|
|
|
|
recup_com2 |
text |
|
|
|
|
|
|
|
recup_com3 |
text |
|
|
|
|
|
|
|
recup_com4 |
text |
|
|
|
|
|
|
|
recup_com5 |
text |
|
|
|
|
|
|
idpays |
integer |
|
|
|
HVS: ajout de pays xxx pour inconnu puis not null |
||
|
iduser |
integer |
|
|
|
|
12-10-2007 tracabiltté |
Foreign Keys
Name | Columns | FK Table | FK Columns | Delete Action | Update Action | Deferrable | Check Time | Description |
---|---|---|---|---|---|---|---|---|
idpays |
idpays |
No Action |
No Action |
|
Immediate |
|
||
idlieu_commun |
idlieu |
No Action |
No Action |
|
Immediate |
|
||
iduser |
iduser |
Restrict |
Restrict |
|
Immediate |
|
||
idlieu_station_meteo |
idlieu |
No Action |
No Action |
|
Immediate |
|
||
idlc_type_lieu |
id_lc |
No Action |
No Action |
|
Immediate |
|
Check Constraints
There are no check constraints for table lieu
Indices
Name | Type | Function | Columns | Primary Key | Unique | Description |
---|---|---|---|---|---|---|
btree |
|
iduser |
|
|
|
|
btree |
|
nom_lieu |
|
|
||
btree |
|
idlieu |
|
Triggers
There are no triggers for table lieu
Rules
There are no rules for table lieu
Policies
There are no policies for table lieu
Referenced
Table | Schema | Foreign Key | Columns | FK Table | FK Columns | Delete Action | Update Action | Deferrable | Check Time | Description |
---|---|---|---|---|---|---|---|---|---|---|
idlieu_croisement |
idlieu |
No Action |
No Action |
|
Immediate |
|
||||
idlieu_ramet |
idlieu |
Restrict |
Restrict |
|
Immediate |
|
||||
idlieu |
idlieu |
No Action |
No Action |
|
Immediate |
|
||||
idlieu |
idlieu |
No Action |
No Action |
|
Immediate |
|
||||
idlieu |
idlieu |
No Action |
No Action |
|
Immediate |
|
||||
lieu_origine |
idlieu |
No Action |
No Action |
|
Immediate |
|
||||
idlieu_recolte_gr |
idlieu |
No Action |
No Action |
|
Immediate |
|
||||
idlieu_commun |
idlieu |
No Action |
No Action |
|
Immediate |
|
||||
idlieu_station_meteo |
idlieu |
No Action |
No Action |
|
Immediate |
|
||||
idlieu |
idlieu |
No Action |
No Action |
|
Immediate |
|
||||
idlieu |
idlieu |
No Action |
No Action |
|
Immediate |
|
||||
idlieu |
idlieu |
No Action |
No Action |
|
Immediate |
|
||||
idlieu |
idlieu |
No Action |
No Action |
|
Immediate |
|
||||
idlieu_recolte_p |
idlieu |
No Action |
No Action |
|
Immediate |
|
||||
idlieu |
idlieu |
Restrict |
Restrict |
|
Immediate |
|
||||
idlieu_dest_p |
idlieu |
No Action |
No Action |
|
Immediate |
|
||||
idlieu |
idlieu |
No Action |
No Action |
|
Immediate |
|
||||
idlieu |
idlieu |
No Action |
No Action |
|
Immediate |
|
||||
idlieu |
idlieu |
No Action |
No Action |
|
Immediate |
|
Properties
Property | Value |
---|---|
Inherited From |
|
Rows |
4058 |
Pages |
73 |
System |
|
Temporary |
|
With OID |
Definition
CREATE TABLE public.lieu (
idlieu SERIAL,
idlc_type_lieu INTEGER NOT NULL,
idlieu_station_meteo INTEGER,
idlieu_commun INTEGER,
nom_lieu VARCHAR(50) NOT NULL,
nom_origine VARCHAR(50),
date_creation DATE,
date_maj DATE,
commune VARCHAR(50) NOT NULL,
commentaire TEXT,
place_lieu_commun VARCHAR(70),
recup_type_lieu VARCHAR(50),
recup_nom_lieu_meteo VARCHAR(50),
recup_nom_lieu_commun VARCHAR(50),
recup_com1 TEXT,
recup_com2 TEXT,
recup_com3 TEXT,
recup_com4 TEXT,
recup_com5 TEXT,
idpays INTEGER NOT NULL,
iduser INTEGER,
CONSTRAINT lieu_nom_lieu_key UNIQUE(nom_lieu),
CONSTRAINT pk_lieu PRIMARY KEY(idlieu),
FOREIGN KEY (idpays)
REFERENCES public.pays_ref(idpays)
ON DELETE NO ACTION
ON UPDATE NO ACTION
NOT DEFERRABLE,
CONSTRAINT fk_lieu_commun FOREIGN KEY (idlieu_commun)
REFERENCES public.lieu(idlieu)
ON DELETE NO ACTION
ON UPDATE NO ACTION
NOT DEFERRABLE,
CONSTRAINT fk_lieu_iduser FOREIGN KEY (iduser)
REFERENCES public.utilisateur(iduser)
ON DELETE RESTRICT
ON UPDATE RESTRICT
NOT DEFERRABLE,
CONSTRAINT fk_station_meteo FOREIGN KEY (idlieu_station_meteo)
REFERENCES public.lieu(idlieu)
ON DELETE NO ACTION
ON UPDATE NO ACTION
NOT DEFERRABLE,
CONSTRAINT fk_type_lieu FOREIGN KEY (idlc_type_lieu)
REFERENCES public.donnees_liste_classique(id_lc)
ON DELETE NO ACTION
ON UPDATE NO ACTION
NOT DEFERRABLE
) ;
COMMENT ON COLUMN public.lieu.nom_lieu
IS 'Saisie ou modification :sans espace devant ou derrière, majuscule, sans zéros devant.';
COMMENT ON COLUMN public.lieu.commune
IS 'HVS: replissage de commune par nom_origine ou nom_lieu, puis NOT NULL';
COMMENT ON COLUMN public.lieu.idpays
IS 'HVS: ajout de pays xxx pour inconnu puis not null';
COMMENT ON COLUMN public.lieu.iduser
IS '12-10-2007 tracabiltté';
CREATE INDEX fki_lieu_iduser ON public.lieu
USING btree (iduser);
This file was generated with SQL Manager for PostgreSQL (www.pgsqlmanager.com) |