Skip to content

Commit

Permalink
update DDL for airaccount_chains
Browse files Browse the repository at this point in the history
  • Loading branch information
fanhousanbu committed Aug 31, 2024
1 parent bff5d2e commit 23f8795
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
12 changes: 6 additions & 6 deletions docs/passkey-er.drawio
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<mxfile host="65bd71144e">
<diagram id="psPoOP3-w1OvyfAoWb6h" name="第 1 页">
<mxGraphModel dx="1782" dy="827" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
<mxGraphModel dx="1925" dy="851" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
<root>
<mxCell id="0"/>
<mxCell id="1" parent="0"/>
<mxCell id="2" value="airaccounts" 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="100" y="100" width="180" height="200" as="geometry"/>
<mxGeometry x="110" y="355" width="180" height="200" as="geometry"/>
</mxCell>
<mxCell id="3" value="" style="shape=tableRow;horizontal=0;startSize=0;swimlaneHead=0;swimlaneBody=0;fillColor=none;collapsible=0;dropTarget=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;top=0;left=0;right=0;bottom=1;" parent="2" vertex="1">
<mxGeometry y="30" width="180" height="30" as="geometry"/>
Expand Down Expand Up @@ -87,7 +87,7 @@
</mxCell>
<mxCell id="39" style="edgeStyle=none;html=1;" parent="1" source="3" target="81" edge="1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="414" y="145" as="targetPoint"/>
<mxPoint x="424" y="400" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="40" value="1:N" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" parent="39" vertex="1" connectable="0">
Expand All @@ -96,7 +96,7 @@
</mxGeometry>
</mxCell>
<mxCell id="41" value="airaccount_chains" 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="-200" y="40" width="180" height="270" as="geometry"/>
<mxGeometry x="-190" y="295" width="180" height="270" as="geometry"/>
</mxCell>
<mxCell id="42" value="" style="shape=tableRow;horizontal=0;startSize=0;swimlaneHead=0;swimlaneBody=0;fillColor=none;collapsible=0;dropTarget=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;top=0;left=0;right=0;bottom=1;" parent="41" vertex="1">
<mxGeometry y="30" width="180" height="30" as="geometry"/>
Expand Down Expand Up @@ -184,7 +184,7 @@
<mxRectangle width="30" height="30" as="alternateBounds"/>
</mxGeometry>
</mxCell>
<mxCell id="104" value="chain" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;align=left;spacingLeft=6;overflow=hidden;" parent="102" vertex="1">
<mxCell id="104" value="chain_id" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;align=left;spacingLeft=6;overflow=hidden;" parent="102" vertex="1">
<mxGeometry x="30" width="150" height="30" as="geometry">
<mxRectangle width="150" height="30" as="alternateBounds"/>
</mxGeometry>
Expand All @@ -203,7 +203,7 @@
</mxGeometry>
</mxCell>
<mxCell id="74" value="passkeys" 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="460" y="40" width="250" height="290" as="geometry"/>
<mxGeometry x="470" y="295" width="250" height="290" as="geometry"/>
</mxCell>
<mxCell id="75" value="" style="shape=tableRow;horizontal=0;startSize=0;swimlaneHead=0;swimlaneBody=0;fillColor=none;collapsible=0;dropTarget=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;top=0;left=0;right=0;bottom=1;" parent="74" vertex="1">
<mxGeometry y="30" width="250" height="30" as="geometry"/>
Expand Down
1 change: 1 addition & 0 deletions plugins/passkey_relay_party/storage/migrations/migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ func init() {
// 迁移对象必需按从旧到新的顺序添加
migrations = []Migration{
&Migration20240711{},
&Migration20240828{},
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ type AirAccountChain struct {
InitCode string `json:"init_code" gorm:"type:text"`
AA_Address string `json:"aa_address" gorm:"type:varchar(255)"`
EOA_Address string `json:"eoa_address" gorm:"type:varchar(255)"`
Chain string `json:"chain" gorm:"type:varchar(64)"`
ChainId string `json:"chain_id" gorm:"type:varchar(10);column:chain_id"`
WalletVault string `json:"wallet_vault" gorm:"type:text"`
}

Expand Down

0 comments on commit 23f8795

Please sign in to comment.