eolas/neuron/7aecb0c4-f9f9-4579-9564-8a4cb5e9c958/static/mongoose-hierarchy.svg
2025-03-14 17:01:58 +00:00

4 lines
No EOL
11 KiB
XML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="UTF-8"?>
<!-- Do not edit this file with editors other than diagrams.net -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="661px" height="671px" viewBox="-0.5 -0.5 661 671" content="&lt;mxfile host=&quot;app.diagrams.net&quot; modified=&quot;2022-08-11T06:43:30.258Z&quot; agent=&quot;5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.81 Safari/537.36&quot; etag=&quot;phjnRJ2EPBxfRiE3iPnx&quot; version=&quot;20.2.3&quot; type=&quot;device&quot;&gt;&lt;diagram id=&quot;C5RBs43oDa-KdzZeNtuy&quot; name=&quot;Page-1&quot;&gt;5VnbUtswEP0aD+1DOr4kDnkkSYFeoDChZNqXjhIrtqgsGUkmSb++ki3fnRJoDVMIzMQ+ktbS2bOrlWM4k3BzwkAUnFEPYsM2vY3hTA3btvq2bah/09umyKGpAZ8hT3cqgBn6BTVoajRGHuSVjoJSLFBUBZeUELgUFQwwRtfVbiuKq0+NgA8bwGwJcBOdI08EehX2sMBPIfKD7MmWO0pbQpB11ivhAfDougQ57w1nwigV6VW4mUCsyMt4mX/YzvHnn+7Jx0t+C76OP12dX/dSY8cPGZIvgUEiHm2a9Xof1vbn+OaTzzcz4H+Zfj/r2U5q+w7gWBOmFyu2GYOMxsSDyoppOON1gAScRWCpWtdSMxILRIjlnSUv95yqXtIdZAJuSo7SUz+BNISCbWUX3epoJ6wLH7quxoKS/9yhBoHWjZ+bKriRF5qeB1BlNpiaLQMYgr/ja0WJmOmxyT3CeEIxZYktZzVQf7pfCU8/EueC0Z+w1OImnw49MdJE6HxgDZuesdo80+/KMXtIWIZupC45Ij6GRyqtSIY8xGTGQZSoFhqr2T+XvK1+ldU8fZb13kKq1Rmr/Qarem9wQahIIQse5YS8WvU7g+dW/+AFqt8ZPbf63QarXxY3qjyR4wgXgEiGXrfyBy078tMq37IaTtqxI/M1CjEg8L/gOU8p25rIS0S3R4PdGdNtW6yLheZNleWpziV6G6t6eDyhMUOQyaZzuC5geeWrb1ntczUugoxTkrnNTEyYRI0wsycsWDaoufeYdSikxKeUw3epyTfGcNxqJ0F4BEhFKNksk9jt8TR4j9Q0GUzH1ZYhv6UkRiWbkt/UbNqBgFCbmAkm069hT551PslhSVk4j8OFcs8jODaG07cl86kCstG1yJOaF9XEBzDy1ZaD4Uq1qLhA8rR2pOEQeZ4aPGaQo19gkRhS+TSiiIhE2IOxMZgqS7GgPD1vWo1IJbQR7hpqxu2fs8v+u1ithDtshq3ZErajzqK2uYnpEu4lpUcnO8nflx6743nYVXa8SLJjnhfz5BbqSrwWu28KS9nIwvKklm1fQwi7DxWXXddWU1rOk5Y4hzvr0JcUw/3RoEn0sK3EsTpjevSvg3j3Pl8gWaCLgIZySdUCKI3hnSXMfdt0UXocXGXmx4gHNDrYVYXcZzKvHpx+y/jXURYcPlTstZzSa5G63ZXU5z9u2OryGl5f3oYX9vjbyZzRlheZmdsCK/PYmd5qZD8PCFWaB1LqgC2DbcnHRf89PLyvI1SZqyplZzoo7q6o1N+0Z+86WVPpjxVO3s4HUiqQKKlUzuNKj8cgRFj54RTiO6gElk+94c99896+5+WWU5w1avH7I95fy9viV4ikrfRbjvP+Nw==&lt;/diagram&gt;&lt;/mxfile&gt;" style="background-color: rgb(255, 255, 255);"><defs/><g><rect x="0" y="0" width="660" height="670" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/><rect x="60" y="170" width="160" height="40" fill="#f5f5f5" stroke="#666666" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 158px; height: 1px; padding-top: 190px; margin-left: 61px;"><div data-drawio-colors="color: #333333; " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(51, 51, 51); line-height: 1.2; pointer-events: all; font-weight: bold; white-space: normal; overflow-wrap: normal;">Schema</div></div></div></foreignObject><text x="140" y="194" fill="#333333" font-family="Helvetica" font-size="12px" text-anchor="middle" font-weight="bold">Schema</text></switch></g><path d="M 70 271 L 182 271 L 182 250 L 210 280 L 182 310 L 182 289 L 70 289 Z" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" transform="rotate(90,140,280)" pointer-events="all"/><rect x="60" y="350" width="160" height="40" fill="#f5f5f5" stroke="#666666" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 158px; height: 1px; padding-top: 370px; margin-left: 61px;"><div data-drawio-colors="color: #333333; " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(51, 51, 51); line-height: 1.2; pointer-events: all; font-weight: bold; white-space: normal; overflow-wrap: normal;">Model </div></div></div></foreignObject><text x="140" y="374" fill="#333333" font-family="Helvetica" font-size="12px" text-anchor="middle" font-weight="bold">Model </text></switch></g><path d="M 70 451 L 182 451 L 182 430 L 210 460 L 182 490 L 182 469 L 70 469 Z" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" transform="rotate(90,140,460)" pointer-events="all"/><rect x="60" y="530" width="160" height="40" fill="#f5f5f5" stroke="#666666" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 158px; height: 1px; padding-top: 550px; margin-left: 61px;"><div data-drawio-colors="color: #333333; " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(51, 51, 51); line-height: 1.2; pointer-events: all; font-weight: bold; white-space: normal; overflow-wrap: normal;">Object instance</div></div></div></foreignObject><text x="140" y="554" fill="#333333" font-family="Helvetica" font-size="12px" text-anchor="middle" font-weight="bold">Object instance</text></switch></g><path d="M 320 163 L 320 140 L 580 140 L 580 163" fill="#f5f5f5" stroke="#666666" stroke-miterlimit="10" pointer-events="all"/><path d="M 320 163 L 320 260 L 580 260 L 580 163" fill="none" stroke="#666666" stroke-miterlimit="10" pointer-events="none"/><path d="M 320 163 L 580 163" fill="none" stroke="#666666" stroke-miterlimit="10" pointer-events="none"/><g fill="#333333" font-family="Helvetica" font-weight="bold" pointer-events="none" text-anchor="middle" font-size="12px"><text x="449.5" y="156">Schema</text></g><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe flex-start; width: 1px; height: 1px; padding-top: 213px; margin-left: 332px;"><div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: left;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: none; white-space: nowrap;"><font face="Courier New">const personSchema = new <br />   mongoose.Schema({<br /><span style="white-space: pre;"> </span>name: String,<br /><span style="white-space: pre;"> </span>age: Number<br />   })</font></div></div></div></foreignObject><text x="332" y="217" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px">const personSchema = new...</text></switch></g><path d="M 320 350 L 320 327 L 580 327 L 580 350" fill="#f5f5f5" stroke="#666666" stroke-miterlimit="10" pointer-events="none"/><path d="M 320 350 L 320 417 L 580 417 L 580 350" fill="none" stroke="#666666" stroke-miterlimit="10" pointer-events="none"/><path d="M 320 350 L 580 350" fill="none" stroke="#666666" stroke-miterlimit="10" pointer-events="none"/><g fill="#333333" font-family="Helvetica" font-weight="bold" pointer-events="none" text-anchor="middle" font-size="12px"><text x="449.5" y="343">Model</text></g><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe flex-start; width: 1px; height: 1px; padding-top: 379px; margin-left: 342px;"><div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: left;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: none; white-space: nowrap;"><font face="Courier New">const Person = mongoose.model<br />("Person", personSchema)</font></div></div></div></foreignObject><text x="342" y="383" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px">const Person = mongoose.model...</text></switch></g><path d="M 320 518 L 320 495 L 590 495 L 590 518" fill="#f5f5f5" stroke="#666666" stroke-miterlimit="10" pointer-events="none"/><path d="M 320 518 L 320 605 L 590 605 L 590 518" fill="none" stroke="#666666" stroke-miterlimit="10" pointer-events="none"/><path d="M 320 518 L 590 518" fill="none" stroke="#666666" stroke-miterlimit="10" pointer-events="none"/><g fill="#333333" font-family="Helvetica" font-weight="bold" pointer-events="none" text-anchor="middle" font-size="12px"><text x="454.5" y="511">Object</text></g><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe flex-start; width: 1px; height: 1px; padding-top: 545px; margin-left: 342px;"><div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: left;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: none; white-space: nowrap;"><font face="Courier New"><br /><br />const thomas = new Person({<br />   name: 'Thomas Bishop',<br />   age: 34<br />})</font></div></div></div></foreignObject><text x="342" y="549" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px">const thomas = new Person({...</text></switch></g><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe flex-start; justify-content: unsafe flex-start; width: 182px; height: 1px; padding-top: 30px; margin-left: 65px;"><div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: left; max-height: 80px; overflow: hidden;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: none; white-space: normal; overflow-wrap: normal;"><h1>Mongoose data hierarchy</h1></div></div></div></foreignObject><text x="65" y="42" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px">Mongoose data hierarchy</text></switch></g></g><switch><g requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"/><a transform="translate(0,-5)" xlink:href="https://www.diagrams.net/doc/faq/svg-export-text-problems" target="_blank"><text text-anchor="middle" font-size="10px" x="50%" y="100%">Text is not SVG - cannot display</text></a></switch></svg>