52 lines
6.9 KiB
Plaintext
52 lines
6.9 KiB
Plaintext
<mxfile host="Electron" modified="2024" agent="Mozilla/5.0" version="22.1.2" type="device">
|
|
<diagram id="diag1" name="Page-1">
|
|
<mxGraphModel dx="1000" dy="1000" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1169" pageHeight="827" math="0" shadow="0">
|
|
<root>
|
|
<mxCell id="0" />
|
|
<mxCell id="1" parent="0" />
|
|
<mxCell id="e_title" value="Entity Relationship Diagram (ERD) - WebGIS GeoPoverty v2.0" style="text;html=1;align=center;fontStyle=1;fontSize=18;" vertex="1" parent="1"><mxGeometry x="40" y="20" width="900" height="40" as="geometry"/></mxCell>
|
|
|
|
<!-- Table: pengguna -->
|
|
<mxCell id="t_pengguna" value="<b>pengguna</b><hr><p style="margin:0;line-height:1.5;">PK id : INT<br>username : VARCHAR<br>password_hash : VARCHAR<br>nama_lengkap : VARCHAR<br>role : ENUM<br>FK masjid_id : INT<br>aktif : TINYINT</p>" style="shape=rectangle;fillColor=#fff2cc;strokeColor=#d6b656;align=left;verticalAlign=top;spacingLeft=10;spacingTop=10;spacingRight=10;spacingBottom=10;fontSize=12;html=1;whiteSpace=wrap;" vertex="1" parent="1"><mxGeometry x="40" y="100" width="220" height="200" as="geometry"/></mxCell>
|
|
|
|
<!-- Table: masjid -->
|
|
<mxCell id="t_masjid" value="<b>masjid (rumah ibadah)</b><hr><p style="margin:0;line-height:1.5;">PK id : INT<br>nama_masjid : VARCHAR<br>pic_masjid : VARCHAR<br>alamat : TEXT<br>latitude : DECIMAL<br>longitude : DECIMAL<br>radius : INT<br>jenis_ibadah : ENUM</p>" style="shape=rectangle;fillColor=#dae8fc;strokeColor=#6c8ebf;align=left;verticalAlign=top;spacingLeft=10;spacingTop=10;spacingRight=10;spacingBottom=10;fontSize=12;html=1;whiteSpace=wrap;" vertex="1" parent="1"><mxGeometry x="360" y="100" width="220" height="200" as="geometry"/></mxCell>
|
|
|
|
<!-- Table: kemiskinan -->
|
|
<mxCell id="t_kemiskinan" value="<b>kemiskinan</b><hr><p style="margin:0;line-height:1.5;">PK id : INT<br>nama_kepala_keluarga : VARCHAR<br>jumlah_kk : INT<br>alamat : TEXT<br>latitude : DECIMAL<br>longitude : DECIMAL<br>status_keluarga : ENUM</p>" style="shape=rectangle;fillColor=#d5e8d4;strokeColor=#82b366;align=left;verticalAlign=top;spacingLeft=10;spacingTop=10;spacingRight=10;spacingBottom=10;fontSize=12;html=1;whiteSpace=wrap;" vertex="1" parent="1"><mxGeometry x="680" y="100" width="220" height="200" as="geometry"/></mxCell>
|
|
|
|
<!-- Table: pesan_komunikasi -->
|
|
<mxCell id="t_pesan" value="<b>pesan_komunikasi</b><hr><p style="margin:0;line-height:1.5;">PK id : INT<br>FK pengirim_id : INT<br>FK penerima_id : INT<br>judul : VARCHAR<br>isi : TEXT<br>jenis : ENUM<br>status : ENUM</p>" style="shape=rectangle;fillColor=#e1d5e7;strokeColor=#9673a6;align=left;verticalAlign=top;spacingLeft=10;spacingTop=10;spacingRight=10;spacingBottom=10;fontSize=12;html=1;whiteSpace=wrap;" vertex="1" parent="1"><mxGeometry x="40" y="360" width="220" height="200" as="geometry"/></mxCell>
|
|
|
|
<!-- Table: histori_bantuan -->
|
|
<mxCell id="t_bantuan" value="<b>histori_bantuan</b><hr><p style="margin:0;line-height:1.5;">PK id : INT<br>FK kemiskinan_id : INT<br>FK masjid_id : INT<br>jenis_bantuan : ENUM<br>jumlah_bantuan : DECIMAL<br>tanggal_bantuan : DATE<br>status_penyaluran : ENUM</p>" style="shape=rectangle;fillColor=#f8cecc;strokeColor=#b85450;align=left;verticalAlign=top;spacingLeft=10;spacingTop=10;spacingRight=10;spacingBottom=10;fontSize=12;html=1;whiteSpace=wrap;" vertex="1" parent="1"><mxGeometry x="360" y="360" width="220" height="200" as="geometry"/></mxCell>
|
|
|
|
<!-- Table: anggota_keluarga -->
|
|
<mxCell id="t_anggota" value="<b>anggota_keluarga</b><hr><p style="margin:0;line-height:1.5;">PK id : INT<br>FK kemiskinan_id : INT<br>nama : VARCHAR<br>tanggal_lahir : DATE<br>jenis_kelamin : ENUM<br>hubungan_keluarga : ENUM<br>status_hidup : ENUM<br>pendidikan : ENUM</p>" style="shape=rectangle;fillColor=#ffe6cc;strokeColor=#d79b00;align=left;verticalAlign=top;spacingLeft=10;spacingTop=10;spacingRight=10;spacingBottom=10;fontSize=12;html=1;whiteSpace=wrap;" vertex="1" parent="1"><mxGeometry x="680" y="360" width="220" height="200" as="geometry"/></mxCell>
|
|
|
|
<!-- Table: laporan_kondisi -->
|
|
<mxCell id="t_laporan" value="<b>laporan_kondisi</b><hr><p style="margin:0;line-height:1.5;">PK id : INT<br>FK kemiskinan_id : INT<br>nama_pelapor : VARCHAR<br>nomor_wa : VARCHAR<br>kategori : ENUM<br>deskripsi : TEXT<br>status_laporan : ENUM</p>" style="shape=rectangle;fillColor=#f5f5f5;strokeColor=#666666;align=left;verticalAlign=top;spacingLeft=10;spacingTop=10;spacingRight=10;spacingBottom=10;fontSize=12;html=1;whiteSpace=wrap;" vertex="1" parent="1"><mxGeometry x="680" y="620" width="220" height="180" as="geometry"/></mxCell>
|
|
|
|
<!-- Relationships -->
|
|
<!-- pengguna to masjid -->
|
|
<mxCell id="r1" value="1..N" style="edgeStyle=orthogonalEdgeStyle;endArrow=classic;endFill=1;startArrow=none;fontSize=11;" edge="1" source="t_pengguna" target="t_masjid" parent="1"><mxGeometry relative="1" as="geometry"/></mxCell>
|
|
|
|
<!-- pesan to pengguna -->
|
|
<mxCell id="r2" value="N..1" style="edgeStyle=orthogonalEdgeStyle;endArrow=classic;endFill=1;startArrow=none;fontSize=11;" edge="1" source="t_pesan" target="t_pengguna" parent="1"><mxGeometry relative="1" as="geometry"/></mxCell>
|
|
|
|
<!-- bantuan to masjid -->
|
|
<mxCell id="r3" value="N..1" style="edgeStyle=orthogonalEdgeStyle;endArrow=classic;endFill=1;startArrow=none;fontSize=11;" edge="1" source="t_bantuan" target="t_masjid" parent="1"><mxGeometry relative="1" as="geometry"/></mxCell>
|
|
|
|
<!-- bantuan to kemiskinan -->
|
|
<mxCell id="r4" value="N..1" style="edgeStyle=orthogonalEdgeStyle;endArrow=classic;endFill=1;startArrow=none;fontSize=11;" edge="1" source="t_bantuan" target="t_kemiskinan" parent="1"><mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="470" y="330"/><mxPoint x="790" y="330"/></Array></mxGeometry></mxCell>
|
|
|
|
<!-- anggota to kemiskinan -->
|
|
<mxCell id="r5" value="N..1" style="edgeStyle=orthogonalEdgeStyle;endArrow=classic;endFill=1;startArrow=none;fontSize=11;" edge="1" source="t_anggota" target="t_kemiskinan" parent="1"><mxGeometry relative="1" as="geometry"/></mxCell>
|
|
|
|
<!-- laporan to kemiskinan -->
|
|
<mxCell id="r6" value="N..1" style="edgeStyle=orthogonalEdgeStyle;endArrow=classic;endFill=1;startArrow=none;fontSize=11;" edge="1" source="t_laporan" target="t_kemiskinan" parent="1"><mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="950" y="710"/><mxPoint x="950" y="200"/></Array></mxGeometry></mxCell>
|
|
</root>
|
|
</mxGraphModel>
|
|
</diagram>
|
|
</mxfile>
|