Advertisement
Carloswaldo

Base diccionario

Dec 10th, 2014
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --
  2. -- PostgreSQL database dump
  3. --
  4.  
  5. SET statement_timeout = 0;
  6. SET lock_timeout = 0;
  7. SET client_encoding = 'UTF8';
  8. SET standard_conforming_strings = on;
  9. SET check_function_bodies = false;
  10. SET client_min_messages = warning;
  11.  
  12. --
  13. -- Name: plpgsql; Type: EXTENSION; Schema: -; Owner:
  14. --
  15.  
  16. CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog;
  17.  
  18.  
  19. --
  20. -- Name: EXTENSION plpgsql; Type: COMMENT; Schema: -; Owner:
  21. --
  22.  
  23. COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language';
  24.  
  25.  
  26. SET search_path = public, pg_catalog;
  27.  
  28. SET default_tablespace = '';
  29.  
  30. SET default_with_oids = false;
  31.  
  32. --
  33. -- Name: conjugaciones; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
  34. --
  35.  
  36. CREATE TABLE conjugaciones (
  37.     id_tipo_conjugacion integer,
  38.     id_tiempo integer,
  39.     id_persona integer,
  40.     conjugacion text
  41. );
  42.  
  43.  
  44. ALTER TABLE public.conjugaciones OWNER TO postgres;
  45.  
  46. --
  47. -- Name: personas; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
  48. --
  49.  
  50. CREATE TABLE personas (
  51.     id_persona integer NOT NULL,
  52.     persona text NOT NULL,
  53.     pronombre text
  54. );
  55.  
  56.  
  57. ALTER TABLE public.personas OWNER TO postgres;
  58.  
  59. --
  60. -- Name: personas_id_persona_seq; Type: SEQUENCE; Schema: public; Owner: postgres
  61. --
  62.  
  63. CREATE SEQUENCE personas_id_persona_seq
  64.     START WITH 1
  65.     INCREMENT BY 1
  66.     NO MINVALUE
  67.     NO MAXVALUE
  68.     CACHE 1;
  69.  
  70.  
  71. ALTER TABLE public.personas_id_persona_seq OWNER TO postgres;
  72.  
  73. --
  74. -- Name: personas_id_persona_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
  75. --
  76.  
  77. ALTER SEQUENCE personas_id_persona_seq OWNED BY personas.id_persona;
  78.  
  79.  
  80. --
  81. -- Name: raiz_verbos; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
  82. --
  83.  
  84. CREATE TABLE raiz_verbos (
  85.     id_raiz integer NOT NULL,
  86.     raiz text NOT NULL,
  87.     id_tipo_conjugacion integer NOT NULL,
  88.     infinitivo text NOT NULL
  89. );
  90.  
  91.  
  92. ALTER TABLE public.raiz_verbos OWNER TO postgres;
  93.  
  94. --
  95. -- Name: raiz_verbos_id_raiz_seq; Type: SEQUENCE; Schema: public; Owner: postgres
  96. --
  97.  
  98. CREATE SEQUENCE raiz_verbos_id_raiz_seq
  99.     START WITH 1
  100.     INCREMENT BY 1
  101.     NO MINVALUE
  102.     NO MAXVALUE
  103.     CACHE 1;
  104.  
  105.  
  106. ALTER TABLE public.raiz_verbos_id_raiz_seq OWNER TO postgres;
  107.  
  108. --
  109. -- Name: raiz_verbos_id_raiz_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
  110. --
  111.  
  112. ALTER SEQUENCE raiz_verbos_id_raiz_seq OWNED BY raiz_verbos.id_raiz;
  113.  
  114.  
  115. --
  116. -- Name: tiempos; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
  117. --
  118.  
  119. CREATE TABLE tiempos (
  120.     id_tiempo integer NOT NULL,
  121.     tiempo text NOT NULL,
  122.     id_modo integer
  123. );
  124.  
  125.  
  126. ALTER TABLE public.tiempos OWNER TO postgres;
  127.  
  128. --
  129. -- Name: tiempos_id_tiempo_seq; Type: SEQUENCE; Schema: public; Owner: postgres
  130. --
  131.  
  132. CREATE SEQUENCE tiempos_id_tiempo_seq
  133.     START WITH 1
  134.     INCREMENT BY 1
  135.     NO MINVALUE
  136.     NO MAXVALUE
  137.     CACHE 1;
  138.  
  139.  
  140. ALTER TABLE public.tiempos_id_tiempo_seq OWNER TO postgres;
  141.  
  142. --
  143. -- Name: tiempos_id_tiempo_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
  144. --
  145.  
  146. ALTER SEQUENCE tiempos_id_tiempo_seq OWNED BY tiempos.id_tiempo;
  147.  
  148.  
  149. --
  150. -- Name: tipos_conjugacion; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
  151. --
  152.  
  153. CREATE TABLE tipos_conjugacion (
  154.     id_tipo integer NOT NULL,
  155.     descripcion text
  156. );
  157.  
  158.  
  159. ALTER TABLE public.tipos_conjugacion OWNER TO postgres;
  160.  
  161. --
  162. -- Name: tipos_conjugacion_id_tipo_seq; Type: SEQUENCE; Schema: public; Owner: postgres
  163. --
  164.  
  165. CREATE SEQUENCE tipos_conjugacion_id_tipo_seq
  166.     START WITH 1
  167.     INCREMENT BY 1
  168.     NO MINVALUE
  169.     NO MAXVALUE
  170.     CACHE 1;
  171.  
  172.  
  173. ALTER TABLE public.tipos_conjugacion_id_tipo_seq OWNER TO postgres;
  174.  
  175. --
  176. -- Name: tipos_conjugacion_id_tipo_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
  177. --
  178.  
  179. ALTER SEQUENCE tipos_conjugacion_id_tipo_seq OWNED BY tipos_conjugacion.id_tipo;
  180.  
  181.  
  182. --
  183. -- Name: id_persona; Type: DEFAULT; Schema: public; Owner: postgres
  184. --
  185.  
  186. ALTER TABLE ONLY personas ALTER COLUMN id_persona SET DEFAULT nextval('personas_id_persona_seq'::regclass);
  187.  
  188.  
  189. --
  190. -- Name: id_raiz; Type: DEFAULT; Schema: public; Owner: postgres
  191. --
  192.  
  193. ALTER TABLE ONLY raiz_verbos ALTER COLUMN id_raiz SET DEFAULT nextval('raiz_verbos_id_raiz_seq'::regclass);
  194.  
  195.  
  196. --
  197. -- Name: id_tiempo; Type: DEFAULT; Schema: public; Owner: postgres
  198. --
  199.  
  200. ALTER TABLE ONLY tiempos ALTER COLUMN id_tiempo SET DEFAULT nextval('tiempos_id_tiempo_seq'::regclass);
  201.  
  202.  
  203. --
  204. -- Name: id_tipo; Type: DEFAULT; Schema: public; Owner: postgres
  205. --
  206.  
  207. ALTER TABLE ONLY tipos_conjugacion ALTER COLUMN id_tipo SET DEFAULT nextval('tipos_conjugacion_id_tipo_seq'::regclass);
  208.  
  209.  
  210. --
  211. -- Data for Name: conjugaciones; Type: TABLE DATA; Schema: public; Owner: postgres
  212. --
  213.  
  214. COPY conjugaciones (id_tipo_conjugacion, id_tiempo, id_persona, conjugacion) FROM stdin;
  215. 1   1   1   o
  216. 1   1   2   as
  217. 1   1   3   a
  218. 1   1   4   amos
  219. 1   1   5   áis
  220. 1   1   6   an
  221. \.
  222.  
  223.  
  224. --
  225. -- Data for Name: personas; Type: TABLE DATA; Schema: public; Owner: postgres
  226. --
  227.  
  228. COPY personas (id_persona, persona, pronombre) FROM stdin;
  229. 1   Primera Singular    yo
  230. 2   Segunda Singular    tú
  231. 3   Tercera Singular    él/ella/usted
  232. 4   Primera Plural  nosotros
  233. 5   Segunda Plural  vosotros
  234. 6   Tercera Plural  ellos/ellas/ustedes
  235. \.
  236.  
  237.  
  238. --
  239. -- Name: personas_id_persona_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
  240. --
  241.  
  242. SELECT pg_catalog.setval('personas_id_persona_seq', 6, true);
  243.  
  244.  
  245. --
  246. -- Data for Name: raiz_verbos; Type: TABLE DATA; Schema: public; Owner: postgres
  247. --
  248.  
  249. COPY raiz_verbos (id_raiz, raiz, id_tipo_conjugacion, infinitivo) FROM stdin;
  250. 1   am  1   amar
  251. 2   abale   1   abalear
  252. \.
  253.  
  254.  
  255. --
  256. -- Name: raiz_verbos_id_raiz_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
  257. --
  258.  
  259. SELECT pg_catalog.setval('raiz_verbos_id_raiz_seq', 2, true);
  260.  
  261.  
  262. --
  263. -- Data for Name: tiempos; Type: TABLE DATA; Schema: public; Owner: postgres
  264. --
  265.  
  266. COPY tiempos (id_tiempo, tiempo, id_modo) FROM stdin;
  267. 1   Presente Indicativo \N
  268. \.
  269.  
  270.  
  271. --
  272. -- Name: tiempos_id_tiempo_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
  273. --
  274.  
  275. SELECT pg_catalog.setval('tiempos_id_tiempo_seq', 1, true);
  276.  
  277.  
  278. --
  279. -- Data for Name: tipos_conjugacion; Type: TABLE DATA; Schema: public; Owner: postgres
  280. --
  281.  
  282. COPY tipos_conjugacion (id_tipo, descripcion) FROM stdin;
  283. 1   -ar regular
  284. \.
  285.  
  286.  
  287. --
  288. -- Name: tipos_conjugacion_id_tipo_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
  289. --
  290.  
  291. SELECT pg_catalog.setval('tipos_conjugacion_id_tipo_seq', 1, true);
  292.  
  293.  
  294. --
  295. -- Name: infinitivo_unique; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
  296. --
  297.  
  298. ALTER TABLE ONLY raiz_verbos
  299.     ADD CONSTRAINT infinitivo_unique UNIQUE (infinitivo);
  300.  
  301.  
  302. --
  303. -- Name: personas_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
  304. --
  305.  
  306. ALTER TABLE ONLY personas
  307.     ADD CONSTRAINT personas_pkey PRIMARY KEY (id_persona);
  308.  
  309.  
  310. --
  311. -- Name: tiempos_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
  312. --
  313.  
  314. ALTER TABLE ONLY tiempos
  315.     ADD CONSTRAINT tiempos_pkey PRIMARY KEY (id_tiempo);
  316.  
  317.  
  318. --
  319. -- Name: tipos_conjugacion_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
  320. --
  321.  
  322. ALTER TABLE ONLY tipos_conjugacion
  323.     ADD CONSTRAINT tipos_conjugacion_pkey PRIMARY KEY (id_tipo);
  324.  
  325.  
  326. --
  327. -- Name: conjugaciones_id_persona_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
  328. --
  329.  
  330. ALTER TABLE ONLY conjugaciones
  331.     ADD CONSTRAINT conjugaciones_id_persona_fkey FOREIGN KEY (id_persona) REFERENCES personas(id_persona);
  332.  
  333.  
  334. --
  335. -- Name: conjugaciones_id_tiempo_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
  336. --
  337.  
  338. ALTER TABLE ONLY conjugaciones
  339.     ADD CONSTRAINT conjugaciones_id_tiempo_fkey FOREIGN KEY (id_tiempo) REFERENCES tiempos(id_tiempo);
  340.  
  341.  
  342. --
  343. -- Name: conjugaciones_id_tipo_conjugacion_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
  344. --
  345.  
  346. ALTER TABLE ONLY conjugaciones
  347.     ADD CONSTRAINT conjugaciones_id_tipo_conjugacion_fkey FOREIGN KEY (id_tipo_conjugacion) REFERENCES tipos_conjugacion(id_tipo);
  348.  
  349.  
  350. --
  351. -- Name: raiz_verbos_tipos_conjugacion_fk; Type: FK CONSTRAINT; Schema: public; Owner: postgres
  352. --
  353.  
  354. ALTER TABLE ONLY raiz_verbos
  355.     ADD CONSTRAINT raiz_verbos_tipos_conjugacion_fk FOREIGN KEY (id_tipo_conjugacion) REFERENCES tipos_conjugacion(id_tipo);
  356.  
  357.  
  358. --
  359. -- Name: public; Type: ACL; Schema: -; Owner: postgres
  360. --
  361.  
  362. REVOKE ALL ON SCHEMA public FROM PUBLIC;
  363. REVOKE ALL ON SCHEMA public FROM postgres;
  364. GRANT ALL ON SCHEMA public TO postgres;
  365. GRANT ALL ON SCHEMA public TO PUBLIC;
  366.  
  367.  
  368. --
  369. -- PostgreSQL database dump complete
  370. --
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement