removed internal_id as it is not needed

This commit is contained in:
leca 2023-11-04 14:06:17 +03:00
parent 16ae77f149
commit a83125559c
2 changed files with 3 additions and 17 deletions

View File

@ -1,4 +1,4 @@
<mxfile host="Electron" modified="2023-11-04T08:21:44.735Z" agent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/22.0.2 Chrome/114.0.5735.289 Electron/25.8.4 Safari/537.36" etag="bmlch-2aJHIhqnmcGaNf" version="22.0.2" type="device">
<mxfile host="Electron" modified="2023-11-04T11:05:33.193Z" agent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/22.0.2 Chrome/114.0.5735.289 Electron/25.8.4 Safari/537.36" etag="R4CyQJgL2GpBnUPwT5wI" version="22.0.2" type="device">
<diagram id="R2lEEEUBdFMjLlhIrx00" name="Page-1">
<mxGraphModel dx="1669" dy="479" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="0" extFonts="Permanent Marker^https://fonts.googleapis.com/css?family=Permanent+Marker">
<root>
@ -76,7 +76,7 @@
</mxGeometry>
</mxCell>
<mxCell id="IqcACfFecUyFIL0cjSVW-16" value="post" style="shape=table;startSize=30;container=1;collapsible=1;childLayout=tableLayout;fixedRows=1;rowLines=0;fontStyle=1;align=center;resizeLast=1;" parent="1" vertex="1">
<mxGeometry x="470" y="290" width="250" height="240" as="geometry" />
<mxGeometry x="470" y="290" width="250" height="210" as="geometry" />
</mxCell>
<mxCell id="IqcACfFecUyFIL0cjSVW-17" value="" style="shape=partialRectangle;collapsible=0;dropTarget=0;pointerEvents=0;fillColor=none;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;top=0;left=0;right=0;bottom=1;" parent="IqcACfFecUyFIL0cjSVW-16" vertex="1">
<mxGeometry y="30" width="250" height="30" as="geometry" />
@ -143,21 +143,8 @@
<mxRectangle width="220" height="30" as="alternateBounds" />
</mxGeometry>
</mxCell>
<mxCell id="IqcACfFecUyFIL0cjSVW-43" value="" style="shape=partialRectangle;collapsible=0;dropTarget=0;pointerEvents=0;fillColor=none;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;top=0;left=0;right=0;bottom=0;" parent="IqcACfFecUyFIL0cjSVW-16" vertex="1">
<mxGeometry y="180" width="250" height="30" as="geometry" />
</mxCell>
<mxCell id="IqcACfFecUyFIL0cjSVW-44" value="" style="shape=partialRectangle;overflow=hidden;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;" parent="IqcACfFecUyFIL0cjSVW-43" vertex="1">
<mxGeometry width="30" height="30" as="geometry">
<mxRectangle width="30" height="30" as="alternateBounds" />
</mxGeometry>
</mxCell>
<mxCell id="IqcACfFecUyFIL0cjSVW-45" value="internal_id int NOT NULL" style="shape=partialRectangle;overflow=hidden;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;align=left;spacingLeft=6;" parent="IqcACfFecUyFIL0cjSVW-43" vertex="1">
<mxGeometry x="30" width="220" height="30" as="geometry">
<mxRectangle width="220" height="30" as="alternateBounds" />
</mxGeometry>
</mxCell>
<mxCell id="IqcACfFecUyFIL0cjSVW-50" value="" style="shape=partialRectangle;collapsible=0;dropTarget=0;pointerEvents=0;fillColor=none;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;top=0;left=0;right=0;bottom=0;" parent="IqcACfFecUyFIL0cjSVW-16" vertex="1">
<mxGeometry y="210" width="250" height="30" as="geometry" />
<mxGeometry y="180" width="250" height="30" as="geometry" />
</mxCell>
<mxCell id="IqcACfFecUyFIL0cjSVW-51" value="" style="shape=partialRectangle;overflow=hidden;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;" parent="IqcACfFecUyFIL0cjSVW-50" vertex="1">
<mxGeometry width="30" height="30" as="geometry">

View File

@ -24,7 +24,6 @@ CREATE TABLE posts (
media_ids VARCHAR(22)[],
is_root BOOL NOT NULL,
date DATE NOT NULL,
internal_id INT NOT NULL, -- id of the post inside of the thread
user_ip CIDR NOT NULL
);