-
Notifications
You must be signed in to change notification settings - Fork 2
/
sahanadara.sql
2730 lines (2289 loc) · 87.9 KB
/
sahanadara.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
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
-- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Mar 28, 2022 at 08:34 PM
-- Server version: 10.4.22-MariaDB
-- PHP Version: 8.1.2
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `sahanadara`
--
-- --------------------------------------------------------
--
-- Table structure for table `admin`
--
CREATE TABLE `admin` (
`adminID` int(6) NOT NULL,
`empName` varchar(100) NOT NULL,
`empAddress` varchar(100) NOT NULL,
`empEmail` varchar(50) NOT NULL,
`isAssigned` char(1) DEFAULT 'y',
`empTele` char(10) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `admin`
--
INSERT INTO `admin` (`adminID`, `empName`, `empAddress`, `empEmail`, `isAssigned`, `empTele`) VALUES
(1, 'Sanduni Rashmika', '297, KIRILLAWALA, WEBODA', '[email protected]', 'y', '');
-- --------------------------------------------------------
--
-- Table structure for table `alert`
--
CREATE TABLE `alert` (
`msgId` int(11) NOT NULL,
`msg` varchar(150) NOT NULL,
`timestamp` timestamp NOT NULL DEFAULT current_timestamp(),
`assignedSafe` tinyint(1) NOT NULL DEFAULT 0,
`onlyOfficers` tinyint(1) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `alert`
--
INSERT INTO `alert` (`msgId`, `msg`, `timestamp`, `assignedSafe`, `onlyOfficers`) VALUES
(1, 'Flood alert for Bolossagama', '2022-03-27 03:04:32', 0, 0);
-- --------------------------------------------------------
--
-- Table structure for table `alertdisdivgn`
--
CREATE TABLE `alertdisdivgn` (
`alertId` int(11) NOT NULL,
`dsId` int(11) NOT NULL,
`dvId` int(11) NOT NULL,
`gndvId` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `deathcompensation`
--
CREATE TABLE `deathcompensation` (
`deathId` int(11) NOT NULL,
`gndvId` int(5) NOT NULL,
`timestamp` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
`disaster` varchar(50) DEFAULT NULL,
`disasterdate` date DEFAULT NULL,
`deathdate` date DEFAULT NULL,
`dname` varchar(50) DEFAULT NULL,
`dnic` varchar(50) DEFAULT NULL,
`daddress` varchar(50) DEFAULT NULL,
`doccupation` varchar(50) DEFAULT NULL,
`aname` varchar(50) DEFAULT NULL,
`anic` varchar(50) DEFAULT NULL,
`arelationship` varchar(50) DEFAULT NULL,
`dvapproved` varchar(1) DEFAULT 'p',
`dvremarks` varchar(50) DEFAULT NULL,
`disapproved` varchar(1) DEFAULT 'p',
`disremarks` varchar(50) DEFAULT NULL,
`dmcapproved` varchar(1) NOT NULL DEFAULT 'p',
`dmcremarks` varchar(50) DEFAULT '',
`atelno` int(10) DEFAULT NULL,
`collected` tinyint(1) DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `deathcompensation`
--
INSERT INTO `deathcompensation` (`deathId`, `gndvId`, `timestamp`, `disaster`, `disasterdate`, `deathdate`, `dname`, `dnic`, `daddress`, `doccupation`, `aname`, `anic`, `arelationship`, `dvapproved`, `dvremarks`, `disapproved`, `disremarks`, `dmcapproved`, `dmcremarks`, `atelno`, `collected`) VALUES
(8, 5, '2022-03-21 23:43:50', 'rterty', '2022-03-16', '2022-03-02', 'wert', '245245', 'No. 252D,\nAnanda Maithree Rd,\nBellapitiya', 'wertwert', 'wertewrt', '523452345', 'Husband', 'p', NULL, 'a', 'asas', 'a', 'asdfdf sssssss', 2147483647, 1),
(11, 5, '2022-03-22 16:58:58', '', '0000-00-00', '0000-00-00', '', '', '', '', '', '', '', 'a', 'asdfdf sssssss', 'p', NULL, 'p', '', 0, 0),
(12, 5, '2022-03-19 08:06:55', '', '0000-00-00', '0000-00-00', '', '', '', '', '', '', '', 'p', NULL, 'p', NULL, 'p', '', 0, 0),
(13, 5, '2022-03-19 08:25:24', '', '0000-00-00', '0000-00-00', '', '', '', '', '', '', '', 'p', NULL, 'p', NULL, 'p', '', 0, 0),
(14, 5, '2022-03-19 08:33:49', '', '0000-00-00', '0000-00-00', '', '', '', '', '', '', '', 'p', NULL, 'p', NULL, 'p', '', 0, 0),
(15, 5, '2022-03-19 08:36:59', '', '0000-00-00', '0000-00-00', '', '', '', '', '', '', '', 'p', NULL, 'p', NULL, 'p', '', 0, 0);
-- --------------------------------------------------------
--
-- Table structure for table `deathheir`
--
CREATE TABLE `deathheir` (
`heirid` int(11) NOT NULL,
`deathid` int(11) DEFAULT NULL,
`name` varchar(20) DEFAULT NULL,
`bank` varchar(20) DEFAULT NULL,
`branch` varchar(20) DEFAULT NULL,
`accno` int(20) DEFAULT NULL,
`nic` varchar(20) DEFAULT NULL,
`relationship` varchar(20) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `deathheir`
--
INSERT INTO `deathheir` (`heirid`, `deathid`, `name`, `bank`, `branch`, `accno`, `nic`, `relationship`) VALUES
(3, 8, 'Asela Devinda Pathir', 'rth', 'ertherth', 2147483647, '2345', 'rewert'),
(4, 8, 'University of Colomb', 'wertwert', 'wertwert', 3452345, '23452345', 'wertwert');
-- --------------------------------------------------------
--
-- Table structure for table `disaster`
--
CREATE TABLE `disaster` (
`disId` int(5) NOT NULL,
`dis` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `disaster`
--
INSERT INTO `disaster` (`disId`, `dis`) VALUES
(1, 'Flood'),
(2, 'Landslide'),
(3, 'Lightening');
-- --------------------------------------------------------
--
-- Table structure for table `dismgtofficer`
--
CREATE TABLE `dismgtofficer` (
`disMgtOfficerID` int(6) NOT NULL,
`empName` varchar(100) NOT NULL,
`empAddress` varchar(100) NOT NULL,
`empEmail` varchar(50) NOT NULL,
`isAssigned` char(1) DEFAULT 'y',
`empTele` char(10) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `dismgtofficer`
--
INSERT INTO `dismgtofficer` (`disMgtOfficerID`, `empName`, `empAddress`, `empEmail`, `isAssigned`, `empTele`) VALUES
(1, 'Yohombu Abeysinghe', 'MAHENDRA, WELIKALA, POKUNUWITA', '[email protected]', 'y', ''),
(2, 'test 4 test', 'Hene Gedara Hena, Ullala', '[email protected]', 'y', '0719867823');
-- --------------------------------------------------------
--
-- Table structure for table `distributeitem`
--
CREATE TABLE `distributeitem` (
`recordId` int(3) NOT NULL,
`safeHouseId` int(5) NOT NULL,
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
`approvalStatus` char(1) DEFAULT 'p'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `distributeitem`
--
INSERT INTO `distributeitem` (`recordId`, `safeHouseId`, `createdDate`, `approvalStatus`) VALUES
(1, 1, '2022-03-26 12:01:47', 'p'),
(2, 1, '2022-03-26 15:58:49', 'r'),
(3, 1, '2022-03-27 09:44:34', 'p');
-- --------------------------------------------------------
--
-- Table structure for table `distributeitemrecord`
--
CREATE TABLE `distributeitemrecord` (
`recordId` int(3) NOT NULL,
`itemRecord` int(3) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `distributeitemrecord`
--
INSERT INTO `distributeitemrecord` (`recordId`, `itemRecord`) VALUES
(1, 42),
(2, 43),
(3, 45),
(3, 46);
-- --------------------------------------------------------
--
-- Table structure for table `distributeservice`
--
CREATE TABLE `distributeservice` (
`recordId` int(3) NOT NULL,
`inventoryId` int(3) NOT NULL,
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
`approvalStatus` char(1) DEFAULT 'p',
`serviceRequestId` int(4) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `distributeservice`
--
INSERT INTO `distributeservice` (`recordId`, `inventoryId`, `createdDate`, `approvalStatus`, `serviceRequestId`) VALUES
(1, 1, '2022-03-26 03:08:36', 'a', 1),
(2, 1, '2022-03-26 03:25:59', 'r', 2),
(3, 1, '2022-03-27 09:46:48', 'p', 5);
-- --------------------------------------------------------
--
-- Table structure for table `district`
--
CREATE TABLE `district` (
`dsId` int(2) NOT NULL,
`dsName` varchar(40) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `district`
--
INSERT INTO `district` (`dsId`, `dsName`) VALUES
(15, 'Ampara'),
(18, 'Anuradhapura'),
(19, 'Badulla'),
(14, 'Batticaloa'),
(1, 'Colombo'),
(7, 'Galle'),
(2, 'Gampaha'),
(22, 'Hambanthota'),
(23, 'Jaffna'),
(3, 'Kalutara'),
(4, 'Kandy'),
(9, 'Kegalle'),
(13, 'Kilinochchi'),
(16, 'Kurunegala'),
(10, 'Mannar'),
(5, 'Matale'),
(8, 'Matara'),
(20, 'Monaragala'),
(12, 'Mulativu'),
(6, 'Nuwara-Eliya'),
(25, 'Polonnaruwa'),
(17, 'Puttalam'),
(21, 'Ratnapura'),
(24, 'Trincomalee'),
(11, 'Vavuniya');
-- --------------------------------------------------------
--
-- Table structure for table `districtofficecontact`
--
CREATE TABLE `districtofficecontact` (
`districtofficeTelno` char(10) NOT NULL,
`districtSOfficeID` int(3) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `districtsecretariat`
--
CREATE TABLE `districtsecretariat` (
`districtSecretariatID` int(6) NOT NULL,
`empName` varchar(100) NOT NULL,
`empAddress` varchar(100) NOT NULL,
`empEmail` varchar(50) NOT NULL,
`isAssigned` char(1) DEFAULT 'y',
`empTele` char(10) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `districtsecretariat`
--
INSERT INTO `districtsecretariat` (`districtSecretariatID`, `empName`, `empAddress`, `empEmail`, `isAssigned`, `empTele`) VALUES
(1, 'District Officer', 'District Office,Kalutara', '[email protected]', 'y', ''),
(4, 'Naween Lakshan', 'Hene Gedara Hena, Ullala', '[email protected]', 'y', '0719867863'),
(5, 'Naween Lakshan', 'Hene Gedara Hena, Ullala', '[email protected]', 'y', '0719867863');
-- --------------------------------------------------------
--
-- Table structure for table `districtsoffice`
--
CREATE TABLE `districtsoffice` (
`districtSOfficeID` int(3) NOT NULL,
`districtSOfficeName` varchar(100) NOT NULL,
`districtSOfficeAddress` varchar(50) NOT NULL,
`dsId` int(2) DEFAULT NULL,
`districtSecretariat` int(6) DEFAULT NULL,
`dmc` int(6) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `districtsoffice`
--
INSERT INTO `districtsoffice` (`districtSOfficeID`, `districtSOfficeName`, `districtSOfficeAddress`, `dsId`, `districtSecretariat`, `dmc`) VALUES
(3, 'District Office - Kalutara', 'Good Shed Rd, Kalutara', 3, 5, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `division`
--
CREATE TABLE `division` (
`dvId` int(3) NOT NULL,
`dvName` varchar(40) NOT NULL,
`dsId` int(2) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `division`
--
INSERT INTO `division` (`dvId`, `dvName`, `dsId`) VALUES
(1, 'Panadura', 3),
(2, 'Bandaragama', 3),
(3, 'Horana', 3),
(4, 'Ingiriya', 3),
(5, 'Bulathsinhala', 3),
(6, 'Madurawala', 3),
(7, 'Millaniya', 3),
(8, 'Kalutara', 3),
(9, 'Beruwala', 3),
(10, 'Dodangoda', 3),
(11, 'Mathugama', 3),
(12, 'Agalawatta', 3),
(13, 'Palindanuwara', 3),
(14, 'Walallavita', 3);
-- --------------------------------------------------------
--
-- Table structure for table `divisionaloffice`
--
CREATE TABLE `divisionaloffice` (
`divisionalOfficeId` int(3) NOT NULL,
`divisionalSofficeName` varchar(100) NOT NULL,
`divisionalSofficeAddress` varchar(50) NOT NULL,
`dvId` int(3) DEFAULT NULL,
`divisionalSecretariatID` int(6) DEFAULT NULL,
`disasterManager` int(6) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `divisionaloffice`
--
INSERT INTO `divisionaloffice` (`divisionalOfficeId`, `divisionalSofficeName`, `divisionalSofficeAddress`, `dvId`, `divisionalSecretariatID`, `disasterManager`) VALUES
(1, 'Divisional Secretariat Office Dodangoda', 'Kalutara-Matugama Rd, Thudugala 12020', 10, 9, 1),
(3, 'Divisional Office Agalawatta', 'Divisional Office, Agalawatta', 12, NULL, NULL),
(4, 'Divisional Office Bandaragama', 'Divisional Office, Bandaragama', 2, NULL, NULL),
(5, 'Divisional Office Beruwala', 'Divisional Office, Beruwala', 9, NULL, NULL),
(6, 'Divisional Office Bulathsinhala', 'Divisional Office, Bulathsinhala', 5, NULL, NULL),
(7, 'Divisional Office Horana', 'Divisional Office, Horana', 3, 7, NULL),
(8, 'Divisional Office Ingiriya', 'Divisional Office, Ingiriya', 4, NULL, 2),
(9, 'Divisional Office Kalutara', 'Divisional Office, Kalutara', 8, NULL, NULL),
(10, 'Divisional Office Madurawala', 'Divisional Office, Madurawala', 6, NULL, NULL),
(11, 'Divisional Office Mathugama', 'Divisional Office, Mathugama', 11, NULL, NULL),
(12, 'Divisional Office Millaniya', 'Divisional Office, Millaniya', 7, NULL, NULL),
(13, 'Divisional Office Palindanuwara', 'Divisional Office, Palindanuwara', 13, NULL, NULL),
(14, 'Divisional Office Panadura', 'Divisional Office, Panadura', 1, NULL, NULL),
(15, 'Divisional Office Walallavita', 'Divisional Office, Walallavita', 14, NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `divisionalofficecontact`
--
CREATE TABLE `divisionalofficecontact` (
`divisionalSofficeTelno` char(10) NOT NULL,
`divisionalOfficeId` int(3) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `divisionalsecretariat`
--
CREATE TABLE `divisionalsecretariat` (
`divisionalSecretariatID` int(6) NOT NULL,
`empName` varchar(100) NOT NULL,
`empAddress` varchar(100) NOT NULL,
`empEmail` varchar(50) NOT NULL,
`isAssigned` char(1) DEFAULT 'y',
`empTele` char(10) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `divisionalsecretariat`
--
INSERT INTO `divisionalsecretariat` (`divisionalSecretariatID`, `empName`, `empAddress`, `empEmail`, `isAssigned`, `empTele`) VALUES
(1, 'Divisional Secratariat', 'Divisional Secratariat,Horana', '[email protected]', 'y', ''),
(5, 'Naween Lakshan', 'Hene Gedara Hena, Ullala', '[email protected]', 'y', '0719867863'),
(6, 'Naween Lakshan', 'Hene Gedara Hena, Ullala', '[email protected]', 'y', '0719867863'),
(7, 'Naween Lakshan', 'Hene Gedara Hena, Ullala', '[email protected]', 'y', '0719867863'),
(8, 'test 2 test 2', 'Hene Gedara Hena, Ullala', '[email protected]', 'y', '0719867863'),
(9, 'Naween Lakshan', 'Hene Gedara Hena, Ullala', '[email protected]', 'y', '0719867865');
-- --------------------------------------------------------
--
-- Table structure for table `dmc`
--
CREATE TABLE `dmc` (
`dmcID` int(6) NOT NULL,
`empName` varchar(100) NOT NULL,
`empAddress` varchar(100) NOT NULL,
`empEmail` varchar(50) NOT NULL,
`isAssigned` char(1) DEFAULT 'n',
`empTele` char(10) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `dmc`
--
INSERT INTO `dmc` (`dmcID`, `empName`, `empAddress`, `empEmail`, `isAssigned`, `empTele`) VALUES
(1, 'DMC', 'Vidya Mawatha, Colombo 00700', '[email protected]', 'y', '');
-- --------------------------------------------------------
--
-- Table structure for table `domsg`
--
CREATE TABLE `domsg` (
`msgId` int(11) NOT NULL,
`timestamp` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
`message` varchar(300) NOT NULL,
`gndvId` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `domsg`
--
INSERT INTO `domsg` (`msgId`, `timestamp`, `message`, `gndvId`) VALUES
(1, '2022-01-24 13:50:39', 'gg', 5),
(2, '2022-01-24 13:53:51', 'vv', 5),
(3, '2022-01-26 12:37:10', 'll', 5),
(4, '2022-03-23 06:45:51', 'nnn', 5);
-- --------------------------------------------------------
--
-- Table structure for table `donationreqnotice`
--
CREATE TABLE `donationreqnotice` (
`recordId` int(4) NOT NULL,
`safehouseId` int(5) NOT NULL,
`title` varchar(100) NOT NULL,
`numOfFamilies` int(2) NOT NULL DEFAULT 0,
`numOfPeople` int(3) NOT NULL,
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
`approvedDate` datetime DEFAULT NULL,
`note` varchar(200) DEFAULT NULL,
`appovalStatus` char(1) NOT NULL DEFAULT 'n',
`remark` varchar(200) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `donationreqnotice`
--
INSERT INTO `donationreqnotice` (`recordId`, `safehouseId`, `title`, `numOfFamilies`, `numOfPeople`, `createdDate`, `approvedDate`, `note`, `appovalStatus`, `remark`) VALUES
(1, 1, 'Bolossagama Safe House Need Your Donations', 7, 33, '2022-03-26 02:36:55', '2022-03-26 12:18:57', '', 'a', NULL),
(2, 1, 'Bolossagama Safe House Need Your Donations', 7, 33, '2022-03-26 02:37:36', '2022-03-26 23:30:52', '', 'a', NULL),
(3, 1, 'Bolossagama Safe House Need Your Donations', 7, 33, '2022-03-26 02:38:17', '2022-03-26 12:19:39', '', 'a', NULL),
(4, 1, 'Bolossagama Safe House Need Your Donations', 7, 32, '2022-03-26 12:00:50', NULL, '', 'n', NULL),
(5, 1, 'Bolossagama Safe House Need Your Donations', 7, 32, '2022-03-26 12:01:10', '2022-03-26 12:19:43', '', 'a', NULL),
(6, 3, 'Bombuwala Safe House Need Your Donations', 5, 27, '2022-03-26 13:11:07', '2022-03-26 13:11:35', '', 'a', NULL),
(7, 1, 'Bolossagama Safe House Need Your Donations', 4, 17, '2022-03-26 15:57:58', NULL, '', 'n', NULL),
(8, 2, 'Koholana South Safe House Needs Your Donations', 8, 30, '2022-03-26 16:33:59', NULL, '', 'n', NULL),
(9, 1, 'Bolossagama Safe House Needs Your Donations', 8, 40, '2022-03-27 08:16:41', NULL, '', 'n', NULL),
(10, 1, 'Bolossagama Safe House Needs Your Donations', 6, 28, '2022-03-27 09:44:58', NULL, '', 'n', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `dvfinaldamage`
--
CREATE TABLE `dvfinaldamage` (
`dvfinalincidentId` int(5) NOT NULL,
`gndvId` int(6) NOT NULL,
`hf` int(11) NOT NULL DEFAULT 0,
`he` int(11) NOT NULL DEFAULT 0,
`ent` int(11) NOT NULL DEFAULT 0,
`infra` int(11) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `dvfinaldamage`
--
INSERT INTO `dvfinaldamage` (`dvfinalincidentId`, `gndvId`, `hf`, `he`, `ent`, `infra`) VALUES
(1, 5, 0, 0, 0, 0),
(1, 5, 0, 0, 0, 0),
(1, 5, 0, 0, 0, 0),
(2, 5, 0, 0, 0, 0),
(2, 5, 0, 0, 0, 0),
(2, 5, 0, 0, 0, 0);
-- --------------------------------------------------------
--
-- Table structure for table `dvfinalimpact`
--
CREATE TABLE `dvfinalimpact` (
`dvfinalincidentId` int(5) NOT NULL,
`gndvId` int(6) NOT NULL,
`afam` int(11) NOT NULL,
`apeople` int(11) NOT NULL,
`deaths` int(11) NOT NULL,
`hos` int(11) NOT NULL,
`injured` int(11) NOT NULL,
`missing` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `dvfinalimpact`
--
INSERT INTO `dvfinalimpact` (`dvfinalincidentId`, `gndvId`, `afam`, `apeople`, `deaths`, `hos`, `injured`, `missing`) VALUES
(1, 5, 0, 0, 0, 0, 0, 0),
(1, 5, 0, 0, 0, 0, 0, 0),
(1, 5, 0, 0, 0, 0, 0, 0),
(2, 5, 0, 0, 0, 0, 0, 0),
(2, 5, 0, 0, 0, 0, 0, 0),
(2, 5, 0, 0, 0, 0, 0, 0);
-- --------------------------------------------------------
--
-- Table structure for table `dvfinalincident`
--
CREATE TABLE `dvfinalincident` (
`dvfinalincidentId` int(5) NOT NULL,
`startDate` date DEFAULT NULL,
`endDate` date DEFAULT NULL,
`disaster` varchar(50) NOT NULL,
`cause` varchar(60) NOT NULL,
`dvId` int(11) NOT NULL,
`remarks` varchar(50) DEFAULT NULL,
`incidentId` int(5) DEFAULT NULL,
`timestamp` timestamp NOT NULL DEFAULT current_timestamp(),
`disapproved` varchar(1) DEFAULT 'p',
`disremarks` varchar(50) DEFAULT NULL,
`dmcapproved` varchar(1) DEFAULT 'p',
`dmcremarks` varchar(50) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `dvfinalincident`
--
INSERT INTO `dvfinalincident` (`dvfinalincidentId`, `startDate`, `endDate`, `disaster`, `cause`, `dvId`, `remarks`, `incidentId`, `timestamp`, `disapproved`, `disremarks`, `dmcapproved`, `dmcremarks`) VALUES
(1, '2022-03-27', '2022-03-27', '', '', 10, '', 2, '2022-03-27 16:08:03', 'p', NULL, 'p', NULL),
(2, '2022-03-27', '2022-03-27', '', '', 10, '', 2, '2022-03-28 07:34:35', 'p', NULL, 'p', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `dvfinalrelief`
--
CREATE TABLE `dvfinalrelief` (
`dvfinalincidentId` int(5) NOT NULL,
`gndvId` int(6) NOT NULL,
`dry` int(11) NOT NULL DEFAULT 0,
`cook` int(11) NOT NULL DEFAULT 0,
`emer` int(11) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `dvfinalrelief`
--
INSERT INTO `dvfinalrelief` (`dvfinalincidentId`, `gndvId`, `dry`, `cook`, `emer`) VALUES
(1, 5, 4567, 0, 567),
(1, 5, 0, 0, 23),
(1, 5, 900, 4545, 0),
(2, 5, 4567, 0, 567),
(2, 5, 0, 0, 23),
(2, 5, 900, 4545, 0);
-- --------------------------------------------------------
--
-- Table structure for table `dvfinalsafehouse`
--
CREATE TABLE `dvfinalsafehouse` (
`dvfinalincidentId` int(5) NOT NULL,
`gndvId` int(6) NOT NULL,
`numofsafe` int(11) DEFAULT 0,
`sfpeople` int(11) DEFAULT 0,
`sffamily` int(11) DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `dvfinalsafehouse`
--
INSERT INTO `dvfinalsafehouse` (`dvfinalincidentId`, `gndvId`, `numofsafe`, `sfpeople`, `sffamily`) VALUES
(1, 5, 0, 6, 0),
(1, 5, 0, 0, 0),
(1, 5, 0, 0, 0),
(2, 5, 0, 6, 0),
(2, 5, 0, 0, 0),
(2, 5, 0, 0, 0);
-- --------------------------------------------------------
--
-- Table structure for table `fundraising`
--
CREATE TABLE `fundraising` (
`recordId` int(4) NOT NULL,
`title` varchar(50) NOT NULL,
`description` varchar(150) NOT NULL,
`goal` decimal(9,2) NOT NULL,
`isActive` char(1) DEFAULT 'y',
`createdTime` datetime DEFAULT current_timestamp(),
`division` int(3) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `fundraising`
--
INSERT INTO `fundraising` (`recordId`, `title`, `description`, `goal`, `isActive`, `createdTime`, `division`) VALUES
(1, 'test', 'test test', '100000.00', 'y', '2022-03-25 12:37:33', 10);
-- --------------------------------------------------------
--
-- Table structure for table `fundraisingrecords`
--
CREATE TABLE `fundraisingrecords` (
`recordId` int(5) NOT NULL,
`fundraisingId` int(4) NOT NULL,
`donorName` varchar(30) NOT NULL,
`amount` decimal(9,2) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `gndivision`
--
CREATE TABLE `gndivision` (
`gndvId` int(5) NOT NULL,
`gnDvName` varchar(20) NOT NULL,
`officeAddress` varchar(50) DEFAULT NULL,
`telno` int(11) DEFAULT NULL,
`safeHouseID` int(5) DEFAULT NULL,
`gramaNiladariID` int(6) DEFAULT NULL,
`dvId` int(3) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `gndivision`
--
INSERT INTO `gndivision` (`gndvId`, `gnDvName`, `officeAddress`, `telno`, `safeHouseID`, `gramaNiladariID`, `dvId`) VALUES
(1, ' 719 Koholana South', 'Divisional Secretariat, Dodangoda,Kalutara,South', NULL, 2, NULL, 10),
(2, '719 A Adhikarigoda', 'Divisional Secretariat, Dodangoda,Kalutara,South', NULL, NULL, NULL, 10),
(3, '719 B Koholana North', 'Divisional Secretariat, Dodangoda,Kalutara,South', NULL, NULL, NULL, 10),
(4, '720 Ukwatta', 'Divisional Secretariat, Dodangoda,Kalutara,South', NULL, NULL, NULL, 10),
(5, '721 Bolossagama', 'Divisional Secretariat, Dodangoda,Kalutara,South', NULL, 1, 1, 10),
(6, '722 Serupita West', 'Divisional Secretariat, Dodangoda,Kalutara,South', NULL, NULL, NULL, 10),
(7, '722 A Serupita East', 'Divisional Secretariat, Dodangoda,Kalutara,South', NULL, NULL, NULL, 10),
(8, '724 Gamagoda East', 'Divisional Secretariat, Dodangoda,Kalutara,South', NULL, NULL, NULL, 10),
(9, '724 A Gamagoda West', 'Divisional Secretariat, Dodangoda,Kalutara,South', NULL, NULL, NULL, 10),
(10, '726 A Remunagoda Sou', 'Divisional Secretariat, Dodangoda,Kalutara,South', NULL, NULL, NULL, 10),
(11, '726 A Remunagoda Nor', 'Divisional Secretariat, Dodangoda,Kalutara,South', NULL, NULL, NULL, 10),
(12, '728 Bombuwala South ', 'Divisional Secretariat, Dodangoda,Kalutara,South', NULL, NULL, NULL, 10),
(13, '728 A Bombuwala Nort', 'Divisional Secretariat, Dodangoda,Kalutara,South', NULL, NULL, NULL, 10),
(14, '728 B Bombuwala Nort', 'Divisional Secretariat, Dodangoda,Kalutara,South', NULL, NULL, NULL, 10),
(15, '728 C Bombuwala Nort', 'Divisional Secretariat, Dodangoda,Kalutara,South', NULL, 3, NULL, 10),
(16, '728 D Bombuwala Sout', 'Divisional Secretariat, Dodangoda,Kalutara,South', NULL, NULL, NULL, 10),
(17, '799 Puhabugoda East', 'Divisional Secretariat, Dodangoda,Kalutara,South', NULL, NULL, NULL, 10),
(18, '799 A Eladuwa', 'Divisional Secretariat, Dodangoda,Kalutara,South', NULL, NULL, NULL, 10),
(19, '799 B Galpottawila', 'Divisional Secretariat, Dodangoda,Kalutara,South', NULL, NULL, NULL, 10),
(20, '799 C Puhambugoda We', 'Divisional Secretariat, Dodangoda,Kalutara,South', NULL, NULL, NULL, 10),
(21, '800 Dodangoda West', 'Divisional Secretariat, Dodangoda,Kalutara,South', NULL, NULL, NULL, 10),
(22, '800 A Dodangoda East', 'Divisional Secretariat, Dodangoda,Kalutara,South', NULL, NULL, NULL, 10),
(23, '800 B Sapugahawatta', 'Divisional Secretariat, Dodangoda,Kalutara,South', NULL, NULL, NULL, 10),
(24, '800 C Dodangoda West', 'Divisional Secretariat, Dodangoda,Kalutara,South', NULL, NULL, NULL, 10),
(25, '800 D Dodangoda West', 'Divisional Secretariat, Dodangoda,Kalutara,South', NULL, NULL, NULL, 10),
(26, '800 E Dodangoda West', 'Divisional Secretariat, Dodangoda,Kalutara,South', NULL, NULL, NULL, 10),
(27, '800 F Dodangoda West', 'Divisional Secretariat, Dodangoda,Kalutara,South', NULL, NULL, NULL, 10),
(28, '800 G Dodangoda East', 'Divisional Secretariat, Dodangoda,Kalutara,South', NULL, NULL, NULL, 10),
(29, '800 H Dodangoda East', 'Divisional Secretariat, Dodangoda,Kalutara,South', NULL, NULL, NULL, 10),
(30, '800 I Dodangoda East', 'Divisional Secretariat, Dodangoda,Kalutara,South', NULL, NULL, NULL, 10),
(31, '801 Nehinna', 'Divisional Secretariat, Dodangoda,Kalutara,South', NULL, NULL, NULL, 10),
(32, '801 A Wadugama', 'Divisional Secretariat, Dodangoda,Kalutara,South', NULL, NULL, NULL, 10),
(33, '807 Nebada', 'Divisional Secretariat, Dodangoda,Kalutara,South', NULL, NULL, NULL, 10),
(34, '807 A Upper Nebada', 'Divisional Secretariat, Dodangoda,Kalutara,South', NULL, NULL, NULL, 10),
(35, '807 B Lower Nebada', 'Divisional Secretariat, Dodangoda,Kalutara,South', NULL, NULL, NULL, 10),
(36, '807 C Nebada West', 'Divisional Secretariat, Dodangoda,Kalutara,South', NULL, NULL, NULL, 10),
(37, '807 D Wellatha', 'Divisional Secretariat, Dodangoda,Kalutara,South', NULL, NULL, NULL, 10),
(38, '807 E Wattahena', 'Divisional Secretariat, Dodangoda,Kalutara,South', NULL, NULL, NULL, 10),
(39, '808 Thudugala West', 'Divisional Secretariat, Dodangoda,Kalutara,South', NULL, NULL, NULL, 10),
(40, '808 A Thudugala East', 'Divisional Secretariat, Dodangoda,Kalutara,South', NULL, NULL, NULL, 10),
(41, '809 Thebuwana East', 'Divisional Secretariat, Dodangoda,Kalutara,South', NULL, NULL, NULL, 10),
(42, '809 Thebuwana West', 'Divisional Secretariat, Dodangoda,Kalutara,South', NULL, NULL, NULL, 10),
(43, '810 Pelapitiyagoda', 'Divisional Secretariat, Dodangoda,Kalutara,South', NULL, NULL, NULL, 10),
(44, '810 A Pelapitiyagoda', 'Divisional Secretariat, Dodangoda,Kalutara,South', NULL, NULL, NULL, 10),
(45, '618 Wagawatta', 'wagawaththa, Poruwadanda', NULL, NULL, NULL, 4),
(46, '618 A Poruwadanda Ea', 'Divisional Secretariat,Ingiriya', NULL, NULL, NULL, 4),
(47, '618 B Kekulaliya', 'Divisional Secretariat,Ingiriya', NULL, NULL, NULL, 4),
(48, '618 C Poruwadanda We', 'Divisional Secretariat,Ingiriya', NULL, NULL, NULL, 4),
(49, '619 Urugala East', 'Divisional Secretariat,Ingiriya', NULL, NULL, NULL, 4),
(50, '619 A Nambapana', 'Divisional Secretariat,Ingiriya', NULL, NULL, NULL, 4),
(51, '619 B Urugala West', 'Divisional Secretariat,Ingiriya', NULL, NULL, NULL, 4),
(52, '620 Ingiriya East', 'Divisional Secretariat,Ingiriya', NULL, NULL, NULL, 4),
(53, '620 A Ingiriya West', 'Divisional Secretariat,Ingiriya', NULL, NULL, NULL, 4),
(54, '620 B Rayigamwatta', 'Divisional Secretariat,Ingiriya', NULL, NULL, NULL, 4),
(55, '620 C Ingiriya North', 'Divisional Secretariat,Ingiriya', NULL, NULL, NULL, 4),
(56, '620 D Nimalagama', 'Divisional Secretariat,Ingiriya', NULL, NULL, NULL, 4),
(57, '620 E Aduragala', 'Divisional Secretariat,Ingiriya', NULL, NULL, NULL, 4),
(58, '620 F Dombagaskanda', 'Divisional Secretariat,Ingiriya', NULL, NULL, NULL, 4),
(59, '620 G Maha Ingiriya', 'Divisional Secretariat,Ingiriya', NULL, NULL, NULL, 4),
(60, '621 Maputugala', 'Divisional Secretariat,Ingiriya', NULL, NULL, NULL, 4),
(61, '621 A Rathmalgoda Ea', 'Divisional Secretariat,Ingiriya', NULL, NULL, NULL, 4),
(62, '621 B Rathmalgoda We', 'Divisional Secretariat,Ingiriya', NULL, NULL, 7, 4),
(63, '622 Pelpitigoda', 'Divisional Secretariat,Ingiriya', NULL, NULL, 6, 4),
(64, '622 Handapangoda Sou', 'Divisional Secretariat,Ingiriya', NULL, NULL, NULL, 4),
(65, '623 A Handapangoda E', 'Divisional Secretariat,Ingiriya', NULL, NULL, NULL, 4),
(66, '623 B Handapangoda W', 'Divisional Secretariat,Ingiriya', NULL, NULL, NULL, 4),
(67, '624 Batugampala', 'Divisional Secretariat,Ingiriya', NULL, NULL, NULL, 4),
(68, '624 A Kekuladola', 'Divisional Secretariat,Ingiriya', NULL, NULL, NULL, 4),
(69, '625 Arakawila', 'Divisional Secretariat,Ingiriya', NULL, NULL, NULL, 4),
(70, '625 A Menerigama', 'Divisional Secretariat,Ingiriya', NULL, NULL, NULL, 4),
(71, '626 Kadanapitiya', 'Divisional Secretariat,Ingiriya', NULL, NULL, NULL, 4),
(72, '626 A Kottiyawatta', 'Divisional Secretariat,Ingiriya', NULL, NULL, NULL, 4),
(73, '627 Kurana South', 'Divisional Secretariat,Ingiriya', NULL, NULL, NULL, 4),
(74, '627 A Kotigala', 'Divisional Secretariat,Ingiriya', NULL, NULL, NULL, 4),
(75, '627 B Kurana North', 'Divisional Secretariat,Ingiriya', NULL, NULL, NULL, 4),
(76, '632 Kandana North', 'Grama Niladhari Office,Kandana North - 632', NULL, NULL, NULL, 3),
(77, '633A Ilimba', 'Grama Niladhari Office,Ilimba - 632A', NULL, NULL, 4, 3),
(78, '632B Kandana South', 'Grama Niladhari Office,Kandana South - 632B', NULL, NULL, NULL, 3),
(79, '633 Werawatta', 'Grama Niladhari Office,Werawatta - 633', NULL, NULL, NULL, 3),
(80, '633A Kananvila', 'Grama Niladhari Office,Kananvila - 633A', NULL, NULL, NULL, 3),
(81, '633B Walpita', 'Grama Niladhari Office,Walpita - 633B', NULL, NULL, NULL, 3),
(82, '634 Mahayala East', 'Grama Niladhari Office,Mahayala East - 634', NULL, NULL, NULL, 3),
(83, '634A Mahayala West', 'Grama Niladhari Office,Mahayala West - 634A', NULL, NULL, NULL, 3),
(84, '635 Madurawala East', 'Grama Niladhari Office,Madurawala East - 635', NULL, NULL, NULL, 3),
(85, '635A Madurawala West', 'Grama Niladhari Office,Madurawala West - 635A', NULL, NULL, NULL, 3),
(86, '636 Kudayala', 'Grama Niladhari Office,Kudayala - 636', NULL, NULL, NULL, 3),
(87, '637 Anguruwathota', 'Grama Niladhari Office,Anguruwathota - 637', NULL, NULL, NULL, 3),
(88, '648 Keselhenawa', 'Grama Niladhari Office,Keselhenawa - 648', NULL, NULL, NULL, 3),
(89, '648A Kudella', 'Grama Niladhari Office,Kudella - 648A', NULL, NULL, NULL, 3),
(90, '648B Hallankanda', 'Grama Niladhari Office,Hallankanda - 648B', NULL, NULL, NULL, 3),
(91, '650 Remuna', 'Grama Niladhari Office,Remuna - 650', NULL, NULL, NULL, 3),
(92, '650A Bellapitiya Eas', 'Grama Niladhari Office,Bellapitiya East - 650A', NULL, NULL, 5, 3),
(93, '650B Bellapitiya Wes', 'Grama Niladhari Office,Bellapitiya West - 650B', NULL, NULL, NULL, 3),
(94, '650C Peramunagama', 'Grama Niladhari Office,Peramunagama - 650C', NULL, NULL, NULL, 3),
(95, '650D Weliketella', 'Grama Niladhari Office,Weliketella - 650D', NULL, NULL, NULL, 3),
(96, '650E Elawella', 'Grama Niladhari Office,Elawella - 650E', NULL, NULL, NULL, 3),
(97, '650F Mahena South', 'Grama Niladhari Office,Mahena South - 650F', NULL, NULL, NULL, 3),
(98, '811 Karannagoda', 'Grama Niladhari Office,Karannagoda - 811', NULL, NULL, NULL, 3),
(99, '811A Pahala Karannag', 'Grama Niladhari Office,Pahala Karannagoda - 811A', NULL, NULL, NULL, 3),
(100, '811B Ihala Karannago', 'Grama Niladhari Office,Ihala Karannagoda - 811B', NULL, NULL, NULL, 3),
(101, '815 Nahalla', 'Grama Niladhari Office,Nahalla - 815', NULL, NULL, NULL, 3),
(102, '815A Katuhena', 'Grama Niladhari Office,Katuhena - 815A', NULL, NULL, NULL, 3),
(103, '815B Pahalagoda', 'Grama Niladhari Office,Pahalagoda - 815B', NULL, NULL, NULL, 3),
(104, '815C Ihalagoda', 'Grama Niladhari Office,Ihalagoda - 815C', NULL, NULL, NULL, 3),
(105, '816 Warakagoda East', 'Grama Niladhari Office,Warakagoda East - 816', NULL, NULL, NULL, 3),
(106, '816A Warakagoda West', 'Grama Niladhari Office,Warakagoda West - 816A', NULL, NULL, NULL, 3),
(107, '816B Warakagoda Nort', 'Grama Niladhari Office,Warakagoda North - 816B', NULL, NULL, NULL, 3),
(108, '816C Warakagoda Sout', 'Grama Niladhari Office,Warakagoda South - 816C', NULL, NULL, NULL, 3);
-- --------------------------------------------------------
--
-- Table structure for table `gnfinalincident`
--
CREATE TABLE `gnfinalincident` (
`finalIncidentId` int(5) NOT NULL,
`startDate` date DEFAULT NULL,
`endDate` date DEFAULT NULL,
`disaster` int(11) NOT NULL,
`location` varchar(60) NOT NULL,
`cause` varchar(100) NOT NULL,
`fam` int(11) DEFAULT 0,
`people` int(11) DEFAULT 0,
`death` int(11) DEFAULT 0,
`injured` int(11) DEFAULT 0,
`evafam` int(11) DEFAULT 0,
`hospitalized` int(11) DEFAULT 0,
`evapeople` int(11) DEFAULT 0,
`hfull` int(11) DEFAULT 0,
`hpartial` int(11) DEFAULT 0,
`enterprise` int(11) DEFAULT 0,
`infras` int(11) DEFAULT 0,
`numofsafe` int(11) DEFAULT 0,
`sfpeople` int(11) DEFAULT 0,
`sfnumber` int(11) DEFAULT 0,
`dryrationsRs` int(11) DEFAULT 0,
`cookingRs` int(11) DEFAULT 0,
`emergencyRs` int(11) DEFAULT 0,
`remarks` varchar(50) DEFAULT NULL,
`gndvid` int(6) NOT NULL,
`disoffapproved` tinyint(1) NOT NULL DEFAULT 0,
`timestamp` timestamp NOT NULL DEFAULT current_timestamp(),
`incidentId` int(5) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `gnmsg`
--
CREATE TABLE `gnmsg` (
`msgId` int(11) NOT NULL,
`timestamp` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
`message` varchar(300) NOT NULL,
`gndvId` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `gnmsg`
--
INSERT INTO `gnmsg` (`msgId`, `timestamp`, `message`, `gndvId`) VALUES
(1, '2022-03-27 03:03:27', 'There will be an official meeting for elder people in Bolossagama on 2 nd of April,2022 at 10:00 am in Grama niladaari office,Bolossagama', 5);
-- --------------------------------------------------------
--
-- Table structure for table `gramaniladari`
--
CREATE TABLE `gramaniladari` (
`gramaNiladariID` int(6) NOT NULL,
`empName` varchar(100) NOT NULL,
`empAddress` varchar(100) NOT NULL,
`empEmail` varchar(50) NOT NULL,
`isAssigned` char(1) DEFAULT 'y',
`empTele` char(10) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `gramaniladari`
--
INSERT INTO `gramaniladari` (`gramaNiladariID`, `empName`, `empAddress`, `empEmail`, `isAssigned`, `empTele`) VALUES
(1, 'Asela Pathirage', 'NO 252/D,, ANANDA MAITHREE MAWATHA,, BELLAPITIYA, HORANA.', '[email protected]', 'y', '0767877818'),
(2, 'gn gn', 'Hene Gedara Hena, Ullala', '[email protected]', 'y', '0719867863'),
(3, 'test test', 'Hene Gedara Hena, Ullala', '[email protected]', 'y', '0719867863'),
(4, 'test test', 'Hene Gedara Hena, Ullala', '[email protected]', 'y', '0719867863'),
(5, 'Naween Lakshan', 'Hene Gedara Hena, Ullala', '[email protected]', 'y', '0719867863'),
(6, 'test Lakshan', 'Hene Gedara Hena, Ullala', '[email protected]', 'y', '0719867863'),
(7, 'Naween Lakshan', 'Hene Gedara Hena, Ullala', '[email protected]', 'y', '0719867863');
-- --------------------------------------------------------
--
-- Table structure for table `incident`
--
CREATE TABLE `incident` (
`incidentId` int(5) NOT NULL,
`title` varchar(100) NOT NULL,
`description` varchar(200) NOT NULL,
`dvId` int(11) NOT NULL,
`isActive` tinyint(1) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `incident`
--
INSERT INTO `incident` (`incidentId`, `title`, `description`, `dvId`, `isActive`) VALUES
(1, 'sample', 'des', 10, 1),
(2, 'ttttt2222', 'asdfadfasd sdfsdf', 10, 1),
(3, 'rr3434', 'rewrtert wertwert', 10, 0);
-- --------------------------------------------------------
--
-- Table structure for table `incidentgn`
--
CREATE TABLE `incidentgn` (
`incidentId` int(5) NOT NULL,
`gndvId` int(5) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `incidentgn`
--
INSERT INTO `incidentgn` (`incidentId`, `gndvId`) VALUES
(1, 5),
(1, 6),
(1, 7),
(1, 8),
(2, 5),
(2, 6),
(3, 3),
(3, 5),
(3, 6);
-- --------------------------------------------------------
--
-- Table structure for table `initialincident`
--
CREATE TABLE `initialincident` (
`initialId` int(10) NOT NULL,
`disaster` int(5) NOT NULL,
`date` date DEFAULT NULL,
`location` varchar(100) NOT NULL,
`cause` varchar(50) DEFAULT NULL,
`fam` int(11) DEFAULT 0,
`people` int(11) DEFAULT 0,
`death` int(11) DEFAULT 0,
`injured` int(11) DEFAULT 0,
`missing` int(11) DEFAULT 0,
`hfull` int(11) DEFAULT 0,
`hpartial` int(11) DEFAULT 0,
`enterprise` int(11) DEFAULT 0,
`infra` int(11) DEFAULT 0,
`safefam` int(11) DEFAULT 0,
`safepeople` int(11) DEFAULT 0,