custom_fields.sql
7.62 KB
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
--
-- PostgreSQL database dump
--
-- Dumped from database version 9.3.10
-- Dumped by pg_dump version 9.3.10
-- Started on 2016-01-22 16:58:22 BRT
SET statement_timeout = 0;
SET lock_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SET check_function_bodies = false;
SET client_min_messages = warning;
SET search_path = public, pg_catalog;
SET default_tablespace = '';
SET default_with_oids = false;
--
-- TOC entry 200 (class 1259 OID 21961)
-- Name: custom_fields; Type: TABLE; Schema: public; Owner: j; Tablespace:
--
CREATE TABLE custom_fields (
id integer NOT NULL,
name character varying,
format character varying DEFAULT ''::character varying,
default_value text DEFAULT ''::text,
customized_type character varying,
extras text DEFAULT ''::text,
active boolean DEFAULT false,
required boolean DEFAULT false,
signup boolean DEFAULT false,
environment_id integer,
created_at timestamp without time zone,
updated_at timestamp without time zone
);
ALTER TABLE public.custom_fields OWNER TO j;
--
-- TOC entry 199 (class 1259 OID 21959)
-- Name: custom_fields_id_seq; Type: SEQUENCE; Schema: public; Owner: j
--
CREATE SEQUENCE custom_fields_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.custom_fields_id_seq OWNER TO j;
--
-- TOC entry 2308 (class 0 OID 0)
-- Dependencies: 199
-- Name: custom_fields_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: j
--
ALTER SEQUENCE custom_fields_id_seq OWNED BY custom_fields.id;
--
-- TOC entry 2185 (class 2604 OID 21964)
-- Name: id; Type: DEFAULT; Schema: public; Owner: j
--
ALTER TABLE ONLY custom_fields ALTER COLUMN id SET DEFAULT nextval('custom_fields_id_seq'::regclass);
--
-- TOC entry 2303 (class 0 OID 21961)
-- Dependencies: 200
-- Data for Name: custom_fields; Type: TABLE DATA; Schema: public; Owner: j
--
INSERT INTO custom_fields VALUES (4, 'UF', 'list', '', '--- Community
...
', '---
- AC
- AL
- AP
- AM
- BA
- CE
- DF
- ES
- GO
- MA
- MT
- MS
- MG
- PR
- PB
- PA
- PE
- PI
- RJ
- RN
- RS
- RO
- RR
- SC
- SE
- SP
- TO
', true, true, true, 1, '2016-01-22 19:11:15.396396', '2016-01-22 19:11:15.396396');
INSERT INTO custom_fields VALUES (5, 'Tipo Telecentro', 'list', 'Comunitário', '--- Community
...
', '---
- Comunitário
- Escola Aberta
- Espaço Cidadão
- Ponto Cultural
', true, true, true, 1, '2016-01-22 19:11:15.430324', '2016-01-22 19:11:15.430324');
INSERT INTO custom_fields VALUES (6, 'Instituição Beneficiada', 'string', '', '--- Community
...
', '', true, true, true, 1, '2016-01-22 19:11:15.444565', '2016-01-22 19:11:15.444565');
INSERT INTO custom_fields VALUES (7, 'Instituição Parceira', 'string', '', '--- Community
...
', '', true, false, true, 1, '2016-01-22 19:11:15.452095', '2016-01-22 19:11:15.452095');
INSERT INTO custom_fields VALUES (9, 'Data da Adesão', 'date', '', '--- Community
...
', '', true, false, true, 1, '2016-01-22 19:11:15.478095', '2016-01-22 19:11:15.478095');
INSERT INTO custom_fields VALUES (10, 'PCs Recebidos', 'numeric', '0', '--- Community
...
', '', true, false, false, 1, '2016-01-22 19:11:15.493807', '2016-01-22 19:11:15.493807');
INSERT INTO custom_fields VALUES (11, 'PCs Solicitados', 'numeric', '0', '--- Community
...
', '', true, false, false, 1, '2016-01-22 19:11:15.502091', '2016-01-22 19:11:15.502091');
INSERT INTO custom_fields VALUES (12, 'PCs doados', 'numeric', '0', '--- Community
...
', '', true, false, false, 1, '2016-01-22 19:21:59.701271', '2016-01-22 19:21:59.701271');
INSERT INTO custom_fields VALUES (13, 'PCs solicitados para serem doados', 'numeric', '0', '--- Community
...
', '', true, false, false, 1, '2016-01-22 19:21:59.719135', '2016-01-22 19:21:59.719135');
INSERT INTO custom_fields VALUES (14, 'Hora inalguração', 'string', '', '--- Community
...
', '', true, false, false, 1, '2016-01-22 19:21:59.729836', '2016-01-22 19:21:59.729836');
INSERT INTO custom_fields VALUES (15, 'Status', 'list', 'Sem Informação', '--- Community
...
', '---
- Ativo
- Inativo
- Parcial
- Sem Informação
', true, false, true, 1, '2016-01-22 19:21:59.746512', '2016-01-22 19:21:59.746512');
INSERT INTO custom_fields VALUES (3, 'ID Telecentro', 'string', '', '--- Community
...
', '', true, false, true, 1, '2016-01-22 19:11:15.344879', '2016-01-22 19:30:40.726042');
INSERT INTO custom_fields VALUES (16, 'Município', 'string', '', '--- Community
...
', '', true, false, true, 1, '2016-01-22 19:30:40.813741', '2016-01-22 19:30:40.813741');
INSERT INTO custom_fields VALUES (20, 'Nome do responsável na instituição parceira (Nome completo)', 'string', '', '--- Community
...
', '', true, false, true, 1, '2016-01-22 19:30:40.865717', '2016-01-22 19:30:40.865717');
INSERT INTO custom_fields VALUES (21, 'Telefone do responsável na instituição parceira', 'string', '', '--- Community
...
', '', true, false, true, 1, '2016-01-22 19:30:40.872691', '2016-01-22 19:30:40.872691');
INSERT INTO custom_fields VALUES (22, 'E-mail do responsável na instituição parceira', 'string', '', '--- Community
...
', '', true, false, true, 1, '2016-01-22 19:30:40.882506', '2016-01-22 19:30:40.882506');
INSERT INTO custom_fields VALUES (23, 'Nome do Responsável no Telecentro', 'string', '', '--- Community
...
', '', true, false, true, 1, '2016-01-22 19:30:40.898386', '2016-01-22 19:30:40.898386');
INSERT INTO custom_fields VALUES (24, 'CPF do Responsável no Telecentro', 'string', '', '--- Community
...
', '', true, false, true, 1, '2016-01-22 19:30:40.914459', '2016-01-22 19:30:40.914459');
INSERT INTO custom_fields VALUES (25, 'Telefone do Responsável no Telecentro', 'string', '', '--- Community
...
', '', true, false, true, 1, '2016-01-22 19:30:40.92304', '2016-01-22 19:30:40.92304');
INSERT INTO custom_fields VALUES (26, 'E-mail do Responsável no Telecentro', 'string', '', '--- Community
...
', '', true, false, true, 1, '2016-01-22 19:30:40.930855', '2016-01-22 19:30:40.930855');
INSERT INTO custom_fields VALUES (27, 'Nome do Responsável no Telecentro (2)', 'string', '', '--- Community
...
', '', true, false, false, 1, '2016-01-22 19:30:40.942179', '2016-01-22 19:30:40.942179');
INSERT INTO custom_fields VALUES (28, 'CPF do Responsável no Telecentro (2)', 'string', '', '--- Community
...
', '', false, false, false, 1, '2016-01-22 19:30:40.955388', '2016-01-22 19:30:40.955388');
INSERT INTO custom_fields VALUES (29, 'Telefone do Responsável no Telecentro (2)', 'string', '', '--- Community
...
', '', false, false, false, 1, '2016-01-22 19:30:40.963986', '2016-01-22 19:30:40.963986');
INSERT INTO custom_fields VALUES (30, 'E-mail do Responsável no Telecentro (2)', 'string', '', '--- Community
...
', '', false, false, false, 1, '2016-01-22 19:30:40.981349', '2016-01-22 19:30:40.981349');
INSERT INTO custom_fields VALUES (32, 'Localizado em Área Rural?', 'list', 'Não', '--- Community
...
', '---
- Sim
- Não
', true, false, true, 1, '2016-01-22 19:30:40.997982', '2016-01-22 19:30:40.997982');
--
-- TOC entry 2309 (class 0 OID 0)
-- Dependencies: 199
-- Name: custom_fields_id_seq; Type: SEQUENCE SET; Schema: public; Owner: j
--
SELECT pg_catalog.setval('custom_fields_id_seq', 33, true);
--
-- TOC entry 2193 (class 2606 OID 21975)
-- Name: custom_fields_pkey; Type: CONSTRAINT; Schema: public; Owner: j; Tablespace:
--
ALTER TABLE ONLY custom_fields
ADD CONSTRAINT custom_fields_pkey PRIMARY KEY (id);
--
-- TOC entry 2194 (class 1259 OID 21976)
-- Name: index_custom_field; Type: INDEX; Schema: public; Owner: j; Tablespace:
--
CREATE UNIQUE INDEX index_custom_field ON custom_fields USING btree (customized_type, name, environment_id);
-- Completed on 2016-01-22 16:58:22 BRT
--
-- PostgreSQL database dump complete
--