Schema
Owner
woodseer
Tablespace
(default)
Descriptions
Table of files of data and information
Fields
PK | FK | Name | Data type | Not null | Unique | Inherited | Default | Description |
---|---|---|---|---|---|---|---|---|
|
fil_id |
serial |
|
nextval('tr_file_fil_fil_id_seq'::regclass) |
Automatic numeric identifier of the file |
|||
|
fil_typf_id |
integer |
|
|
|
automatic numeric identifier of the type of file |
||
|
|
fil_name |
varchar(32) |
|
|
|
File name |
|
|
|
fil_description |
varchar(255) |
|
|
|
|
Description of the file |
|
|
fil_url |
varchar(255) |
|
|
|
|
link to the file |
Foreign Keys
Name | Fields | FK Table | FK Fields | Delete Action | Update Action | Deferrable | Check Time | Description |
---|---|---|---|---|---|---|---|---|
fil_typf_id |
typf_id |
No Action |
No Action |
|
Immediate |
The file must correspond to a file type |
Check Constraints
There are no check constraints for table tr_file_fil
Indices
Name | Type | Function | Fields | Primary Key | Unique | Description |
---|---|---|---|---|---|---|
btree |
|
fil_name, fil_url |
|
The name / url pair of a file must be unique |
||
btree |
|
fil_id |
|
|||
btree |
|
fil_typf_id |
|
|
Foreign key index to speed up updates / deletion |
Triggers
There are no triggers for table tr_file_fil
Rules
There are no rules for table tr_file_fil
Policies
There are no policies for table tr_file_fil
Referenced
Table | Schema | Foreign Key | Fields | FK Table | FK Fields | Delete Action | Update Action | Deferrable | Check Time | Description |
---|---|---|---|---|---|---|---|---|---|---|
acq_fil_id |
fil_id |
No Action |
No Action |
|
Immediate |
an acquisition must be associated to one source file |
||||
det_fil_id |
fil_id |
No Action |
No Action |
|
Immediate |
a singularity detection is associated to one and only one source file |
||||
macq_fil_id |
fil_id |
No Action |
No Action |
|
Immediate |
a measure can be attached to O or 1 file |
||||
mdet_fil_id |
fil_id |
No Action |
No Action |
|
Immediate |
a measure can be attached to O or 1 file |
||||
mobj_fil_id |
fil_id |
No Action |
No Action |
|
Immediate |
a measure can be attached to O or 1 file |
||||
mzon_fil_id |
fil_id |
No Action |
No Action |
|
Immediate |
a measurement can be attached to O or 1 file |
||||
prot_fil_id |
fil_id |
No Action |
No Action |
|
Immediate |
|
Properties
Property | Value |
---|---|
Inherited From |
|
Rows |
81 |
Pages |
2 |
System |
|
Temporary |
|
With OID |
Definition
CREATE TABLE public.tr_file_fil (
fil_id SERIAL,
fil_typf_id INTEGER NOT NULL,
fil_name VARCHAR(32) NOT NULL,
fil_description VARCHAR(255),
fil_url VARCHAR(255),
CONSTRAINT c_uni_name_url_fil UNIQUE(fil_name, fil_url),
CONSTRAINT tr_file_fil_pkey PRIMARY KEY(fil_id),
CONSTRAINT c_fk_typf_fil FOREIGN KEY (fil_typf_id)
REFERENCES public.tr_type_file_typf(typf_id)
ON DELETE NO ACTION
ON UPDATE NO ACTION
NOT DEFERRABLE
) ;
COMMENT ON TABLE public.tr_file_fil
IS 'Table of files of data and information';
COMMENT ON COLUMN public.tr_file_fil.fil_id
IS 'Automatic numeric identifier of the file';
COMMENT ON COLUMN public.tr_file_fil.fil_typf_id
IS 'automatic numeric identifier of the type of file';
COMMENT ON COLUMN public.tr_file_fil.fil_name
IS 'File name';
COMMENT ON COLUMN public.tr_file_fil.fil_description
IS 'Description of the file';
COMMENT ON COLUMN public.tr_file_fil.fil_url
IS 'link to the file';
COMMENT ON CONSTRAINT c_fk_typf_fil ON public.tr_file_fil
IS 'The file must correspond to a file type';
COMMENT ON CONSTRAINT c_uni_name_url_fil ON public.tr_file_fil
IS 'The name / url pair of a file must be unique';
CREATE INDEX x_btr_fkey_typf_file ON public.tr_file_fil
USING btree (fil_typf_id);
COMMENT ON INDEX public.x_btr_fkey_typf_file
IS 'Foreign key index to speed up updates / deletion';
This file was generated with SQL Manager for PostgreSQL (www.pgsqlmanager.com) at 07/12/2018 13:23 |