Docs: Add database schema diagram

This commit is contained in:
SchoolGuy 2020-02-20 10:58:11 +00:00
parent 78871608b1
commit 41e6b79d53
No known key found for this signature in database
GPG key ID: E1402A43C854A672

527
docs/ticketfrei dbs.uxf Normal file
View file

@ -0,0 +1,527 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<diagram program="umlet" version="14.3.0">
<zoom_level>8</zoom_level>
<element>
<id>UMLClass</id>
<coordinates>
<x>128</x>
<y>344</y>
<w>80</w>
<h>64</h>
</coordinates>
<panel_attributes>user
--
_id_
passhash
enabled</panel_attributes>
<additional_attributes/>
</element>
<element>
<id>UMLClass</id>
<coordinates>
<x>280</x>
<y>576</y>
<w>96</w>
<h>64</h>
</coordinates>
<panel_attributes>email
--
_id_
↑ user_id
email</panel_attributes>
<additional_attributes/>
</element>
<element>
<id>UMLClass</id>
<coordinates>
<x>280</x>
<y>656</y>
<w>112</w>
<h>64</h>
</coordinates>
<panel_attributes>triggerpatterns
--
id
↑ user_id
patterns
</panel_attributes>
<additional_attributes/>
</element>
<element>
<id>UMLClass</id>
<coordinates>
<x>728</x>
<y>288</y>
<w>136</w>
<h>80</h>
</coordinates>
<panel_attributes>badwords
--
_id_
↑ user_id
words</panel_attributes>
<additional_attributes/>
</element>
<element>
<id>UMLClass</id>
<coordinates>
<x>960</x>
<y>24</y>
<w>112</w>
<h>80</h>
</coordinates>
<panel_attributes>mastodon_instances
--
_id_
instance
client_id
client_secret</panel_attributes>
<additional_attributes/>
</element>
<element>
<id>UMLClass</id>
<coordinates>
<x>960</x>
<y>120</y>
<w>128</w>
<h>112</h>
</coordinates>
<panel_attributes>mastodon_accounts
--
_id_
↑ user_id
access_token
↑ instance_id
active
user_id </panel_attributes>
<additional_attributes/>
</element>
<element>
<id>UMLClass</id>
<coordinates>
<x>496</x>
<y>64</y>
<w>112</w>
<h>80</h>
</coordinates>
<panel_attributes>seen_toots
--
_id_
↑ user_id
toot_uri
user_id</panel_attributes>
<additional_attributes/>
</element>
<element>
<id>UMLClass</id>
<coordinates>
<x>352</x>
<y>168</y>
<w>112</w>
<h>80</h>
</coordinates>
<panel_attributes>seen_telegrams
--
_id_
↑ user_id
tg_id
user_id</panel_attributes>
<additional_attributes/>
</element>
<element>
<id>UMLClass</id>
<coordinates>
<x>696</x>
<y>752</y>
<w>136</w>
<h>88</h>
</coordinates>
<panel_attributes>twitter_request_tokens
--
_id_
↑ user_id
request_token
request_token_secret</panel_attributes>
<additional_attributes/>
</element>
<element>
<id>UMLClass</id>
<coordinates>
<x>1120</x>
<y>336</y>
<w>104</w>
<h>88</h>
</coordinates>
<panel_attributes>twitter_accounts
--
_id_
↑ user_id
client_id
client_secret
active</panel_attributes>
<additional_attributes/>
</element>
<element>
<id>UMLClass</id>
<coordinates>
<x>960</x>
<y>240</y>
<w>136</w>
<h>80</h>
</coordinates>
<panel_attributes>telegram_accounts
--
_id_
↑ user_id
apikey
active</panel_attributes>
<additional_attributes/>
</element>
<element>
<id>UMLClass</id>
<coordinates>
<x>328</x>
<y>400</y>
<w>88</w>
<h>64</h>
</coordinates>
<panel_attributes>seen_tweets
--
_id_
↑ user_id
tweet_id</panel_attributes>
<additional_attributes/>
</element>
<element>
<id>UMLClass</id>
<coordinates>
<x>1128</x>
<y>440</y>
<w>128</w>
<h>80</h>
</coordinates>
<panel_attributes>seen_dms
--
_id_
↑ twitter_accounts_id
message_id
↑ user_id</panel_attributes>
<additional_attributes/>
</element>
<element>
<id>UMLClass</id>
<coordinates>
<x>816</x>
<y>664</y>
<w>136</w>
<h>80</h>
</coordinates>
<panel_attributes>telegram_subscribers
--
_id_
↑ user_id
subscriber_id
</panel_attributes>
<additional_attributes/>
</element>
<element>
<id>UMLClass</id>
<coordinates>
<x>904</x>
<y>592</y>
<w>112</w>
<h>64</h>
</coordinates>
<panel_attributes>mailinglist
--
_id_
↑ user_id
email</panel_attributes>
<additional_attributes/>
</element>
<element>
<id>UMLClass</id>
<coordinates>
<x>1032</x>
<y>528</y>
<w>128</w>
<h>64</h>
</coordinates>
<panel_attributes>seen_mail
--
_id_
↑ user_id
mail_date</panel_attributes>
<additional_attributes/>
</element>
<element>
<id>UMLClass</id>
<coordinates>
<x>280</x>
<y>488</y>
<w>136</w>
<h>64</h>
</coordinates>
<panel_attributes>twitter_last_request
--
_id_
↑ user_id
date</panel_attributes>
<additional_attributes/>
</element>
<element>
<id>UMLClass</id>
<coordinates>
<x>720</x>
<y>32</y>
<w>128</w>
<h>112</h>
</coordinates>
<panel_attributes>cities
--
_id_
↑ user_id
city
markdown
mail_md
masto_link
twit_link</panel_attributes>
<additional_attributes/>
</element>
<element>
<id>UMLClass</id>
<coordinates>
<x>80</x>
<y>592</y>
<w>112</w>
<h>64</h>
</coordinates>
<panel_attributes>secret
--
_id_
secret</panel_attributes>
<additional_attributes/>
</element>
<element>
<id>Relation</id>
<coordinates>
<x>192</x>
<y>200</y>
<w>176</w>
<h>200</h>
</coordinates>
<panel_attributes>lt=-
m1=1
m2=n</panel_attributes>
<additional_attributes>10.0;220.0;90.0;220.0;90.0;10.0;200.0;10.0</additional_attributes>
</element>
<element>
<id>Relation</id>
<coordinates>
<x>192</x>
<y>64</y>
<w>544</w>
<h>336</h>
</coordinates>
<panel_attributes>lt=-
m1=1
m2=1</panel_attributes>
<additional_attributes>10.0;390.0;490.0;390.0;490.0;170.0;590.0;170.0;590.0;10.0;660.0;10.0</additional_attributes>
</element>
<element>
<id>Relation</id>
<coordinates>
<x>192</x>
<y>96</y>
<w>320</w>
<h>304</h>
</coordinates>
<panel_attributes>lt=-
m1=1
m2=n</panel_attributes>
<additional_attributes>10.0;350.0;350.0;350.0;350.0;10.0;380.0;10.0</additional_attributes>
</element>
<element>
<id>Relation</id>
<coordinates>
<x>192</x>
<y>152</y>
<w>784</w>
<h>248</h>
</coordinates>
<panel_attributes>lt=-
m1=1
m2=1</panel_attributes>
<additional_attributes>10.0;280.0;510.0;280.0;510.0;80.0;870.0;80.0;870.0;10.0;960.0;10.0</additional_attributes>
</element>
<element>
<id>Relation</id>
<coordinates>
<x>192</x>
<y>248</y>
<w>784</w>
<h>152</h>
</coordinates>
<panel_attributes>lt=-
m1=1
m2=1
</panel_attributes>
<additional_attributes>10.0;160.0;530.0;160.0;530.0;20.0;880.0;20.0;880.0;50.0;960.0;50.0</additional_attributes>
</element>
<element>
<id>Relation</id>
<coordinates>
<x>192</x>
<y>320</y>
<w>552</w>
<h>80</h>
</coordinates>
<panel_attributes>lt=-
m1=0..n
m2=0..1</panel_attributes>
<additional_attributes>10.0;70.0;410.0;70.0;410.0;10.0;670.0;10.0</additional_attributes>
</element>
<element>
<id>Relation</id>
<coordinates>
<x>192</x>
<y>368</y>
<w>152</w>
<h>96</h>
</coordinates>
<panel_attributes>lt=-
m1=1
m2=2</panel_attributes>
<additional_attributes>10.0;10.0;120.0;10.0;120.0;90.0;170.0;90.0</additional_attributes>
</element>
<element>
<id>Relation</id>
<coordinates>
<x>192</x>
<y>368</y>
<w>104</w>
<h>184</h>
</coordinates>
<panel_attributes>lt=-
m1=1
m2=1</panel_attributes>
<additional_attributes>10.0;10.0;60.0;10.0;60.0;200.0;110.0;200.0</additional_attributes>
</element>
<element>
<id>Relation</id>
<coordinates>
<x>192</x>
<y>368</y>
<w>104</w>
<h>272</h>
</coordinates>
<panel_attributes>lt=-
m1=1
m2=1</panel_attributes>
<additional_attributes>10.0;10.0;50.0;10.0;50.0;310.0;110.0;310.0</additional_attributes>
</element>
<element>
<id>Relation</id>
<coordinates>
<x>192</x>
<y>368</y>
<w>104</w>
<h>352</h>
</coordinates>
<panel_attributes>lt=-
m1=1
m2=n</panel_attributes>
<additional_attributes>10.0;10.0;40.0;10.0;40.0;410.0;110.0;410.0</additional_attributes>
</element>
<element>
<id>Relation</id>
<coordinates>
<x>192</x>
<y>368</y>
<w>520</w>
<h>448</h>
</coordinates>
<panel_attributes>lt=-
m1=1
m2=1</panel_attributes>
<additional_attributes>10.0;10.0;310.0;10.0;310.0;180.0;480.0;180.0;480.0;460.0;570.0;460.0;570.0;530.0;630.0;530.0</additional_attributes>
</element>
<element>
<id>Relation</id>
<coordinates>
<x>192</x>
<y>368</y>
<w>640</w>
<h>360</h>
</coordinates>
<panel_attributes>lt=-
m1=1
m2=n</panel_attributes>
<additional_attributes>10.0;10.0;550.0;10.0;550.0;420.0;780.0;420.0</additional_attributes>
</element>
<element>
<id>Relation</id>
<coordinates>
<x>1008</x>
<y>360</y>
<w>136</w>
<h>144</h>
</coordinates>
<panel_attributes>lt=-
m1=n
m2=1</panel_attributes>
<additional_attributes>150.0;150.0;10.0;150.0;10.0;10.0;140.0;10.0</additional_attributes>
</element>
<element>
<id>Relation</id>
<coordinates>
<x>192</x>
<y>368</y>
<w>728</w>
<h>288</h>
</coordinates>
<panel_attributes>lt=-
m1=1
m2=1</panel_attributes>
<additional_attributes>10.0;10.0;570.0;10.0;570.0;330.0;890.0;330.0</additional_attributes>
</element>
<element>
<id>Relation</id>
<coordinates>
<x>192</x>
<y>368</y>
<w>856</w>
<h>224</h>
</coordinates>
<panel_attributes>lt=-
m1=1
m2=n</panel_attributes>
<additional_attributes>10.0;10.0;620.0;10.0;620.0;250.0;1050.0;250.0</additional_attributes>
</element>
<element>
<id>Relation</id>
<coordinates>
<x>192</x>
<y>368</y>
<w>952</w>
<h>160</h>
</coordinates>
<panel_attributes>lt=-
m1=1
m2=n</panel_attributes>
<additional_attributes>10.0;10.0;800.0;10.0;800.0;170.0;1170.0;170.0</additional_attributes>
</element>
<element>
<id>Relation</id>
<coordinates>
<x>200</x>
<y>368</y>
<w>936</w>
<h>32</h>
</coordinates>
<panel_attributes>lt=-
m1=1
m2=1</panel_attributes>
<additional_attributes>10.0;10.0;1150.0;10.0</additional_attributes>
</element>
</diagram>