-
Notifications
You must be signed in to change notification settings - Fork 6
/
10.Kratie.sql
375 lines (358 loc) · 11.3 KB
/
10.Kratie.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
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
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
CREATE TABLE IF NOT EXISTS `op_communes` (
`id` int(20) NOT NULL,
`name` text,
`district_id` int(20) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `FK_tcommune` (`district_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `op_communes`
--
INSERT INTO `op_communes` (`id`, `name`, `district_id`) VALUES
(100101, 'Chhloung', 1001),
(100102, 'Damrei Phong', 1001),
(100103, 'Han Chey', 1001),
(100104, 'Kampong Damrei', 1001),
(100105, 'Kanhchor', 1001),
(100106, 'Khsach Andeth', 1001),
(100107, 'Pongro', 1001),
(100108, 'Preaek Saman', 1001),
(100207, 'Kaoh Trong', 1002),
(100208, 'Krakor', 1002),
(100209, 'Kracheh', 1002),
(100210, 'Ou Ruessei', 1002),
(100211, 'Roka Kandal', 1002),
(100301, 'Chambâk', 1003),
(100302, 'Chrouy Banteay', 1003),
(100303, 'Kampong Kor', 1003),
(100304, 'Koh Ta Suy', 1003),
(100305, 'Preaek Prasab', 1003),
(100306, 'Russey Keo', 1003),
(100307, 'Saob', 1003),
(100308, 'Ta Mao', 1003),
(100401, 'Boeng Char', 1004),
(100402, 'Kampong Cham', 1004),
(100403, 'Kbal Damrei', 1004),
(100404, 'Kaoh Khnhaer', 1004),
(100405, 'Ou Krieng', 1004),
(100406, 'Roluos Mean Chey', 1004),
(100407, 'Sambour', 1004),
(100408, 'Sandan', 1004),
(100409, 'Srae Chis', 1004),
(100410, 'Voadthonak', 1004),
(100501, 'Khsuem', 1005),
(100502, 'Pir Thnu', 1005),
(100503, 'Snuol', 1005),
(100504, 'Srae Char', 1005),
(100505, 'Svay Chreah', 1005),
(100601, 'Bos Leav', 1006),
(100602, 'Changkrang', 1006),
(100603, 'Dar', 1006),
(100604, 'Kantuot', 1006),
(100605, 'Kou Loab', 1006),
(100606, 'Kaoh Chraeng', 1006),
(100607, 'Sambok', 1006),
(100608, 'Thma Andaeuk', 1006),
(100609, 'Thma Kreae', 1006),
(100610, 'Thmei', 1006);
-- --------------------------------------------------------
--
-- Table structure for table `op_districts`
--
CREATE TABLE IF NOT EXISTS `op_districts` (
`id` int(20) NOT NULL,
`name` text,
`provinces_id` int(20) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `FK_tdistrict` (`provinces_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `op_districts`
--
INSERT INTO `op_districts` (`id`, `name`, `provinces_id`) VALUES
(1001, 'Chhloung', 10),
(1002, 'Kracheh', 10),
(1003, 'Prek Prasab', 10),
(1004, 'Sambour', 10),
(1005, 'Snuol', 10),
(1006, 'Chetr Borei', 10);
-- --------------------------------------------------------
--
-- Table structure for table `op_provinces`
--
CREATE TABLE IF NOT EXISTS `op_provinces` (
`id` varchar(20) NOT NULL,
`name` text,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `op_provinces`
--
INSERT INTO `op_provinces` (`id`, `name`) VALUES
('10', 'Kratie');
-- --------------------------------------------------------
--
-- Table structure for table `op_villages`
--
CREATE TABLE IF NOT EXISTS `op_villages` (
`id` int(20) NOT NULL,
`name` text NOT NULL,
`commune_id` int(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `op_villages`
--
INSERT INTO `op_villages` (`id`, `name`, `commune_id`) VALUES
(10010101, 'Chhney', 100101),
(10010102, 'Chrouy Thma Kraom', 100101),
(10010103, 'Chrouy Thma Leu', 100101),
(10010104, 'Kampong Srae', 100101),
(10010105, 'Kandal', 100101),
(10010106, 'Kaoh Kandaor', 100101),
(10010201, 'Boeng Kieb', 100102),
(10010202, 'Bos', 100102),
(10010203, 'Krouch', 100102),
(10010204, 'Prey Kou', 100102),
(10010205, 'Prahuot', 100102),
(10010206, 'Pralay Triek', 100102),
(10010207, 'Srae Sdach', 100102),
(10010208, 'Srae Triek', 100102),
(10010301, 'Hanchey Ti Muoy', 100103),
(10010302, 'Hanchey Ti Pi', 100103),
(10010303, 'Hanchey Ti Bei', 100103),
(10010304, 'Hanchey Ti Buon', 100103),
(10010401, 'Prama', 100104),
(10010402, 'Roliek', 100104),
(10010403, 'Veal Kansaeng', 100104),
(10010501, 'Chheu Teal Phluoh Leu', 100105),
(10010502, 'Chheu Teal Phluoh Kraom', 100105),
(10010503, 'Kanhchor', 100105),
(10010504, 'Preaek Chamlak', 100105),
(10010601, 'Preaek Samrong Ti Muoy', 100106),
(10010602, 'Preaek Samraong Ti Pi', 100106),
(10010603, 'Prek Ta Hob', 100106),
(10010604, 'Thmei Ti Muoy', 100106),
(10010605, 'Thmei Ti Pi', 100106),
(10010701, 'Dang Kdaong', 100107),
(10010702, 'Pongro Muoy', 100107),
(10010703, 'Pongro Pir', 100107),
(10010704, 'Pongro Bei', 100107),
(10010705, 'Tnaot', 100107),
(10010801, 'Chheu Teal Phluoh', 100108),
(10010802, 'Chhak Kantoung', 100108),
(10010803, 'Dei Thmei', 100108),
(10010804, 'Lvea Thum', 100108),
(10010805, 'Preaek Saman', 100108),
(10020701, 'Kbal Kaoh', 100207),
(10020702, 'Chong Kaoh', 100207),
(10020801, 'Krakor', 100208),
(10020802, 'Tuol Monourom', 100208),
(10020901, 'Doun Chroam', 100209),
(10020902, 'Kracheh', 100209),
(10020903, 'Phsar Veaeng', 100209),
(10020904, 'Trapeang Pring', 100209),
(10020905, 'Voat', 100209),
(10021001, 'Kantring', 100210),
(10021002, 'Kapou', 100210),
(10021003, 'Ou Ruessei Ti Muoy', 100210),
(10021004, 'Ou Ruessei Ti Pir', 100210),
(10021005, 'Srae Sdau', 100210),
(10021101, 'Ti Muoy', 100211),
(10021102, 'Ti Pir', 100211),
(10030101, 'Chambâk 1', 100301),
(10030102, 'Chambâk 2', 100301),
(10030103, 'Chroy Ampil 1', 100301),
(10030104, 'Chroy Ampil 2', 100301),
(10030105, 'Chroy Thmor', 100301),
(10030106, 'Stoeung Thum', 100301),
(10030201, 'Chrouy Banteay', 100302),
(10030202, 'Kampong Dar', 100302),
(10030203, 'Kaeng', 100302),
(10030204, 'Khsach Tob', 100302),
(10030205, 'Liet', 100302),
(10030206, 'Roka Thum', 100302),
(10030207, 'Tuol Prich', 100302),
(10030301, 'Chrouy Snaeng Krabei Kraom', 100303),
(10030302, 'Chrouy Snaeng Krabei Leu', 100303),
(10030303, 'Kampong Kor', 100303),
(10030304, 'Ta Mau Leu', 100303),
(10030401, 'Chong Koh', 100304),
(10030402, 'Kandal Koh', 100304),
(10030403, 'Kbal Koh', 100304),
(10030501, 'Boeng Leach', 100305),
(10030502, 'Dei Doh Kraom', 100305),
(10030503, 'Dei Doh Leu', 100305),
(10030504, 'Ou Lung', 100305),
(10030505, 'Preaek Prang', 100305),
(10030506, 'Preaek Prasab Kandal', 100305),
(10030507, 'Preaek Prasab Kraom', 100305),
(10030508, 'Preaek Prasab Leu', 100305),
(10030509, 'Prey Kur', 100305),
(10030510, 'Thma Reab', 100305),
(10030601, 'Boeng Rey', 100306),
(10030602, 'Russey Keo', 100306),
(10030603, 'Sralav Damnak', 100306),
(10030604, 'Svay Chum', 100306),
(10030701, 'Boeng Chraeng', 100307),
(10030702, 'Kla', 100307),
(10030703, 'Preaek Chik', 100307),
(10030704, 'Preaek Prolung', 100307),
(10030705, 'Preaek Roka', 100307),
(10030706, 'Saob Kraom', 100307),
(10030707, 'Saob Leu', 100307),
(10030801, 'Kraham Ka Leu', 100308),
(10030802, 'Kraham Ka Kraom', 100308),
(10030803, 'Khsat', 100308),
(10030804, 'Prek Svay', 100308),
(10030805, 'Stueng Tro', 100308),
(10030806, 'Ta Mau Kandal', 100308),
(10030807, 'Ta Mau Kraom', 100308),
(10040101, 'Damrae', 100401),
(10040102, 'Kampong Roteh', 100401),
(10040103, 'Kaoh Dambang', 100401),
(10040201, 'A Chen', 100402),
(10040202, 'Ampil Tuek', 100402),
(10040203, 'Kampong Krabei', 100402),
(10040204, 'Kaoh Phdau', 100402),
(10040206, 'Samphin', 100402),
(10040207, 'Tonsaong Thleak', 100402),
(10040208, 'Yeav', 100402),
(10040301, 'Changhab', 100403),
(10040302, 'Ou Pur', 100403),
(10040303, 'Ou Ta Noeng', 100403),
(10040304, 'Srae Sbov', 100403),
(10040305, 'Srae Traeng', 100403),
(10040401, 'Bay Samnom', 100404),
(10040402, 'Cheung Peat', 100404),
(10040403, 'Kampong Pnov', 100404),
(10040404, 'Kaoh Chbar', 100404),
(10040405, 'Svay Chek', 100404),
(10040501, 'Kaoh Khnhaer', 100405),
(10040502, 'Khsach Leav', 100405),
(10040503, 'Ou Kak', 100405),
(10040504, 'Ou Krieng', 100405),
(10040505, 'Ou Preah', 100405),
(10040506, 'Pon Chea', 100405),
(10040601, 'Paklae', 100406),
(10040602, 'Roluos', 100406),
(10040603, 'Srae Chhuk', 100406),
(10040604, 'Toung', 100406),
(10040701, 'Char Thnaol', 100407),
(10040702, 'Doun Meas', 100407),
(10040703, 'Kaeng Prasat', 100407),
(10040704, 'Kaoh Real', 100407),
(10040705, 'Kaoh Sam', 100407),
(10040706, 'Sambour', 100407),
(10040707, 'Samraong', 100407),
(10040708, 'Srae Khoean', 100407),
(10040801, 'Thmei', 100408),
(10040802, 'Thum', 100408),
(10040803, 'Sandan', 100408),
(10040804, 'Sangkum', 100408),
(10040901, 'Ampok', 100409),
(10040902, 'Koun Va', 100409),
(10040903, 'Phnum Pir', 100409),
(10040904, 'Rovieng', 100409),
(10040905, 'Srae Chis', 100409),
(10040906, 'Tnaot', 100409),
(10041001, 'Anlong Preah Kou', 100410),
(10041002, 'Preaek Krieng', 100410),
(10041003, 'Voadthonak', 100410),
(10041004, 'Ta Nguon', 100410),
(10050101, 'Mil', 100501),
(10050102, 'Choeng', 100501),
(10050103, 'Doung', 100501),
(10050104, 'Khsuem Knong', 100501),
(10050105, 'Khsuem Krau', 100501),
(10050106, 'Samrang', 100501),
(10050107, 'Srae Roneam', 100501),
(10050108, 'Srae Thmei', 100501),
(10050201, 'Cheung Khle', 100502),
(10050202, 'Cheung Khlu', 100502),
(10050203, 'Thma Hal Dei Kraham', 100502),
(10050204, 'Pravanh', 100502),
(10050205, 'Thma Hal Veal', 100502),
(10050206, 'Trapeang Srae', 100502),
(10050207, 'Chrab', 100502),
(10050301, 'Kat Dai', 100503),
(10050302, 'Kbal Snuol', 100503),
(10050303, 'Krong', 100503),
(10050304, 'Preaek Kdei', 100503),
(10050305, 'Snuol Kaeut', 100503),
(10050306, 'Thpong', 100503),
(10050307, 'Snuol Lech', 100503),
(10050401, 'Roha', 100504),
(10050402, 'Kbal Trach', 100504),
(10050403, 'Mak Kandal', 100504),
(10050404, 'Mean Chey', 100504),
(10050405, 'Treak', 100504),
(10050406, 'Sat', 100504),
(10050501, 'Thnal', 100505),
(10050502, 'Voat', 100505),
(10050503, 'Sambuor', 100505),
(10050504, 'Ta Saom', 100505),
(10050505, 'Srae Char', 100505),
(10050506, 'Ta Pum', 100505),
(10050507, 'Doun Mea', 100505),
(10050508, 'Rumpuk', 100505),
(10060101, 'Bos Leav Kraom', 100601),
(10060102, 'Bos Leav Leu', 100601),
(10060103, 'Lvea Tong', 100601),
(10060104, 'Preah Konlong', 100601),
(10060105, 'Preaek Kov', 100601),
(10060106, 'Preaek Ta Am', 100601),
(10060107, 'Preaek Ta Thoeng', 100601),
(10060108, 'Ta Lus', 100601),
(10060201, 'Changkrang', 100602),
(10060202, 'Kasang', 100602),
(10060301, 'Anhchanh', 100603),
(10060302, 'Chuor Chrey', 100603),
(10060303, 'Dar', 100603),
(10060304, 'Khnang Pos', 100603),
(10060305, 'Khsar', 100603),
(10060306, 'Mreum', 100603),
(10060307, 'Sereipheap', 100603),
(10060308, 'Stueng Svay', 100603),
(10060309, 'Ta Nguon', 100603),
(10060401, 'A Loch', 100604),
(10060402, 'Antong Vien', 100604),
(10060403, 'Chrava', 100604),
(10060404, 'Kantuot', 100604),
(10060405, 'Srae Non', 100604),
(10060501, 'Banteay', 100605),
(10060502, 'Chrava', 100605),
(10060503, 'Kambaor', 100605),
(10060504, 'Kou Loab', 100605),
(10060505, 'Samret', 100605),
(10060601, 'Kandal', 100606),
(10060602, 'Kbal Kaoh', 100606),
(10060603, 'Preaek', 100606),
(10060604, 'Roka Khnor', 100606),
(10060605, 'Voat', 100606),
(10060701, 'Boeng Run', 100607),
(10060702, 'Kakot', 100607),
(10060703, 'Kbal Chuor', 100607),
(10060704, 'Sambok', 100607),
(10060705, 'SraeTa Haen', 100607),
(10060706, 'Sambaktean Kakot', 100607),
(10060707, 'Sambaktean Kampi', 100607),
(10060708, 'Kampi', 100607),
(10060801, 'Chour Krouch', 100608),
(10060802, 'Damnak Sasar', 100608),
(10060803, 'Lak', 100608),
(10060804, 'Sampung', 100608),
(10060805, 'Serei Sokha', 100608),
(10060806, 'Srae Doung', 100608),
(10060901, 'Ruessei Char', 100609),
(10060902, 'Thma Krae Kandal', 100609),
(10060903, 'Thma Krae Leu', 100609),
(10061001, 'Chranaol', 100610),
(10061002, 'Khnach', 100610),
(10061003, 'Krasang', 100610),
(10061004, 'Mean Chey', 100610),
(10061005, 'Bier', 100610),
(10061006, 'Svay Chrum', 100610),
(10061007, 'Thmei', 100610),
(10061008, 'Tnaot', 100610),
(10061009, 'Treab', 100610),
(10061010, 'Veal Sambour', 100610);