Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Table: cep.cidade
- -- DROP TABLE IF EXISTS cep.cidade;
- CREATE TABLE IF NOT EXISTS cep.cidade
- (
- id SERIAL NOT NULL,
- nome character varying COLLATE pg_catalog."default",
- estado_id integer,
- CONSTRAINT cidade_pkey PRIMARY KEY (id),
- CONSTRAINT cidade_estado_id_fkey FOREIGN KEY (estado_id)
- REFERENCES cep.estado (id) MATCH SIMPLE
- ON UPDATE NO ACTION
- ON DELETE NO ACTION
- )
- TABLESPACE pg_default;
- ALTER TABLE IF EXISTS cep.cidade
- OWNER to postgres;
Add Comment
Please, Sign In to add comment