-
Notifications
You must be signed in to change notification settings - Fork 0
/
proyectoNucleo2.txt
334 lines (233 loc) · 10.1 KB
/
proyectoNucleo2.txt
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
-- PostgreSQL database dump
--
-- Dumped from database version 10.1
-- Dumped by pg_dump version 10.1
SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SET check_function_bodies = false;
SET client_min_messages = warning;
SET row_security = off;
--
-- Name: plpgsql; Type: EXTENSION; Schema: -; Owner:
--
CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog;
--
-- Name: EXTENSION plpgsql; Type: COMMENT; Schema: -; Owner:
--
COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language';
SET search_path = public, pg_catalog;
SET default_tablespace = '';
SET default_with_oids = false;
--
-- Name: ar_internal_metadata; Type: TABLE; Schema: public; Owner: postgres
--
CREATE TABLE ar_internal_metadata (
key character varying NOT NULL,
value character varying,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL
);
ALTER TABLE ar_internal_metadata OWNER TO postgres;
--
-- Name: equipos; Type: TABLE; Schema: public; Owner: postgres
--
CREATE TABLE equipos (
id bigint NOT NULL,
cod_equipo integer,
nom_equipo text,
activo_equipo boolean,
fecha_creacion timestamp without time zone,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL,
porcentaje numeric(11,2)
);
ALTER TABLE equipos OWNER TO postgres;
--
-- Name: equipos_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE equipos_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE equipos_id_seq OWNER TO postgres;
--
-- Name: equipos_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE equipos_id_seq OWNED BY equipos.id;
--
-- Name: resultados; Type: TABLE; Schema: public; Owner: postgres
--
CREATE TABLE resultados (
id bigint NOT NULL,
cod_resultado integer,
enfrentamiento text,
puntos_partido integer,
goles_marcados integer,
goles_recibidos integer,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL
);
ALTER TABLE resultados OWNER TO postgres;
--
-- Name: resultados_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE resultados_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE resultados_id_seq OWNER TO postgres;
--
-- Name: resultados_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE resultados_id_seq OWNED BY resultados.id;
--
-- Name: schema_migrations; Type: TABLE; Schema: public; Owner: postgres
--
CREATE TABLE schema_migrations (
version character varying NOT NULL
);
ALTER TABLE schema_migrations OWNER TO postgres;
--
-- Name: tipo_equipos; Type: TABLE; Schema: public; Owner: postgres
--
CREATE TABLE tipo_equipos (
id bigint NOT NULL,
cod_tipo_equipo integer,
nom_tipo_equipo text,
activo_tipo_equipo boolean,
fecha_creacion timestamp without time zone,
descripcion text,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL
);
ALTER TABLE tipo_equipos OWNER TO postgres;
--
-- Name: tipo_equipos_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE tipo_equipos_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE tipo_equipos_id_seq OWNER TO postgres;
--
-- Name: tipo_equipos_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE tipo_equipos_id_seq OWNED BY tipo_equipos.id;
--
-- Name: equipos id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY equipos ALTER COLUMN id SET DEFAULT nextval('equipos_id_seq'::regclass);
--
-- Name: resultados id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY resultados ALTER COLUMN id SET DEFAULT nextval('resultados_id_seq'::regclass);
--
-- Name: tipo_equipos id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY tipo_equipos ALTER COLUMN id SET DEFAULT nextval('tipo_equipos_id_seq'::regclass);
--
-- Data for Name: ar_internal_metadata; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY ar_internal_metadata (key, value, created_at, updated_at) FROM stdin;
\.
--
-- Data for Name: equipos; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY equipos (id, cod_equipo, nom_equipo, activo_equipo, fecha_creacion, created_at, updated_at, porcentaje) FROM stdin;
1 1 Rusia t 2018-04-24 00:00:00 2018-04-24 00:00:00 2018-04-24 00:00:00 50.70
2 2 Egipto t 2018-04-25 00:00:00 2018-04-25 00:00:00 2018-04-25 00:00:00 46.10
3 3 Arabia Saudita t 2018-04-25 00:00:00 2018-04-25 00:00:00 2018-04-25 00:00:00 43.90
4 4 Uruguay t 2018-04-25 00:00:00 2018-04-25 00:00:00 2018-04-25 00:00:00 59.20
5 5 Portugal t 2018-04-25 00:00:00 2018-04-25 00:00:00 2018-04-25 00:00:00 55.60
6 6 España t 2018-04-25 00:00:00 2018-04-25 00:00:00 2018-04-25 00:00:00 73.60
7 7 Irán t 2018-04-25 00:00:00 2018-04-25 00:00:00 2018-04-25 00:00:00 41.30
8 8 Marruecos t 2018-04-25 00:00:00 2018-04-25 00:00:00 2018-04-25 00:00:00 29.50
9 9 Francia t 2018-04-25 00:00:00 2018-04-25 00:00:00 2018-04-25 00:00:00 75.80
10 10 Perú t 2018-04-25 00:00:00 2018-04-25 00:00:00 2018-04-25 00:00:00 42.60
11 11 Dinamarca t 2018-04-25 00:00:00 2018-04-25 00:00:00 2018-04-25 00:00:00 39.60
12 12 Australia t 2018-04-25 00:00:00 2018-04-25 00:00:00 2018-04-25 00:00:00 42.00
13 13 Argentina t 2018-04-25 00:00:00 2018-04-25 00:00:00 2018-04-25 00:00:00 75.60
14 14 Croacia t 2018-04-25 00:00:00 2018-04-25 00:00:00 2018-04-25 00:00:00 45.20
15 15 Islandia t 2018-04-25 00:00:00 2018-04-25 00:00:00 2018-04-25 00:00:00 38.50
16 16 Nigeria t 2018-04-25 00:00:00 2018-04-25 00:00:00 2018-04-25 00:00:00 40.60
17 17 Brasil t 2018-04-25 00:00:00 2018-04-25 00:00:00 2018-04-25 00:00:00 80.20
18 18 Costa Rica t 2018-04-25 00:00:00 2018-04-25 00:00:00 2018-04-25 00:00:00 36.60
19 19 Suiza t 2018-04-25 00:00:00 2018-04-25 00:00:00 2018-04-25 00:00:00 40.20
20 20 Serbia t 2018-04-25 00:00:00 2018-04-25 00:00:00 2018-04-25 00:00:00 43.00
21 21 Alemania t 2018-04-25 00:00:00 2018-04-25 00:00:00 2018-04-25 00:00:00 76.10
22 22 México t 2018-04-25 00:00:00 2018-04-25 00:00:00 2018-04-25 00:00:00 43.70
23 23 Corea del Sur t 2018-04-25 00:00:00 2018-04-25 00:00:00 2018-04-25 00:00:00 36.30
24 24 Suecia t 2018-04-25 00:00:00 2018-04-25 00:00:00 2018-04-25 00:00:00 43.90
25 25 Belgica t 2018-04-25 00:00:00 2018-04-25 00:00:00 2018-04-25 00:00:00 65.40
26 26 Inglaterra t 2018-04-25 00:00:00 2018-04-25 00:00:00 2018-04-25 00:00:00 53.90
27 27 Panamá t 2018-04-25 00:00:00 2018-04-25 00:00:00 2018-04-25 00:00:00 39.50
28 28 Túnez t 2018-04-25 00:00:00 2018-04-25 00:00:00 2018-04-25 00:00:00 41.20
29 29 Polonia t 2018-04-25 00:00:00 2018-04-25 00:00:00 2018-04-25 00:00:00 47.50
30 30 Colombia t 2018-04-25 00:00:00 2018-04-25 00:00:00 2018-04-25 00:00:00 55.20
31 31 Japón t 2018-04-25 00:00:00 2018-04-25 00:00:00 2018-04-25 00:00:00 51.80
32 32 Senegal t 2018-04-25 00:00:00 2018-04-25 00:00:00 2018-04-25 00:00:00 45.60
\.
--
-- Data for Name: resultados; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY resultados (id, cod_resultado, enfrentamiento, puntos_partido, goles_marcados, goles_recibidos, created_at, updated_at) FROM stdin;
\.
--
-- Data for Name: schema_migrations; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY schema_migrations (version) FROM stdin;
\.
--
-- Data for Name: tipo_equipos; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY tipo_equipos (id, cod_tipo_equipo, nom_tipo_equipo, activo_tipo_equipo, fecha_creacion, descripcion, created_at, updated_at) FROM stdin;
\.
--
-- Name: equipos_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--
SELECT pg_catalog.setval('equipos_id_seq', 32, true);
--
-- Name: resultados_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--
SELECT pg_catalog.setval('resultados_id_seq', 1, false);
--
-- Name: tipo_equipos_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--
SELECT pg_catalog.setval('tipo_equipos_id_seq', 1, false);
--
-- Name: ar_internal_metadata ar_internal_metadata_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY ar_internal_metadata
ADD CONSTRAINT ar_internal_metadata_pkey PRIMARY KEY (key);
--
-- Name: equipos equipos_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY equipos
ADD CONSTRAINT equipos_pkey PRIMARY KEY (id);
--
-- Name: resultados resultados_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY resultados
ADD CONSTRAINT resultados_pkey PRIMARY KEY (id);
--
-- Name: schema_migrations schema_migrations_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY schema_migrations
ADD CONSTRAINT schema_migrations_pkey PRIMARY KEY (version);
--
-- Name: tipo_equipos tipo_equipos_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY tipo_equipos
ADD CONSTRAINT tipo_equipos_pkey PRIMARY KEY (id);
--
-- PostgreSQL database dump complete
--