Update Database files

master
tomivt 2 months ago
parent 88e634e7b4
commit f4d7b42e74

@ -1,6 +1,6 @@
<mxfile host="Electron" agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/24.7.8 Chrome/128.0.6613.36 Electron/32.0.1 Safari/537.36" version="24.7.8">
<diagram name="Page-1" id="OoBCglcKqwl-TtQj7CSv">
<mxGraphModel dx="1064" dy="1154" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="0" pageScale="1" pageWidth="827" pageHeight="1169" background="none" math="0" shadow="1">
<mxGraphModel dx="1166" dy="1226" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="0" pageScale="1" pageWidth="827" pageHeight="1169" background="none" math="0" shadow="1">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
@ -183,7 +183,7 @@
</mxCell>
<mxCell id="VI4nCDsc_e3in7OQpdaY-48" value="1,n" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];fontSize=12;" parent="VI4nCDsc_e3in7OQpdaY-31" vertex="1" connectable="0">
<mxGeometry x="0.5412" y="1" relative="1" as="geometry">
<mxPoint x="-1" y="7" as="offset" />
<mxPoint x="-1" y="-1" as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="VI4nCDsc_e3in7OQpdaY-32" value="1,n" style="endArrow=none;html=1;rounded=0;fontSize=12;startSize=8;endSize=8;curved=1;exitX=0.498;exitY=1.012;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;exitPerimeter=0;" parent="1" source="OU_k73MHC4uVD-IdeJfG-72" target="VI4nCDsc_e3in7OQpdaY-16" edge="1">
@ -252,7 +252,7 @@
</mxCell>
<mxCell id="cGXYYSIACPYtkmamVDq_-15" value="0,n" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];fontSize=12;" parent="cGXYYSIACPYtkmamVDq_-14" vertex="1" connectable="0">
<mxGeometry x="0.0926" y="1" relative="1" as="geometry">
<mxPoint x="-151" y="-10" as="offset" />
<mxPoint x="-161" as="offset" />
</mxGeometry>
</mxCell>
</root>

@ -1,6 +1,6 @@
<mxfile host="Electron" agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/24.7.8 Chrome/128.0.6613.36 Electron/32.0.1 Safari/537.36" version="24.7.8">
<diagram name="Page-1" id="OoBCglcKqwl-TtQj7CSv">
<mxGraphModel dx="1020" dy="747" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="0" pageScale="1" pageWidth="827" pageHeight="1169" background="none" math="0" shadow="1">
<mxGraphModel dx="1288" dy="1313" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="0" pageScale="1" pageWidth="827" pageHeight="1169" background="none" math="0" shadow="1">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
@ -52,18 +52,20 @@
<mxCell id="OU_k73MHC4uVD-IdeJfG-87" value="&lt;blockquote style=&quot;margin: 0 0 0 40px; border: none; padding: 0px;&quot;&gt;release&lt;/blockquote&gt;" style="text;strokeColor=none;fillColor=#FFFFFF;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;" parent="OU_k73MHC4uVD-IdeJfG-83" vertex="1">
<mxGeometry y="120" width="160" height="30" as="geometry" />
</mxCell>
<mxCell id="oSId802Q4cpZhMYFtj2R-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0;exitY=0.75;exitDx=0;exitDy=0;entryX=1.002;entryY=0.576;entryDx=0;entryDy=0;entryPerimeter=0;" parent="1" source="OU_k73MHC4uVD-IdeJfG-90" target="OU_k73MHC4uVD-IdeJfG-99" edge="1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="330" y="387.51724137931035" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="OU_k73MHC4uVD-IdeJfG-90" value="&lt;b&gt;Favorite&lt;/b&gt;" style="swimlane;fontStyle=0;childLayout=stackLayout;horizontal=1;startSize=30;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;whiteSpace=wrap;html=1;fillStyle=solid;fillColor=#FF0000;strokeColor=#000000;fontColor=#ffffff;glass=0;labelBackgroundColor=none;labelBorderColor=none;textShadow=0;" parent="1" vertex="1">
<mxGeometry x="400" y="320" width="160" height="120" as="geometry" />
<mxGeometry x="400" y="320" width="160" height="90" as="geometry" />
</mxCell>
<mxCell id="OU_k73MHC4uVD-IdeJfG-91" value="&lt;blockquote style=&quot;margin: 0 0 0 40px; border: none; padding: 0px;&quot;&gt;&lt;u&gt;id-fav&lt;/u&gt;&lt;/blockquote&gt;" style="text;strokeColor=none;fillColor=#FFFFFF;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;" parent="OU_k73MHC4uVD-IdeJfG-90" vertex="1">
<mxCell id="g1V96oDAX-57ZKNq1zwm-2" value="&lt;blockquote style=&quot;margin: 0 0 0 40px; border: none; padding: 0px;&quot;&gt;# user&lt;br&gt;&lt;/blockquote&gt;" style="text;strokeColor=none;fillColor=#FFFFFF;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;fontStyle=4" parent="OU_k73MHC4uVD-IdeJfG-90" vertex="1">
<mxGeometry y="30" width="160" height="30" as="geometry" />
</mxCell>
<mxCell id="g1V96oDAX-57ZKNq1zwm-2" value="&lt;blockquote style=&quot;margin: 0 0 0 40px; border: none; padding: 0px;&quot;&gt;# user&lt;br&gt;&lt;/blockquote&gt;" style="text;strokeColor=none;fillColor=#FFFFFF;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;" parent="OU_k73MHC4uVD-IdeJfG-90" vertex="1">
<mxCell id="g1V96oDAX-57ZKNq1zwm-3" value="&lt;blockquote style=&quot;margin: 0 0 0 40px; border: none; padding: 0px;&quot;&gt;# quote&lt;br&gt;&lt;/blockquote&gt;" style="text;strokeColor=none;fillColor=#FFFFFF;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;fontStyle=4" parent="OU_k73MHC4uVD-IdeJfG-90" vertex="1">
<mxGeometry y="60" width="160" height="30" as="geometry" />
</mxCell>
<mxCell id="g1V96oDAX-57ZKNq1zwm-3" value="&lt;blockquote style=&quot;margin: 0 0 0 40px; border: none; padding: 0px;&quot;&gt;# quote&lt;br&gt;&lt;/blockquote&gt;" style="text;strokeColor=none;fillColor=#FFFFFF;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;" parent="OU_k73MHC4uVD-IdeJfG-90" vertex="1">
<mxGeometry y="90" width="160" height="30" as="geometry" />
</mxCell>
<mxCell id="g1V96oDAX-57ZKNq1zwm-16" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;" parent="1" source="OU_k73MHC4uVD-IdeJfG-97" target="OU_k73MHC4uVD-IdeJfG-13" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
@ -150,10 +152,10 @@
<mxCell id="g1V96oDAX-57ZKNq1zwm-8" value="&lt;b&gt;Quiz-Questons&lt;/b&gt;" style="swimlane;fontStyle=0;childLayout=stackLayout;horizontal=1;startSize=30;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;whiteSpace=wrap;html=1;fillStyle=solid;fillColor=#FF0000;strokeColor=#000000;fontColor=#ffffff;glass=0;labelBackgroundColor=none;labelBorderColor=none;textShadow=0;" parent="1" vertex="1">
<mxGeometry x="640" y="200" width="160" height="90" as="geometry" />
</mxCell>
<mxCell id="g1V96oDAX-57ZKNq1zwm-1" value="&lt;blockquote style=&quot;margin: 0 0 0 40px; border: none; padding: 0px;&quot;&gt;# quiz&lt;br&gt;&lt;/blockquote&gt;" style="text;strokeColor=none;fillColor=#FFFFFF;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;" parent="g1V96oDAX-57ZKNq1zwm-8" vertex="1">
<mxCell id="g1V96oDAX-57ZKNq1zwm-1" value="&lt;blockquote style=&quot;margin: 0 0 0 40px; border: none; padding: 0px;&quot;&gt;&lt;u&gt;# quiz&lt;/u&gt;&lt;br&gt;&lt;/blockquote&gt;" style="text;strokeColor=none;fillColor=#FFFFFF;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;" parent="g1V96oDAX-57ZKNq1zwm-8" vertex="1">
<mxGeometry y="30" width="160" height="30" as="geometry" />
</mxCell>
<mxCell id="g1V96oDAX-57ZKNq1zwm-12" value="&lt;blockquote style=&quot;margin: 0 0 0 40px; border: none; padding: 0px;&quot;&gt;# question&lt;br&gt;&lt;/blockquote&gt;" style="text;strokeColor=none;fillColor=#FFFFFF;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;" parent="g1V96oDAX-57ZKNq1zwm-8" vertex="1">
<mxCell id="g1V96oDAX-57ZKNq1zwm-12" value="&lt;blockquote style=&quot;margin: 0 0 0 40px; border: none; padding: 0px;&quot;&gt;&lt;u&gt;# question&lt;/u&gt;&lt;br&gt;&lt;/blockquote&gt;" style="text;strokeColor=none;fillColor=#FFFFFF;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;" parent="g1V96oDAX-57ZKNq1zwm-8" vertex="1">
<mxGeometry y="60" width="160" height="30" as="geometry" />
</mxCell>
<mxCell id="g1V96oDAX-57ZKNq1zwm-20" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" parent="1" source="OU_k73MHC4uVD-IdeJfG-105" target="OU_k73MHC4uVD-IdeJfG-85" edge="1">
@ -174,8 +176,38 @@
<mxCell id="g1V96oDAX-57ZKNq1zwm-26" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;" parent="1" source="OU_k73MHC4uVD-IdeJfG-121" target="OU_k73MHC4uVD-IdeJfG-15" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="g1V96oDAX-57ZKNq1zwm-30" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=0.996;entryY=0.84;entryDx=0;entryDy=0;entryPerimeter=0;" parent="1" source="g1V96oDAX-57ZKNq1zwm-2" target="OU_k73MHC4uVD-IdeJfG-99" edge="1">
<mxGeometry relative="1" as="geometry" />
<mxCell id="2J1Ivhrnz8hqxHsf9ftx-1" value="&lt;b&gt;Results&lt;/b&gt;" style="swimlane;fontStyle=0;childLayout=stackLayout;horizontal=1;startSize=30;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;whiteSpace=wrap;html=1;fillStyle=solid;fillColor=#FF0000;strokeColor=#000000;fontColor=#ffffff;glass=0;labelBackgroundColor=none;labelBorderColor=none;textShadow=0;" vertex="1" parent="1">
<mxGeometry x="400" y="-200" width="160" height="150" as="geometry" />
</mxCell>
<mxCell id="2J1Ivhrnz8hqxHsf9ftx-2" value="&lt;blockquote style=&quot;margin: 0 0 0 40px; border: none; padding: 0px;&quot;&gt;&lt;u&gt;# user&lt;/u&gt;&lt;/blockquote&gt;" style="text;strokeColor=none;fillColor=#FFFFFF;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;" vertex="1" parent="2J1Ivhrnz8hqxHsf9ftx-1">
<mxGeometry y="30" width="160" height="30" as="geometry" />
</mxCell>
<mxCell id="2J1Ivhrnz8hqxHsf9ftx-3" value="&lt;blockquote style=&quot;margin: 0 0 0 40px; border: none; padding: 0px;&quot;&gt;&lt;u&gt;# quiz&lt;/u&gt;&lt;/blockquote&gt;" style="text;strokeColor=none;fillColor=#FFFFFF;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;" vertex="1" parent="2J1Ivhrnz8hqxHsf9ftx-1">
<mxGeometry y="60" width="160" height="30" as="geometry" />
</mxCell>
<mxCell id="2J1Ivhrnz8hqxHsf9ftx-4" value="&lt;blockquote style=&quot;margin: 0 0 0 40px; border: none; padding: 0px;&quot;&gt;score&lt;/blockquote&gt;" style="text;strokeColor=none;fillColor=#FFFFFF;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;" vertex="1" parent="2J1Ivhrnz8hqxHsf9ftx-1">
<mxGeometry y="90" width="160" height="30" as="geometry" />
</mxCell>
<mxCell id="2J1Ivhrnz8hqxHsf9ftx-5" value="&lt;blockquote style=&quot;margin: 0 0 0 40px; border: none; padding: 0px;&quot;&gt;p-played&lt;/blockquote&gt;" style="text;strokeColor=none;fillColor=#FFFFFF;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;" vertex="1" parent="2J1Ivhrnz8hqxHsf9ftx-1">
<mxGeometry y="120" width="160" height="30" as="geometry" />
</mxCell>
<mxCell id="2J1Ivhrnz8hqxHsf9ftx-6" value="" style="endArrow=classic;html=1;rounded=0;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="2J1Ivhrnz8hqxHsf9ftx-3" target="OU_k73MHC4uVD-IdeJfG-13">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="510" y="80" as="sourcePoint" />
<mxPoint x="560" y="30" as="targetPoint" />
<Array as="points">
<mxPoint x="240" y="-125" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="2J1Ivhrnz8hqxHsf9ftx-7" value="" style="endArrow=classic;html=1;rounded=0;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="2J1Ivhrnz8hqxHsf9ftx-3" target="OU_k73MHC4uVD-IdeJfG-69">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="750" y="-155" as="sourcePoint" />
<mxPoint x="590" as="targetPoint" />
<Array as="points">
<mxPoint x="720" y="-125" />
</Array>
</mxGeometry>
</mxCell>
</root>
</mxGraphModel>

@ -60,5 +60,5 @@ finally:
if co is not None:
print("Déconnexion de la base : dbsae2_04\n")
print("Déconnexion de la base : dbsae2_04")
co.close()

@ -1,11 +1,11 @@
<mxfile host="Electron" agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/24.7.8 Chrome/128.0.6613.36 Electron/32.0.1 Safari/537.36" version="24.7.8">
<diagram name="Page-1" id="OoBCglcKqwl-TtQj7CSv">
<mxGraphModel dx="1166" dy="1226" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="0" pageScale="1" pageWidth="827" pageHeight="1169" background="none" math="0" shadow="1">
<mxGraphModel dx="628" dy="845" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="0" pageScale="1" pageWidth="827" pageHeight="1169" background="none" math="0" shadow="1">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<mxCell id="OU_k73MHC4uVD-IdeJfG-13" value="&lt;b&gt;User&lt;/b&gt;" style="swimlane;fontStyle=0;childLayout=stackLayout;horizontal=1;startSize=30;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;whiteSpace=wrap;html=1;fillStyle=solid;fillColor=#1ba1e2;strokeColor=#000000;fontColor=#ffffff;glass=0;labelBackgroundColor=none;labelBorderColor=none;textShadow=0;" parent="1" vertex="1">
<mxGeometry x="160" y="-40" width="160" height="210" as="geometry" />
<mxGeometry x="160" y="-40" width="160" height="240" as="geometry" />
</mxCell>
<mxCell id="OU_k73MHC4uVD-IdeJfG-14" value="&lt;blockquote style=&quot;margin: 0 0 0 40px; border: none; padding: 0px;&quot;&gt;&lt;u&gt;id-user&lt;/u&gt;&lt;/blockquote&gt;" style="text;strokeColor=none;fillColor=#FFFF99;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;" parent="OU_k73MHC4uVD-IdeJfG-13" vertex="1">
<mxGeometry y="30" width="160" height="30" as="geometry" />
@ -22,9 +22,12 @@
<mxCell id="OU_k73MHC4uVD-IdeJfG-25" value="&lt;blockquote style=&quot;margin: 0 0 0 40px; border: none; padding: 0px;&quot;&gt;password&lt;/blockquote&gt;" style="text;strokeColor=none;fillColor=#FFFF99;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;" parent="OU_k73MHC4uVD-IdeJfG-13" vertex="1">
<mxGeometry y="150" width="160" height="30" as="geometry" />
</mxCell>
<mxCell id="OU_k73MHC4uVD-IdeJfG-26" value="&lt;blockquote style=&quot;margin: 0 0 0 40px; border: none; padding: 0px;&quot;&gt;creation&lt;/blockquote&gt;" style="text;strokeColor=none;fillColor=#FFFF99;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;" parent="OU_k73MHC4uVD-IdeJfG-13" vertex="1">
<mxCell id="OU_k73MHC4uVD-IdeJfG-26" value="&lt;blockquote style=&quot;margin: 0 0 0 40px; border: none; padding: 0px;&quot;&gt;date_creation&lt;/blockquote&gt;" style="text;strokeColor=none;fillColor=#FFFF99;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;" parent="OU_k73MHC4uVD-IdeJfG-13" vertex="1">
<mxGeometry y="180" width="160" height="30" as="geometry" />
</mxCell>
<mxCell id="Cga9MEB599aSb9GVFwbl-1" value="&lt;blockquote style=&quot;margin: 0 0 0 40px; border: none; padding: 0px;&quot;&gt;is_admin&lt;/blockquote&gt;" style="text;strokeColor=none;fillColor=#FFFF99;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;" vertex="1" parent="OU_k73MHC4uVD-IdeJfG-13">
<mxGeometry y="210" width="160" height="30" as="geometry" />
</mxCell>
<mxCell id="OU_k73MHC4uVD-IdeJfG-69" value="&lt;b&gt;Quiz&lt;/b&gt;" style="swimlane;fontStyle=0;childLayout=stackLayout;horizontal=1;startSize=30;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;whiteSpace=wrap;html=1;fillStyle=solid;fillColor=#1ba1e2;strokeColor=#000000;fontColor=#ffffff;glass=0;labelBackgroundColor=none;labelBorderColor=none;textShadow=0;" parent="1" vertex="1">
<mxGeometry x="760" y="-40" width="160" height="120" as="geometry" />
</mxCell>
@ -136,15 +139,15 @@
<mxPoint x="370" y="50" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="VI4nCDsc_e3in7OQpdaY-23" value="" style="endArrow=none;html=1;rounded=0;fontSize=12;startSize=8;endSize=8;curved=1;entryX=0.5;entryY=0;entryDx=0;entryDy=0;exitX=0.505;exitY=1.04;exitDx=0;exitDy=0;exitPerimeter=0;" parent="1" source="OU_k73MHC4uVD-IdeJfG-26" target="VI4nCDsc_e3in7OQpdaY-13" edge="1">
<mxCell id="VI4nCDsc_e3in7OQpdaY-23" value="" style="endArrow=none;html=1;rounded=0;fontSize=12;startSize=8;endSize=8;curved=1;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" parent="1" target="VI4nCDsc_e3in7OQpdaY-13" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="240" y="190" as="sourcePoint" />
<mxPoint x="240" y="200" as="sourcePoint" />
<mxPoint x="280" y="192" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="VI4nCDsc_e3in7OQpdaY-45" value="0,n" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];fontSize=12;" parent="VI4nCDsc_e3in7OQpdaY-23" vertex="1" connectable="0">
<mxGeometry x="0.0926" y="1" relative="1" as="geometry">
<mxPoint x="-1" y="-19" as="offset" />
<mxPoint x="-1" y="-2" as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="VI4nCDsc_e3in7OQpdaY-24" value="" style="endArrow=none;html=1;rounded=0;fontSize=12;startSize=8;endSize=8;curved=1;entryX=0.5;entryY=0;entryDx=0;entryDy=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" parent="1" source="VI4nCDsc_e3in7OQpdaY-13" target="OU_k73MHC4uVD-IdeJfG-97" edge="1">
@ -255,6 +258,43 @@
<mxPoint x="-161" as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="Cga9MEB599aSb9GVFwbl-12" value="To have informations&lt;div style=&quot;&quot;&gt;&lt;br&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;score&lt;/div&gt;&lt;div&gt;parties-played&lt;/div&gt;&lt;/div&gt;" style="ellipse;whiteSpace=wrap;html=1;fillColor=#E6E6E6;" vertex="1" parent="1">
<mxGeometry x="515" y="-240" width="170" height="120" as="geometry" />
</mxCell>
<mxCell id="Cga9MEB599aSb9GVFwbl-14" value="" style="endArrow=none;html=1;rounded=0;fontSize=12;startSize=8;endSize=8;curved=1;exitX=0;exitY=0.5;exitDx=0;exitDy=0;" edge="1" parent="1" source="Cga9MEB599aSb9GVFwbl-12">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="340" y="-245" as="sourcePoint" />
<mxPoint x="240" y="-40" as="targetPoint" />
<Array as="points">
<mxPoint x="240" y="-180" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="Cga9MEB599aSb9GVFwbl-15" value="0,n" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" vertex="1" connectable="0" parent="Cga9MEB599aSb9GVFwbl-14">
<mxGeometry x="-0.8414" y="4" relative="1" as="geometry">
<mxPoint x="-242" y="116" as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="Cga9MEB599aSb9GVFwbl-18" value="" style="endArrow=none;html=1;rounded=0;fontSize=12;startSize=8;endSize=8;curved=1;entryX=1;entryY=0.5;entryDx=0;entryDy=0;exitX=0.5;exitY=0;exitDx=0;exitDy=0;" edge="1" parent="1" source="OU_k73MHC4uVD-IdeJfG-69" target="Cga9MEB599aSb9GVFwbl-12">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="1000" y="-50" as="sourcePoint" />
<mxPoint x="720" y="-165" as="targetPoint" />
<Array as="points">
<mxPoint x="840" y="-170" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="Cga9MEB599aSb9GVFwbl-19" value="0,n" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];fontSize=12;" vertex="1" connectable="0" parent="Cga9MEB599aSb9GVFwbl-18">
<mxGeometry x="0.0926" y="1" relative="1" as="geometry">
<mxPoint x="26" y="101" as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="Cga9MEB599aSb9GVFwbl-25" value="" style="endArrow=none;html=1;rounded=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;exitX=0;exitY=0.5;exitDx=0;exitDy=0;" edge="1" parent="1" source="Cga9MEB599aSb9GVFwbl-12" target="Cga9MEB599aSb9GVFwbl-12">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="570" y="-150" as="sourcePoint" />
<mxPoint x="620" y="-200" as="targetPoint" />
</mxGeometry>
</mxCell>
</root>
</mxGraphModel>
</diagram>

@ -1,11 +1,11 @@
<mxfile host="Electron" agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/24.7.8 Chrome/128.0.6613.36 Electron/32.0.1 Safari/537.36" version="24.7.8">
<diagram name="Page-1" id="OoBCglcKqwl-TtQj7CSv">
<mxGraphModel dx="1113" dy="788" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="0" pageScale="1" pageWidth="827" pageHeight="1169" background="none" math="0" shadow="1">
<mxGraphModel dx="1530" dy="1484" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="0" pageScale="1" pageWidth="827" pageHeight="1169" background="none" math="0" shadow="1">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<mxCell id="OU_k73MHC4uVD-IdeJfG-13" value="&lt;b&gt;User&lt;/b&gt;" style="swimlane;fontStyle=0;childLayout=stackLayout;horizontal=1;startSize=30;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;whiteSpace=wrap;html=1;fillStyle=solid;fillColor=#FF0000;strokeColor=#000000;fontColor=#ffffff;glass=0;labelBackgroundColor=none;labelBorderColor=none;textShadow=0;" parent="1" vertex="1">
<mxGeometry x="160" width="160" height="210" as="geometry" />
<mxGeometry x="160" width="160" height="240" as="geometry" />
</mxCell>
<mxCell id="OU_k73MHC4uVD-IdeJfG-14" value="&lt;blockquote style=&quot;margin: 0 0 0 40px; border: none; padding: 0px;&quot;&gt;&lt;u&gt;id-user&lt;/u&gt;&lt;/blockquote&gt;" style="text;strokeColor=none;fillColor=#FFFFFF;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;" parent="OU_k73MHC4uVD-IdeJfG-13" vertex="1">
<mxGeometry y="30" width="160" height="30" as="geometry" />
@ -25,6 +25,9 @@
<mxCell id="OU_k73MHC4uVD-IdeJfG-26" value="&lt;blockquote style=&quot;margin: 0 0 0 40px; border: none; padding: 0px;&quot;&gt;creation&lt;/blockquote&gt;" style="text;strokeColor=none;fillColor=#FFFFFF;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;" parent="OU_k73MHC4uVD-IdeJfG-13" vertex="1">
<mxGeometry y="180" width="160" height="30" as="geometry" />
</mxCell>
<mxCell id="8dkuQ1sLrlsPbUEx-O---1" value="&lt;blockquote style=&quot;margin: 0 0 0 40px; border: none; padding: 0px;&quot;&gt;is-admin&lt;/blockquote&gt;" style="text;strokeColor=none;fillColor=#FFFFFF;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;" vertex="1" parent="OU_k73MHC4uVD-IdeJfG-13">
<mxGeometry y="210" width="160" height="30" as="geometry" />
</mxCell>
<mxCell id="OU_k73MHC4uVD-IdeJfG-69" value="&lt;b&gt;Quiz&lt;/b&gt;" style="swimlane;fontStyle=0;childLayout=stackLayout;horizontal=1;startSize=30;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;whiteSpace=wrap;html=1;fillStyle=solid;fillColor=#FF0000;strokeColor=#000000;fontColor=#ffffff;glass=0;labelBackgroundColor=none;labelBorderColor=none;textShadow=0;" parent="1" vertex="1">
<mxGeometry x="640" width="160" height="120" as="geometry" />
</mxCell>
@ -52,7 +55,7 @@
<mxCell id="OU_k73MHC4uVD-IdeJfG-87" value="&lt;blockquote style=&quot;margin: 0 0 0 40px; border: none; padding: 0px;&quot;&gt;release&lt;/blockquote&gt;" style="text;strokeColor=none;fillColor=#FFFFFF;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;" parent="OU_k73MHC4uVD-IdeJfG-83" vertex="1">
<mxGeometry y="120" width="160" height="30" as="geometry" />
</mxCell>
<mxCell id="oSId802Q4cpZhMYFtj2R-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0;exitY=0.75;exitDx=0;exitDy=0;entryX=1.002;entryY=0.576;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="1" source="OU_k73MHC4uVD-IdeJfG-90" target="OU_k73MHC4uVD-IdeJfG-99">
<mxCell id="oSId802Q4cpZhMYFtj2R-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0;exitY=0.75;exitDx=0;exitDy=0;entryX=1.002;entryY=0.576;entryDx=0;entryDy=0;entryPerimeter=0;" parent="1" source="OU_k73MHC4uVD-IdeJfG-90" target="OU_k73MHC4uVD-IdeJfG-99" edge="1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="330" y="387.51724137931035" as="targetPoint" />
</mxGeometry>
@ -168,14 +171,47 @@
<mxGeometry relative="1" as="geometry">
<mxPoint x="280" y="309" as="targetPoint" />
<Array as="points">
<mxPoint x="440" y="240" />
<mxPoint x="280" y="240" />
<mxPoint x="440" y="280" />
<mxPoint x="280" y="280" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="g1V96oDAX-57ZKNq1zwm-26" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;" parent="1" source="OU_k73MHC4uVD-IdeJfG-121" target="OU_k73MHC4uVD-IdeJfG-15" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="2J1Ivhrnz8hqxHsf9ftx-1" value="&lt;b&gt;Results&lt;/b&gt;" style="swimlane;fontStyle=0;childLayout=stackLayout;horizontal=1;startSize=30;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;whiteSpace=wrap;html=1;fillStyle=solid;fillColor=#FF0000;strokeColor=#000000;fontColor=#ffffff;glass=0;labelBackgroundColor=none;labelBorderColor=none;textShadow=0;" parent="1" vertex="1">
<mxGeometry x="400" y="-200" width="160" height="150" as="geometry" />
</mxCell>
<mxCell id="2J1Ivhrnz8hqxHsf9ftx-2" value="&lt;blockquote style=&quot;margin: 0 0 0 40px; border: none; padding: 0px;&quot;&gt;&lt;u&gt;# user&lt;/u&gt;&lt;/blockquote&gt;" style="text;strokeColor=none;fillColor=#FFFFFF;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;" parent="2J1Ivhrnz8hqxHsf9ftx-1" vertex="1">
<mxGeometry y="30" width="160" height="30" as="geometry" />
</mxCell>
<mxCell id="2J1Ivhrnz8hqxHsf9ftx-3" value="&lt;blockquote style=&quot;margin: 0 0 0 40px; border: none; padding: 0px;&quot;&gt;&lt;u&gt;# quiz&lt;/u&gt;&lt;/blockquote&gt;" style="text;strokeColor=none;fillColor=#FFFFFF;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;" parent="2J1Ivhrnz8hqxHsf9ftx-1" vertex="1">
<mxGeometry y="60" width="160" height="30" as="geometry" />
</mxCell>
<mxCell id="2J1Ivhrnz8hqxHsf9ftx-4" value="&lt;blockquote style=&quot;margin: 0 0 0 40px; border: none; padding: 0px;&quot;&gt;score&lt;/blockquote&gt;" style="text;strokeColor=none;fillColor=#FFFFFF;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;" parent="2J1Ivhrnz8hqxHsf9ftx-1" vertex="1">
<mxGeometry y="90" width="160" height="30" as="geometry" />
</mxCell>
<mxCell id="2J1Ivhrnz8hqxHsf9ftx-5" value="&lt;blockquote style=&quot;margin: 0 0 0 40px; border: none; padding: 0px;&quot;&gt;p-played&lt;/blockquote&gt;" style="text;strokeColor=none;fillColor=#FFFFFF;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;" parent="2J1Ivhrnz8hqxHsf9ftx-1" vertex="1">
<mxGeometry y="120" width="160" height="30" as="geometry" />
</mxCell>
<mxCell id="2J1Ivhrnz8hqxHsf9ftx-6" value="" style="endArrow=classic;html=1;rounded=0;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" parent="1" source="2J1Ivhrnz8hqxHsf9ftx-3" target="OU_k73MHC4uVD-IdeJfG-13" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="510" y="80" as="sourcePoint" />
<mxPoint x="560" y="30" as="targetPoint" />
<Array as="points">
<mxPoint x="240" y="-125" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="2J1Ivhrnz8hqxHsf9ftx-7" value="" style="endArrow=classic;html=1;rounded=0;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" parent="1" source="2J1Ivhrnz8hqxHsf9ftx-3" target="OU_k73MHC4uVD-IdeJfG-69" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="750" y="-155" as="sourcePoint" />
<mxPoint x="590" as="targetPoint" />
<Array as="points">
<mxPoint x="720" y="-125" />
</Array>
</mxGeometry>
</mxCell>
</root>
</mxGraphModel>
</diagram>

@ -1,12 +1,12 @@
DROP TABLE IF EXISTS Users CASCADE;
DROP TABLE IF EXISTS Support CASCADE;
DROP TABLE IF EXISTS Quote CASCADE;
DROP TABLE IF EXISTS Commentary CASCADE;
DROP TABLE IF EXISTS Favorite CASCADE;
DROP TABLE IF EXISTS QuizQuestions CASCADE;
DROP TABLE IF EXISTS Quiz CASCADE;
DROP TABLE IF EXISTS Question CASCADE;
DROP TABLE IF EXISTS QuizQuestions CASCADE;
DROP TABLE IF EXISTS Results CASCADE;
CREATE TABLE Users (
id_user SERIAL PRIMARY KEY,
@ -15,6 +15,7 @@ CREATE TABLE Users (
phone varchar(10) NOT NULL,
pssword varchar(99) NOT NULL,
creation date NOT NULL,
is_admin boolean NOT NULL,
CONSTRAINT unique_col UNIQUE (username, email, phone)
);
@ -74,4 +75,12 @@ CREATE TABLE QuizQuestions (
quiz_qq numeric REFERENCES Quiz(id_quiz),
question_qq numeric REFERENCES Question(id_question),
CONSTRAINT pk_qq PRIMARY KEY (quiz_qq, question_qq)
);
);
CREATE TABLE Results (
score numeric NOT NULL,
p_played numeric NOT NULL,
user_r integer REFERENCES Users(id_user),
quiz_r integer REFERENCES Quiz(id_quiz),
CONSTRAINT pk_results PRIMARY KEY(user_r, quiz_r)
)
Loading…
Cancel
Save