-
Notifications
You must be signed in to change notification settings - Fork 1
/
06_constraints.sql
270 lines (170 loc) · 7.75 KB
/
06_constraints.sql
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
--
-- Name: pom_bornes_hydrantes_080 pom_bornes_hydrantes_080_pkey; Type: CONSTRAINT; Schema: pompiers; Owner: <user>
--
ALTER TABLE ONLY pompiers.pom_bornes_hydrantes_080
ADD CONSTRAINT pom_bornes_hydrantes_080_pkey PRIMARY KEY (id);
--
-- Name: pom_bornes_hydrantes_500 pom_bornes_hydrantes_500_pkey; Type: CONSTRAINT; Schema: pompiers; Owner: <user>
--
ALTER TABLE ONLY pompiers.pom_bornes_hydrantes_500
ADD CONSTRAINT pom_bornes_hydrantes_500_pkey PRIMARY KEY (id);
--
-- Name: pom_bornes_hydrantes pom_bornes_hydrantes_pkey; Type: CONSTRAINT; Schema: pompiers; Owner: <user>
--
ALTER TABLE ONLY pompiers.pom_bornes_hydrantes
ADD CONSTRAINT pom_bornes_hydrantes_pkey PRIMARY KEY (id);
--
-- Name: pom_dangers_lignes_ht_10 pom_dangers_lignes_ht_10_pkey; Type: CONSTRAINT; Schema: pompiers; Owner: <user>
--
ALTER TABLE ONLY pompiers.pom_dangers_lignes_ht_10
ADD CONSTRAINT pom_dangers_lignes_ht_10_pkey PRIMARY KEY (id);
--
-- Name: pom_dangers_lignes_ht pom_dangers_lignes_ht_pkey; Type: CONSTRAINT; Schema: pompiers; Owner: <user>
--
ALTER TABLE ONLY pompiers.pom_dangers_lignes_ht
ADD CONSTRAINT pom_dangers_lignes_ht_pkey PRIMARY KEY (id);
--
-- Name: pom_edit_acces pom_edit_acces_pkey; Type: CONSTRAINT; Schema: pompiers; Owner: <user>
--
ALTER TABLE ONLY pompiers.pom_edit_acces
ADD CONSTRAINT pom_edit_acces_pkey PRIMARY KEY (id);
--
-- Name: pom_edit_barrages pom_edit_barrages_pkey; Type: CONSTRAINT; Schema: pompiers; Owner: <user>
--
ALTER TABLE ONLY pompiers.pom_edit_barrages
ADD CONSTRAINT pom_edit_barrages_pkey PRIMARY KEY (id);
--
-- Name: pom_edit_cles pom_edit_cles_pkey; Type: CONSTRAINT; Schema: pompiers; Owner: <user>
--
ALTER TABLE ONLY pompiers.pom_edit_cles
ADD CONSTRAINT pom_edit_cles_pkey PRIMARY KEY (id);
--
-- Name: pom_edit_dangers pom_edit_dangers_pkey; Type: CONSTRAINT; Schema: pompiers; Owner: <user>
--
ALTER TABLE ONLY pompiers.pom_edit_dangers
ADD CONSTRAINT pom_edit_dangers_pkey PRIMARY KEY (id);
--
-- Name: pom_edit_detections pom_edit_detections_pkey; Type: CONSTRAINT; Schema: pompiers; Owner: <user>
--
ALTER TABLE ONLY pompiers.pom_edit_detections
ADD CONSTRAINT pom_edit_detections_pkey PRIMARY KEY (id);
--
-- Name: pom_edit_dossiers_intervention pom_edit_dossiers_intervention_pkey; Type: CONSTRAINT; Schema: pompiers; Owner: <user>
--
ALTER TABLE ONLY pompiers.pom_edit_dossiers_intervention
ADD CONSTRAINT pom_edit_dossiers_intervention_pkey PRIMARY KEY (id);
--
-- Name: pom_edit_emplacements pom_edit_emplacements_pkey; Type: CONSTRAINT; Schema: pompiers; Owner: <user>
--
ALTER TABLE ONLY pompiers.pom_edit_emplacements
ADD CONSTRAINT pom_edit_emplacements_pkey PRIMARY KEY (id);
--
-- Name: pom_edit_reserves_eau pom_edit_reserves_eau_pkey1; Type: CONSTRAINT; Schema: pompiers; Owner: <user>
--
ALTER TABLE ONLY pompiers.pom_edit_reserves_eau
ADD CONSTRAINT pom_edit_reserves_eau_pkey1 PRIMARY KEY (id);
--
-- Name: pom_edit_risques pom_edit_risques_pkey; Type: CONSTRAINT; Schema: pompiers; Owner: <user>
--
ALTER TABLE ONLY pompiers.pom_edit_risques
ADD CONSTRAINT pom_edit_risques_pkey PRIMARY KEY (id);
--
-- Name: pom_edit_situation pom_edit_situation_pkey; Type: CONSTRAINT; Schema: pompiers; Owner: <user>
--
ALTER TABLE ONLY pompiers.pom_edit_situation
ADD CONSTRAINT pom_edit_situation_pkey PRIMARY KEY (id);
--
-- Name: pom_edit_tuyaux pom_edit_tuyaux_pkey; Type: CONSTRAINT; Schema: pompiers; Owner: <user>
--
ALTER TABLE ONLY pompiers.pom_edit_tuyaux
ADD CONSTRAINT pom_edit_tuyaux_pkey PRIMARY KEY (id);
--
-- Name: pom_gland_serine_cles pom_gland_serine_cles_pkey; Type: CONSTRAINT; Schema: pompiers; Owner: <user>
--
ALTER TABLE ONLY pompiers.pom_gland_serine_cles
ADD CONSTRAINT pom_gland_serine_cles_pkey PRIMARY KEY (id);
--
-- Name: pom_gland_serine_dossiers_intervention pom_gland_serine_dossiers_intervention_pkey; Type: CONSTRAINT; Schema: pompiers; Owner: <user>
--
ALTER TABLE ONLY pompiers.pom_gland_serine_dossiers_intervention
ADD CONSTRAINT pom_gland_serine_dossiers_intervention_pkey PRIMARY KEY (id);
--
-- Name: pom_personnel pom_personnel_gs_pkey; Type: CONSTRAINT; Schema: pompiers; Owner: <user>
--
ALTER TABLE ONLY pompiers.pom_personnel
ADD CONSTRAINT pom_personnel_gs_pkey PRIMARY KEY (id);
--
-- Name: pom_prises_arrosage_sane pom_prises_arrosage_sane_pkey; Type: CONSTRAINT; Schema: pompiers; Owner: <user>
--
ALTER TABLE ONLY pompiers.pom_prises_arrosage_sane
ADD CONSTRAINT pom_prises_arrosage_sane_pkey PRIMARY KEY (id);
--
-- Name: pom_secteurs_intervention pom_secteurs_intervention_pkey; Type: CONSTRAINT; Schema: pompiers; Owner: <user>
--
ALTER TABLE ONLY pompiers.pom_secteurs_intervention
ADD CONSTRAINT pom_secteurs_intervention_pkey PRIMARY KEY (id);
--
-- Name: pom_secteurs_organisationnels pom_secteurs_organisationnels_pkey; Type: CONSTRAINT; Schema: pompiers; Owner: <user>
--
ALTER TABLE ONLY pompiers.pom_secteurs_organisationnels
ADD CONSTRAINT pom_secteurs_organisationnels_pkey PRIMARY KEY (id);
--
-- Name: pom_sites pom_sites_pkey; Type: CONSTRAINT; Schema: pompiers; Owner: <user>
--
ALTER TABLE ONLY pompiers.pom_sites
ADD CONSTRAINT pom_sites_pkey PRIMARY KEY (id);
--
-- Name: pom_tbl_liste_acces pom_tbl_liste_acces_pkey; Type: CONSTRAINT; Schema: pompiers; Owner: <user>
--
ALTER TABLE ONLY pompiers.pom_tbl_liste_acces
ADD CONSTRAINT pom_tbl_liste_acces_pkey PRIMARY KEY (id);
--
-- Name: pom_tbl_liste_acces_reserves_eau pom_tbl_liste_acces_reserves_eau_pkey; Type: CONSTRAINT; Schema: pompiers; Owner: <user>
--
ALTER TABLE ONLY pompiers.pom_tbl_liste_acces_reserves_eau
ADD CONSTRAINT pom_tbl_liste_acces_reserves_eau_pkey PRIMARY KEY (id);
--
-- Name: pom_tbl_liste_dangers pom_tbl_liste_dangers_pkey; Type: CONSTRAINT; Schema: pompiers; Owner: <user>
--
ALTER TABLE ONLY pompiers.pom_tbl_liste_dangers
ADD CONSTRAINT pom_tbl_liste_dangers_pkey PRIMARY KEY (id);
--
-- Name: pom_tbl_liste_emplacements pom_tbl_liste_emplacements_pkey; Type: CONSTRAINT; Schema: pompiers; Owner: <user>
--
ALTER TABLE ONLY pompiers.pom_tbl_liste_emplacements
ADD CONSTRAINT pom_tbl_liste_emplacements_pkey PRIMARY KEY (id);
--
-- Name: pom_tbl_liste_gestionnaires pom_tbl_liste_gestionnaires_pkey; Type: CONSTRAINT; Schema: pompiers; Owner: <user>
--
ALTER TABLE ONLY pompiers.pom_tbl_liste_gestionnaires
ADD CONSTRAINT pom_tbl_liste_gestionnaires_pkey PRIMARY KEY (id);
--
-- Name: pom_tbl_liste_type_reserves_eau pom_tbl_liste_reserves_eau_pkey; Type: CONSTRAINT; Schema: pompiers; Owner: <user>
--
ALTER TABLE ONLY pompiers.pom_tbl_liste_type_reserves_eau
ADD CONSTRAINT pom_tbl_liste_reserves_eau_pkey PRIMARY KEY (id);
--
-- Name: pom_tbl_liste_risques pom_tbl_liste_risques_pkey; Type: CONSTRAINT; Schema: pompiers; Owner: <user>
--
ALTER TABLE ONLY pompiers.pom_tbl_liste_risques
ADD CONSTRAINT pom_tbl_liste_risques_pkey PRIMARY KEY (id);
--
-- Name: pom_tbl_liste_situation pom_tbl_liste_situation_pkey; Type: CONSTRAINT; Schema: pompiers; Owner: <user>
--
ALTER TABLE ONLY pompiers.pom_tbl_liste_situation
ADD CONSTRAINT pom_tbl_liste_situation_pkey PRIMARY KEY (id);
--
-- Name: pom_tbl_liste_statut_dossiers pom_tbl_liste_statut_dossiers_pkey; Type: CONSTRAINT; Schema: pompiers; Owner: <user>
--
ALTER TABLE ONLY pompiers.pom_tbl_liste_statut_dossiers
ADD CONSTRAINT pom_tbl_liste_statut_dossiers_pkey PRIMARY KEY (id);
--
-- Name: pom_tbl_liste_tuyaux pom_tbl_liste_tuyaux_pkey; Type: CONSTRAINT; Schema: pompiers; Owner: <user>
--
ALTER TABLE ONLY pompiers.pom_tbl_liste_tuyaux
ADD CONSTRAINT pom_tbl_liste_tuyaux_pkey PRIMARY KEY (id);
--
-- Name: pom_tbl_liste_type_cles pom_tbl_liste_type_cles_pkey; Type: CONSTRAINT; Schema: pompiers; Owner: <user>
--
ALTER TABLE ONLY pompiers.pom_tbl_liste_type_cles
ADD CONSTRAINT pom_tbl_liste_type_cles_pkey PRIMARY KEY (id);