Schema
Owner
postgres
Tablespace
(default)
Descriptions
table contenant les différents usages possibles des variables
Columns
PK | FK | Name | Data type | Not null | Unique | Inherited | Default | Description |
---|---|---|---|---|---|---|---|---|
|
usg_id |
serial |
|
nextval('tr_usage_usg_usg_id_seq'::regclass) |
Identifiant automatique numérique de l'usage |
|||
|
|
usg_nom |
varchar(30) |
|
|
|
nom de l'usage |
|
|
|
usg_description |
varchar(250) |
|
|
|
description de l'usage |
|
|
|
usg_code |
varchar(16) |
|
|
code unique de l'usage |
Foreign Keys
There are no foreign keys for table tr_usage_usg
Check Constraints
There are no check constraints for table tr_usage_usg
Indices
Name | Type | Function | Columns | Primary Key | Unique | Description |
---|---|---|---|---|---|---|
btree |
|
usg_code |
|
le code de l'usage doit être unique |
||
btree |
|
usg_id |
|
Triggers
There are no triggers for table tr_usage_usg
Rules
There are no rules for table tr_usage_usg
Policies
There are no policies for table tr_usage_usg
Referenced
Table | Schema | Foreign Key | Columns | FK Table | FK Columns | Delete Action | Update Action | Deferrable | Check Time | Description |
---|---|---|---|---|---|---|---|---|---|---|
usv_usg_id |
usg_id |
No Action |
No Action |
|
Immediate |
Un lien usage / variable est rattaché à un et un seul usage |
Properties
Property | Value |
---|---|
Inherited From |
|
Rows |
2 |
Pages |
1 |
System |
|
Temporary |
|
With OID |
Definition
CREATE TABLE public.tr_usage_usg (
usg_id SERIAL,
usg_nom VARCHAR(30) NOT NULL,
usg_description VARCHAR(250) NOT NULL,
usg_code VARCHAR(16) NOT NULL,
CONSTRAINT c_uni_code_usg UNIQUE(usg_code),
CONSTRAINT tr_utilisation_uti_pkey PRIMARY KEY(usg_id)
) ;
COMMENT ON TABLE public.tr_usage_usg
IS 'table contenant les différents usages possibles des variables';
COMMENT ON COLUMN public.tr_usage_usg.usg_id
IS 'Identifiant automatique numérique de l''usage';
COMMENT ON COLUMN public.tr_usage_usg.usg_nom
IS 'nom de l''usage';
COMMENT ON COLUMN public.tr_usage_usg.usg_description
IS 'description de l''usage';
COMMENT ON COLUMN public.tr_usage_usg.usg_code
IS 'code unique de l''usage';
COMMENT ON CONSTRAINT c_uni_code_usg ON public.tr_usage_usg
IS 'le code de l''usage doit être unique';
This file was generated with SQL Manager for PostgreSQL (www.pgsqlmanager.com) at 07/12/2018 13:23 |