1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
|
--
-- Name: familleproduit; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE familleproduit (
idfamille integer NOT NULL,
nomfamille character varying(30) NOT NULL,
description character varying(250)
);
ALTER TABLE familleproduit OWNER TO postgres;
--
-- Name: famille_idfamille_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE famille_idfamille_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE famille_idfamille_seq OWNER TO postgres;
--
-- Name: famille_idfamille_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE famille_idfamille_seq OWNED BY familleproduit.idfamille;
--
-- Name: idfamille; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY familleproduit ALTER COLUMN idfamille SET DEFAULT nextval('famille_idfamille_seq'::regclass);
--
-- Name: famille_nom_key; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
--
ALTER TABLE ONLY familleproduit
ADD CONSTRAINT famille_nom_key UNIQUE (nomfamille);
--
-- Name: prk_constraint_famille; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
--
ALTER TABLE ONLY familleproduit
ADD CONSTRAINT prk_constraint_famille PRIMARY KEY (idfamille);
--
-- Name: familleproduit_idfamille_key; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
--
CREATE UNIQUE INDEX familleproduit_idfamille_key ON familleproduit USING btree (idfamille);
--
-- Name: familleproduit_nomfamille_key; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
--
CREATE UNIQUE INDEX familleproduit_nomfamille_key ON familleproduit USING btree (nomfamille); |
Partager