Schema
Owner
postgres
Tablespace
(default)
Descriptions
Table des phases permettant de caractériser les interventions
Columns
PK | FK | Name | Data type | Not null | Unique | Inherited | Default | Description |
---|---|---|---|---|---|---|---|---|
|
pha_id |
serial |
|
nextval('tr_phase_pha_pha_id_seq'::regclass) |
identifiant automatique numérique de la phase |
|||
|
|
pha_code |
varchar(24) |
|
|
code unique de la phase |
||
|
|
pha_nom |
varchar(48) |
|
|
|
Nom clair de la phase |
|
|
|
pha_description |
varchar(255) |
|
|
|
Description de la phase |
Foreign Keys
There are no foreign keys for table tr_phase_pha
Check Constraints
There are no check constraints for table tr_phase_pha
Indices
Name | Type | Function | Columns | Primary Key | Unique | Description |
---|---|---|---|---|---|---|
btree |
|
pha_code |
|
Le code de la phase est unique |
||
btree |
|
pha_id |
|
Triggers
There are no triggers for table tr_phase_pha
Rules
There are no rules for table tr_phase_pha
Policies
There are no policies for table tr_phase_pha
Referenced
Table | Schema | Foreign Key | Columns | FK Table | FK Columns | Delete Action | Update Action | Deferrable | Check Time | Description |
---|---|---|---|---|---|---|---|---|---|---|
int_pha_id |
pha_id |
No Action |
No Action |
|
Immediate |
Une intervention est rattachée à une et une seule phase |
Properties
Property | Value |
---|---|
Inherited From |
|
Rows |
0 |
Pages |
0 |
System |
|
Temporary |
|
With OID |
Definition
CREATE TABLE public.tr_phase_pha (
pha_id SERIAL,
pha_code VARCHAR(24) NOT NULL,
pha_nom VARCHAR(48) NOT NULL,
pha_description VARCHAR(255) NOT NULL,
CONSTRAINT c_uni_code_pha UNIQUE(pha_code),
CONSTRAINT tr_phase_pha_pkey PRIMARY KEY(pha_id)
) ;
COMMENT ON TABLE public.tr_phase_pha
IS 'Table des phases permettant de caractériser les interventions';
COMMENT ON COLUMN public.tr_phase_pha.pha_id
IS 'identifiant automatique numérique de la phase';
COMMENT ON COLUMN public.tr_phase_pha.pha_code
IS 'code unique de la phase';
COMMENT ON COLUMN public.tr_phase_pha.pha_nom
IS 'Nom clair de la phase';
COMMENT ON COLUMN public.tr_phase_pha.pha_description
IS 'Description de la phase';
COMMENT ON CONSTRAINT c_uni_code_pha ON public.tr_phase_pha
IS 'Le code de la phase est unique';
This file was generated with SQL Manager for PostgreSQL (www.pgsqlmanager.com) |