Database.svg 27KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <?xml version="1.0" encoding="UTF-8" standalone="no"?><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" contentScriptType="application/ecmascript" contentStyleType="text/css" height="513px" preserveAspectRatio="none" style="width:484px;height:513px;background:#FFFFFF;" version="1.1" viewBox="0 0 484 513" width="484px" zoomAndPan="magnify"><defs><filter height="300%" id="f1hkszgv5r3tlw" width="300%" x="-1" y="-1"><feGaussianBlur result="blurOut" stdDeviation="2.0"/><feColorMatrix in="blurOut" result="blurOut2" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .4 0"/><feOffset dx="4.0" dy="4.0" in="blurOut2" result="blurOut3"/><feBlend in="SourceGraphic" in2="blurOut3" mode="normal"/></filter></defs><g><!--MD5=[3fd616f346a44cd59a91eb10b19e157c]
  2. class User--><rect codeLine="2" fill="#FEFECE" filter="url(#f1hkszgv5r3tlw)" height="136.5425" id="User" style="stroke:#A80036;stroke-width:1.5;" width="76" x="129.5" y="229"/><ellipse cx="152.15" cy="245" fill="#ADD1B2" rx="11" ry="11" style="stroke:#A80036;stroke-width:1.0;"/><path d="M148.2906,250.5 L148.2906,239.2969 L156.3219,239.2969 L156.3219,241.1875 L150.7438,241.1875 L150.7438,243.8906 L155.8219,243.8906 L155.8219,245.7813 L150.7438,245.7813 L150.7438,248.6094 L156.6656,248.6094 L156.6656,250.5 L148.2906,250.5 Z " fill="#000000"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacing" textLength="27" x="167.85" y="249.3564">User</text><line style="stroke:#A80036;stroke-width:1.5;" x1="130.5" x2="204.5" y1="261" y2="261"/><ellipse cx="140.5" cy="272" fill="#000000" rx="3" ry="3" style="stroke:#000000;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="8" x="149.5" y="275.3179">id</text><line style="stroke:#A80036;stroke-width:1.5;" x1="130.5" x2="204.5" y1="281.6489" y2="281.6489"/><ellipse cx="140.5" cy="292.6489" fill="#000000" rx="3" ry="3" style="stroke:#000000;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="26" x="149.5" y="295.9668">name</text><ellipse cx="140.5" cy="305.2979" fill="#000000" rx="3" ry="3" style="stroke:#000000;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="48" x="149.5" y="308.6157">username</text><ellipse cx="140.5" cy="317.9468" fill="#000000" rx="3" ry="3" style="stroke:#000000;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="30" x="149.5" y="321.2646">status</text><ellipse cx="140.5" cy="330.5957" fill="#000000" rx="3" ry="3" style="stroke:#000000;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="50" x="149.5" y="333.9136">password</text><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="6" x="149.5" y="346.5625">_</text><ellipse cx="140.5" cy="355.8936" fill="#000000" rx="3" ry="3" style="stroke:#000000;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="32" x="149.5" y="359.2114">role_id</text><!--MD5=[a3638c1e5b65d287ecad7f06f5c0f212]
  3. class Role--><rect codeLine="13" fill="#FEFECE" filter="url(#f1hkszgv5r3tlw)" height="73.2979" id="Role" style="stroke:#A80036;stroke-width:1.5;" width="58" x="138.5" y="426"/><ellipse cx="153.5" cy="442" fill="#ADD1B2" rx="11" ry="11" style="stroke:#A80036;stroke-width:1.0;"/><path d="M149.6406,447.5 L149.6406,436.2969 L157.6719,436.2969 L157.6719,438.1875 L152.0938,438.1875 L152.0938,440.8906 L157.1719,440.8906 L157.1719,442.7813 L152.0938,442.7813 L152.0938,445.6094 L158.0156,445.6094 L158.0156,447.5 L149.6406,447.5 Z " fill="#000000"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacing" textLength="26" x="167.5" y="446.3564">Role</text><line style="stroke:#A80036;stroke-width:1.5;" x1="139.5" x2="195.5" y1="458" y2="458"/><ellipse cx="149.5" cy="469" fill="#000000" rx="3" ry="3" style="stroke:#000000;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="8" x="158.5" y="472.3179">id</text><line style="stroke:#A80036;stroke-width:1.5;" x1="139.5" x2="195.5" y1="478.6489" y2="478.6489"/><ellipse cx="149.5" cy="489.6489" fill="#000000" rx="3" ry="3" style="stroke:#000000;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="26" x="158.5" y="492.9668">name</text><!--MD5=[2ce0c9fb7f55b1e256ab28a8ea6b25ec]
  4. class Customer--><rect codeLine="19" fill="#FEFECE" filter="url(#f1hkszgv5r3tlw)" height="111.2446" id="Customer" style="stroke:#A80036;stroke-width:1.5;" width="87" x="7" y="242"/><ellipse cx="22" cy="258" fill="#ADD1B2" rx="11" ry="11" style="stroke:#A80036;stroke-width:1.0;"/><path d="M18.1406,263.5 L18.1406,252.2969 L26.1719,252.2969 L26.1719,254.1875 L20.5938,254.1875 L20.5938,256.8906 L25.6719,256.8906 L25.6719,258.7813 L20.5938,258.7813 L20.5938,261.6094 L26.5156,261.6094 L26.5156,263.5 L18.1406,263.5 Z " fill="#000000"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacing" textLength="55" x="36" y="262.3564">Customer</text><line style="stroke:#A80036;stroke-width:1.5;" x1="8" x2="93" y1="274" y2="274"/><ellipse cx="18" cy="285" fill="#000000" rx="3" ry="3" style="stroke:#000000;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="8" x="27" y="288.3179">id</text><line style="stroke:#A80036;stroke-width:1.5;" x1="8" x2="93" y1="294.6489" y2="294.6489"/><ellipse cx="18" cy="305.6489" fill="#000000" rx="3" ry="3" style="stroke:#000000;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="26" x="27" y="308.9668">name</text><ellipse cx="18" cy="318.2979" fill="#000000" rx="3" ry="3" style="stroke:#000000;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="40" x="27" y="321.6157">address</text><ellipse cx="18" cy="330.9468" fill="#000000" rx="3" ry="3" style="stroke:#000000;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="30" x="27" y="334.2646">phone</text><ellipse cx="18" cy="343.5957" fill="#000000" rx="3" ry="3" style="stroke:#000000;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="28" x="27" y="346.9136">npwp</text><!--MD5=[72136138052d025cffdce3c22fbd185f]
  5. class Product--><rect codeLine="28" fill="#FEFECE" filter="url(#f1hkszgv5r3tlw)" height="98.5957" id="Product" style="stroke:#A80036;stroke-width:1.5;" width="74" x="240.5" y="248"/><ellipse cx="255.5" cy="264" fill="#ADD1B2" rx="11" ry="11" style="stroke:#A80036;stroke-width:1.0;"/><path d="M251.6406,269.5 L251.6406,258.2969 L259.6719,258.2969 L259.6719,260.1875 L254.0938,260.1875 L254.0938,262.8906 L259.1719,262.8906 L259.1719,264.7813 L254.0938,264.7813 L254.0938,267.6094 L260.0156,267.6094 L260.0156,269.5 L251.6406,269.5 Z " fill="#000000"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacing" textLength="42" x="269.5" y="268.3564">Product</text><line style="stroke:#A80036;stroke-width:1.5;" x1="241.5" x2="313.5" y1="280" y2="280"/><ellipse cx="251.5" cy="291" fill="#000000" rx="3" ry="3" style="stroke:#000000;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="8" x="260.5" y="294.3179">id</text><line style="stroke:#A80036;stroke-width:1.5;" x1="241.5" x2="313.5" y1="300.6489" y2="300.6489"/><ellipse cx="251.5" cy="311.6489" fill="#000000" rx="3" ry="3" style="stroke:#000000;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="36" x="260.5" y="314.9668">number</text><ellipse cx="251.5" cy="324.2979" fill="#000000" rx="3" ry="3" style="stroke:#000000;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="26" x="260.5" y="327.6157">name</text><ellipse cx="251.5" cy="336.9468" fill="#000000" rx="3" ry="3" style="stroke:#000000;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="17" x="260.5" y="340.2646">unit</text><!--MD5=[6f6af049516bc56aac6e320b3234ce97]
  6. class Supplier--><rect codeLine="36" fill="#FEFECE" filter="url(#f1hkszgv5r3tlw)" height="123.8936" id="Supplier" style="stroke:#A80036;stroke-width:1.5;" width="78" x="349.5" y="235.5"/><ellipse cx="364.5" cy="251.5" fill="#ADD1B2" rx="11" ry="11" style="stroke:#A80036;stroke-width:1.0;"/><path d="M360.6406,257 L360.6406,245.7969 L368.6719,245.7969 L368.6719,247.6875 L363.0938,247.6875 L363.0938,250.3906 L368.1719,250.3906 L368.1719,252.2813 L363.0938,252.2813 L363.0938,255.1094 L369.0156,255.1094 L369.0156,257 L360.6406,257 Z " fill="#000000"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacing" textLength="46" x="378.5" y="255.8564">Supplier</text><line style="stroke:#A80036;stroke-width:1.5;" x1="350.5" x2="426.5" y1="267.5" y2="267.5"/><ellipse cx="360.5" cy="278.5" fill="#000000" rx="3" ry="3" style="stroke:#000000;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="8" x="369.5" y="281.8179">id</text><line style="stroke:#A80036;stroke-width:1.5;" x1="350.5" x2="426.5" y1="288.1489" y2="288.1489"/><ellipse cx="360.5" cy="299.1489" fill="#000000" rx="3" ry="3" style="stroke:#000000;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="26" x="369.5" y="302.4668">name</text><ellipse cx="360.5" cy="311.7979" fill="#000000" rx="3" ry="3" style="stroke:#000000;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="40" x="369.5" y="315.1157">address</text><ellipse cx="360.5" cy="324.4468" fill="#000000" rx="3" ry="3" style="stroke:#000000;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="30" x="369.5" y="327.7646">phone</text><ellipse cx="360.5" cy="337.0957" fill="#000000" rx="3" ry="3" style="stroke:#000000;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="24" x="369.5" y="340.4136">email</text><ellipse cx="360.5" cy="349.7446" fill="#000000" rx="3" ry="3" style="stroke:#000000;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="28" x="369.5" y="353.0625">npwp</text><!--MD5=[ca228764f84c38a6bbd29bae3074bbc7]
  7. class Purchase--><rect codeLine="46" fill="#FEFECE" filter="url(#f1hkszgv5r3tlw)" height="161.8403" id="Purchase" style="stroke:#A80036;stroke-width:1.5;" width="105" x="225" y="7"/><ellipse cx="249" cy="23" fill="#ADD1B2" rx="11" ry="11" style="stroke:#A80036;stroke-width:1.0;"/><path d="M245.1406,28.5 L245.1406,17.2969 L253.1719,17.2969 L253.1719,19.1875 L247.5938,19.1875 L247.5938,21.8906 L252.6719,21.8906 L252.6719,23.7813 L247.5938,23.7813 L247.5938,26.6094 L253.5156,26.6094 L253.5156,28.5 L245.1406,28.5 Z " fill="#000000"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacing" textLength="53" x="265" y="27.3564">Purchase</text><line style="stroke:#A80036;stroke-width:1.5;" x1="226" x2="329" y1="39" y2="39"/><ellipse cx="236" cy="50" fill="#000000" rx="3" ry="3" style="stroke:#000000;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="8" x="245" y="53.3179">id</text><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="12" x="245" y="65.9668">__</text><ellipse cx="236" cy="75.2979" fill="#000000" rx="3" ry="3" style="stroke:#000000;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="24" x="245" y="78.6157">price</text><ellipse cx="236" cy="87.9468" fill="#000000" rx="3" ry="3" style="stroke:#000000;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="30" x="245" y="91.2646">ppn11</text><ellipse cx="236" cy="100.5957" fill="#000000" rx="3" ry="3" style="stroke:#000000;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="15" x="245" y="103.9136">qty</text><ellipse cx="236" cy="113.2446" fill="#000000" rx="3" ry="3" style="stroke:#000000;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="79" x="245" y="116.5625">product_number</text><line style="stroke:#A80036;stroke-width:1.5;" x1="226" x2="329" y1="122.8936" y2="122.8936"/><ellipse cx="236" cy="133.8936" fill="#000000" rx="3" ry="3" style="stroke:#000000;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="51" x="245" y="137.2114">product_id</text><ellipse cx="236" cy="146.5425" fill="#000000" rx="3" ry="3" style="stroke:#000000;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="52" x="245" y="149.8604">supplier_id</text><ellipse cx="236" cy="159.1914" fill="#000000" rx="3" ry="3" style="stroke:#000000;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="36" x="245" y="162.5093">user_id</text><!--MD5=[b6587b47cb08bf742060086bd1cd0b7e]
  8. class Sales--><rect codeLine="59" fill="#FEFECE" filter="url(#f1hkszgv5r3tlw)" height="157.1914" id="Sales" style="stroke:#A80036;stroke-width:1.5;" width="102" x="87.5" y="9.5"/><ellipse cx="119.6" cy="25.5" fill="#ADD1B2" rx="11" ry="11" style="stroke:#A80036;stroke-width:1.0;"/><path d="M115.7406,31 L115.7406,19.7969 L123.7719,19.7969 L123.7719,21.6875 L118.1938,21.6875 L118.1938,24.3906 L123.2719,24.3906 L123.2719,26.2813 L118.1938,26.2813 L118.1938,29.1094 L124.1156,29.1094 L124.1156,31 L115.7406,31 Z " fill="#000000"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacing" textLength="32" x="137.4" y="29.8564">Sales</text><line style="stroke:#A80036;stroke-width:1.5;" x1="88.5" x2="188.5" y1="41.5" y2="41.5"/><ellipse cx="98.5" cy="52.5" fill="#000000" rx="3" ry="3" style="stroke:#000000;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="8" x="107.5" y="55.8179">id</text><line style="stroke:#A80036;stroke-width:1.5;" x1="88.5" x2="188.5" y1="62.1489" y2="62.1489"/><ellipse cx="98.5" cy="73.1489" fill="#000000" rx="3" ry="3" style="stroke:#000000;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="24" x="107.5" y="76.4668">price</text><ellipse cx="98.5" cy="85.7979" fill="#000000" rx="3" ry="3" style="stroke:#000000;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="30" x="107.5" y="89.1157">ppn11</text><ellipse cx="98.5" cy="98.4468" fill="#000000" rx="3" ry="3" style="stroke:#000000;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="15" x="107.5" y="101.7646">qty</text><ellipse cx="98.5" cy="111.0957" fill="#000000" rx="3" ry="3" style="stroke:#000000;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="76" x="107.5" y="114.4136">invoice_number</text><line style="stroke:#A80036;stroke-width:1.5;" x1="88.5" x2="188.5" y1="120.7446" y2="120.7446"/><ellipse cx="98.5" cy="131.7446" fill="#000000" rx="3" ry="3" style="stroke:#000000;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="51" x="107.5" y="135.0625">product_id</text><ellipse cx="98.5" cy="144.3936" fill="#000000" rx="3" ry="3" style="stroke:#000000;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="59" x="107.5" y="147.7114">customer_id</text><ellipse cx="98.5" cy="157.0425" fill="#000000" rx="3" ry="3" style="stroke:#000000;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="36" x="107.5" y="160.3604">user_id</text><!--MD5=[0cfc926ac851c171b4800cdea9975fdf]
  9. class StockProduct--><rect codeLine="72" fill="#FEFECE" filter="url(#f1hkszgv5r3tlw)" height="119.2446" id="StockProduct" style="stroke:#A80036;stroke-width:1.5;" width="105" x="365" y="28.5"/><ellipse cx="380.45" cy="44.5" fill="#ADD1B2" rx="11" ry="11" style="stroke:#A80036;stroke-width:1.0;"/><path d="M376.5906,50 L376.5906,38.7969 L384.6219,38.7969 L384.6219,40.6875 L379.0438,40.6875 L379.0438,43.3906 L384.1219,43.3906 L384.1219,45.2813 L379.0438,45.2813 L379.0438,48.1094 L384.9656,48.1094 L384.9656,50 L376.5906,50 Z " fill="#000000"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacing" textLength="72" x="394.55" y="48.8564">StockProduct</text><line style="stroke:#A80036;stroke-width:1.5;" x1="366" x2="469" y1="60.5" y2="60.5"/><ellipse cx="376" cy="71.5" fill="#000000" rx="3" ry="3" style="stroke:#000000;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="8" x="385" y="74.8179">id</text><line style="stroke:#A80036;stroke-width:1.5;" x1="366" x2="469" y1="81.1489" y2="81.1489"/><ellipse cx="376" cy="92.1489" fill="#000000" rx="3" ry="3" style="stroke:#000000;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="79" x="385" y="95.4668">product_number</text><ellipse cx="376" cy="104.7979" fill="#000000" rx="3" ry="3" style="stroke:#000000;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="76" x="385" y="108.1157">invoice_number</text><ellipse cx="376" cy="117.4468" fill="#000000" rx="3" ry="3" style="stroke:#000000;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="35" x="385" y="120.7646">amount</text><line style="stroke:#A80036;stroke-width:1.5;" x1="366" x2="469" y1="127.0957" y2="127.0957"/><ellipse cx="376" cy="138.0957" fill="#000000" rx="3" ry="3" style="stroke:#000000;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="51" x="385" y="141.4136">product_id</text><!--MD5=[70c37dc9bfbc8656942103c36f1181e4]
  10. link User to Role--><path codeLine="82" d="M167.5,374.42 C167.5,389.28 167.5,404.38 167.5,417.75 " fill="none" id="User-Role" style="stroke:#A80036;stroke-width:1.0;"/><line style="stroke:#A80036;stroke-width:1.0;" x1="167.5" x2="173.5" y1="417.83" y2="425.83"/><line style="stroke:#A80036;stroke-width:1.0;" x1="167.5" x2="161.5" y1="417.83" y2="425.83"/><line style="stroke:#A80036;stroke-width:1.0;" x1="167.5" x2="167.5" y1="417.83" y2="425.83"/><line style="stroke:#A80036;stroke-width:1.0;" x1="171.5" x2="163.5" y1="415.83" y2="415.83"/><line style="stroke:#A80036;stroke-width:1.0;" x1="163.5" x2="171.5" y1="370.21" y2="370.21"/><line style="stroke:#A80036;stroke-width:1.0;" x1="163.5" x2="171.5" y1="373.21" y2="373.21"/><line style="stroke:#A80036;stroke-width:1.0;" x1="167.5" x2="167.5" y1="374.21" y2="366.21"/><!--MD5=[f93227767273e9144af813cf724a60c6]
  11. link Purchase to Product--><path codeLine="83" d="M277.5,177.38 C277.5,198.56 277.5,220.61 277.5,239.89 " fill="none" id="Purchase-Product" style="stroke:#A80036;stroke-width:1.0;"/><line style="stroke:#A80036;stroke-width:1.0;" x1="277.5" x2="283.5" y1="239.98" y2="247.98"/><line style="stroke:#A80036;stroke-width:1.0;" x1="277.5" x2="271.5" y1="239.98" y2="247.98"/><line style="stroke:#A80036;stroke-width:1.0;" x1="277.5" x2="277.5" y1="239.98" y2="247.98"/><line style="stroke:#A80036;stroke-width:1.0;" x1="281.5" x2="273.5" y1="237.98" y2="237.98"/><line style="stroke:#A80036;stroke-width:1.0;" x1="273.5" x2="281.5" y1="173.22" y2="173.22"/><line style="stroke:#A80036;stroke-width:1.0;" x1="273.5" x2="281.5" y1="176.22" y2="176.22"/><line style="stroke:#A80036;stroke-width:1.0;" x1="277.5" x2="277.5" y1="177.22" y2="169.22"/><!--MD5=[47449b9f044e3634f406bd4441e700dd]
  12. link Purchase to Supplier--><path codeLine="84" d="M324.3,176.5 C333.51,193.71 343.05,211.53 351.86,228.01 " fill="none" id="Purchase-Supplier" style="stroke:#A80036;stroke-width:1.0;"/><line style="stroke:#A80036;stroke-width:1.0;" x1="352.0894" x2="361.1517" y1="228.4243" y2="232.652"/><line style="stroke:#A80036;stroke-width:1.0;" x1="352.0894" x2="350.5683" y1="228.4243" y2="238.308"/><line style="stroke:#A80036;stroke-width:1.0;" x1="352.0894" x2="355.86" y1="228.4243" y2="235.48"/><line style="stroke:#A80036;stroke-width:1.0;" x1="354.6745" x2="347.6189" y1="224.7751" y2="228.5457"/><line style="stroke:#A80036;stroke-width:1.0;" x1="318.7775" x2="325.8331" y1="174.6331" y2="170.8625"/><line style="stroke:#A80036;stroke-width:1.0;" x1="320.1915" x2="327.2471" y1="177.279" y2="173.5084"/><line style="stroke:#A80036;stroke-width:1.0;" x1="324.1906" x2="320.42" y1="176.2757" y2="169.22"/><!--MD5=[908832567ff15e3f47de674b99e285bc]
  13. link Purchase to User--><path codeLine="85" d="M231.02,176.67 C223.06,191.7 214.85,207.18 207.08,221.83 " fill="none" id="Purchase-User" style="stroke:#A80036;stroke-width:1.0;"/><line style="stroke:#A80036;stroke-width:1.0;" x1="207.0584" x2="208.6106" y1="221.8825" y2="231.7613"/><line style="stroke:#A80036;stroke-width:1.0;" x1="207.0584" x2="198.0094" y1="221.8825" y2="226.1387"/><line style="stroke:#A80036;stroke-width:1.0;" x1="207.0584" x2="203.31" y1="221.8825" y2="228.95"/><line style="stroke:#A80036;stroke-width:1.0;" x1="211.5292" x2="204.4617" y1="221.9898" y2="218.2414"/><line style="stroke:#A80036;stroke-width:1.0;" x1="229.5635" x2="236.6341" y1="170.8841" y2="174.6265"/><line style="stroke:#A80036;stroke-width:1.0;" x1="228.16" x2="235.2307" y1="173.5356" y2="177.278"/><line style="stroke:#A80036;stroke-width:1.0;" x1="231.2276" x2="234.97" y1="176.2907" y2="169.22"/><!--MD5=[a1800330d345d2f946249e9e4299eabc]
  14. link Sales to Product--><path codeLine="86" d="M194.25,172.23 C209.8,195.44 226.3,220.07 240.48,241.23 " fill="none" id="Sales-Product" style="stroke:#A80036;stroke-width:1.0;"/><line style="stroke:#A80036;stroke-width:1.0;" x1="240.5326" x2="249.9724" y1="241.3368" y2="244.637"/><line style="stroke:#A80036;stroke-width:1.0;" x1="240.5326" x2="240.0076" y1="241.3368" y2="251.323"/><line style="stroke:#A80036;stroke-width:1.0;" x1="240.5326" x2="244.99" y1="241.3368" y2="247.98"/><line style="stroke:#A80036;stroke-width:1.0;" x1="242.7399" x2="236.0967" y1="237.4473" y2="241.9047"/><line style="stroke:#A80036;stroke-width:1.0;" x1="188.5716" x2="195.2192" y1="170.9292" y2="166.4784"/><line style="stroke:#A80036;stroke-width:1.0;" x1="190.2406" x2="196.8882" y1="173.422" y2="168.9713"/><line style="stroke:#A80036;stroke-width:1.0;" x1="194.1208" x2="189.67" y1="172.0276" y2="165.38"/><!--MD5=[77820080b9be6acfb6e8a381a1a0e9b8]
  15. link Sales to Customer--><path codeLine="87" d="M102.46,173.97 C93.86,194.25 84.84,215.52 76.77,234.54 " fill="none" id="Sales-Customer" style="stroke:#A80036;stroke-width:1.0;"/><line style="stroke:#A80036;stroke-width:1.0;" x1="76.7334" x2="79.147" y1="234.6207" y2="244.325"/><line style="stroke:#A80036;stroke-width:1.0;" x1="76.7334" x2="68.093" y1="234.6207" y2="239.655"/><line style="stroke:#A80036;stroke-width:1.0;" x1="76.7334" x2="73.62" y1="234.6207" y2="241.99"/><line style="stroke:#A80036;stroke-width:1.0;" x1="81.1964" x2="73.8271" y1="234.3351" y2="231.2217"/><line style="stroke:#A80036;stroke-width:1.0;" x1="100.3637" x2="107.7257" y1="168.6757" y2="171.8063"/><line style="stroke:#A80036;stroke-width:1.0;" x1="99.1897" x2="106.5517" y1="171.4364" y2="174.5671"/><line style="stroke:#A80036;stroke-width:1.0;" x1="102.4794" x2="105.61" y1="173.922" y2="166.56"/><!--MD5=[b90679fcd0158477e65aabd182e1535f]
  16. link Sales to User--><path codeLine="88" d="M150.49,174.79 C152.62,190.02 154.82,205.79 156.91,220.72 " fill="none" id="Sales-User" style="stroke:#A80036;stroke-width:1.0;"/><line style="stroke:#A80036;stroke-width:1.0;" x1="156.9366" x2="163.9916" y1="220.9879" y2="228.075"/><line style="stroke:#A80036;stroke-width:1.0;" x1="156.9366" x2="152.1084" y1="220.9879" y2="229.745"/><line style="stroke:#A80036;stroke-width:1.0;" x1="156.9366" x2="158.05" y1="220.9879" y2="228.91"/><line style="stroke:#A80036;stroke-width:1.0;" x1="160.6193" x2="152.6972" y1="218.4506" y2="219.564"/><line style="stroke:#A80036;stroke-width:1.0;" x1="145.9276" x2="153.8517" y1="171.0717" y2="169.9724"/><line style="stroke:#A80036;stroke-width:1.0;" x1="146.3399" x2="154.264" y1="174.0433" y2="172.9439"/><line style="stroke:#A80036;stroke-width:1.0;" x1="150.4394" x2="149.34" y1="174.4841" y2="166.56"/><!--MD5=[469537f6e6fbfad22558102ade648a2e]
  17. link StockProduct to Product--><path codeLine="89" d="M373.89,153.64 C354.81,181.92 332.66,214.74 314.41,241.79 " fill="none" id="StockProduct-Product" style="stroke:#A80036;stroke-width:1.0;"/><line style="stroke:#A80036;stroke-width:1.0;" x1="315.8932" x2="309.262" y1="246.742" y2="242.2668"/><line style="stroke:#A80036;stroke-width:1.0;" x1="317.5714" x2="310.9402" y1="244.2553" y2="239.7801"/><line style="stroke:#A80036;stroke-width:1.0;" x1="314.8152" x2="310.34" y1="241.1888" y2="247.82"/><line style="stroke:#A80036;stroke-width:1.0;" x1="372.3868" x2="379.018" y1="148.708" y2="153.1832"/><line style="stroke:#A80036;stroke-width:1.0;" x1="370.7086" x2="377.3398" y1="151.1947" y2="155.6699"/><line style="stroke:#A80036;stroke-width:1.0;" x1="373.4648" x2="377.94" y1="154.2612" y2="147.63"/><!--MD5=[46ce65098b36372a8cf3e0bb439d5da2]
  18. @startuml Database
  19. entity User {
  20. * id
  21. __
  22. * name
  23. * username
  24. * status
  25. * password
  26. _
  27. * role_id
  28. }
  29. entity Role {
  30. * id
  31. __
  32. * name
  33. }
  34. entity Customer {
  35. * id
  36. __
  37. * name
  38. * address
  39. * phone
  40. * npwp
  41. }
  42. entity Product {
  43. * id
  44. __
  45. * number
  46. * name
  47. * unit
  48. }
  49. entity Supplier {
  50. * id
  51. __
  52. * name
  53. * address
  54. * phone
  55. * email
  56. * npwp
  57. }
  58. entity Purchase {
  59. * id
  60. __
  61. * price
  62. * ppn11
  63. * qty
  64. * product_number
  65. __
  66. * product_id
  67. * supplier_id
  68. * user_id
  69. }
  70. entity Sales {
  71. * id
  72. __
  73. * price
  74. * ppn11
  75. * qty
  76. * invoice_number
  77. __
  78. * product_id
  79. * customer_id
  80. * user_id
  81. }
  82. entity StockProduct {
  83. * id
  84. __
  85. * product_number
  86. * invoice_number
  87. * amount
  88. __
  89. * product_id
  90. }
  91. User ||- -|{ Role
  92. Purchase ||- -|{ Product
  93. Purchase ||- -|{ Supplier
  94. Purchase ||- -|{ User
  95. Sales ||- -|{ Product
  96. Sales ||- -|{ Customer
  97. Sales ||- -|{ User
  98. StockProduct ||- -|| Product
  99. @end
  100. PlantUML version 1.2022.0(Tue Jan 11 23:16:42 WIB 2022)
  101. (GPL source distribution)
  102. Java Runtime: OpenJDK Runtime Environment
  103. JVM: OpenJDK 64-Bit Server VM
  104. Default Encoding: UTF-8
  105. Language: en
  106. Country: US
  107. --></g></svg>