forked from Coded/SIPRP
				
			
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							45 lines
						
					
					
						
							905 B
						
					
					
				
			
		
		
	
	
							45 lines
						
					
					
						
							905 B
						
					
					
				| -- Table: ecd_oficial
 | |
| 
 | |
| -- DROP TABLE ecd_oficial;
 | |
| 
 | |
| CREATE TABLE ecd_oficial
 | |
| (
 | |
|   id serial NOT NULL,
 | |
|   descricao varchar(255),
 | |
|   descricao_plain varchar(255),
 | |
|   ordem int4,
 | |
|   activo char(1),
 | |
|   CONSTRAINT ecd_oficial_pkey PRIMARY KEY (id)
 | |
| ) 
 | |
| WITHOUT OIDS;
 | |
| ALTER TABLE ecd_oficial OWNER TO postgres;
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| -- Table: prestadores
 | |
| 
 | |
| -- DROP TABLE prestadores;
 | |
| 
 | |
| CREATE TABLE prestadores
 | |
| (
 | |
|   id serial NOT NULL,
 | |
|   nome varchar(255),
 | |
|   nome_plain varchar(255),
 | |
|   morada varchar(2048),
 | |
|   codigo_postal varchar(16),
 | |
|   localidade varchar(255),
 | |
|   localidade_cp varchar(255),
 | |
|   contacto_id int4,
 | |
|   inicio date,
 | |
|   fim date,
 | |
|   ordem int4,
 | |
|   activo char(1),
 | |
|   CONSTRAINT prestadores_pkey PRIMARY KEY (id),
 | |
|   CONSTRAINT prestadores_contacto_id_fkey FOREIGN KEY (contacto_id)
 | |
|       REFERENCES contactos (id) MATCH SIMPLE
 | |
|       ON UPDATE NO ACTION ON DELETE NO ACTION
 | |
| ) 
 | |
| WITHOUT OIDS;
 | |
| ALTER TABLE prestadores OWNER TO postgres;
 |