-
Notifications
You must be signed in to change notification settings - Fork 0
/
sshOnDemand.dbm
153 lines (137 loc) · 5.11 KB
/
sshOnDemand.dbm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
<?xml version="1.0" encoding="UTF-8"?>
<!--
CAUTION: Do not modify this file unless you know what you are doing.
Unexpected results may occur if the code is changed deliberately.
-->
<dbmodel pgmodeler-ver="0.9.2-alpha" last-position="47,0" last-zoom="1"
default-schema="public" default-owner="postgres">
<database name="sshOnDemand" is-template="false" allow-conns="true">
</database>
<schema name="public" fill-color="#e1e1e1" sql-disabled="true">
</schema>
<table name="clients">
<schema name="public"/>
<role name="postgres"/>
<position x="200" y="160"/>
<column name="id" not-null="true">
<type name="serial" length="0"/>
</column>
<column name="client_name">
<type name="text" length="0"/>
</column>
<column name="client_key">
<type name="text" length="0"/>
</column>
<column name="is_device">
<type name="boolean" length="0"/>
</column>
<column name="is_developer">
<type name="boolean" length="0"/>
</column>
<constraint name="clients_pk" type="pk-constr" table="public.clients">
<columns names="id" ref-type="src-columns"/>
</constraint>
<constraint name="unique_client_name" type="uq-constr" table="public.clients">
<columns names="client_name" ref-type="src-columns"/>
</constraint>
</table>
<table name="developer_authorizations">
<schema name="public"/>
<role name="postgres"/>
<position x="800" y="340"/>
<column name="developer_id">
<type name="integer" length="0"/>
</column>
<column name="device_id">
<type name="integer" length="0"/>
</column>
</table>
<table name="device_requests">
<schema name="public"/>
<role name="postgres"/>
<position x="800" y="200"/>
<column name="client_id">
<type name="integer" length="0"/>
</column>
<column name="requested_by_client_id">
<type name="integer" length="0"/>
</column>
<column name="is_requested">
<type name="boolean" length="0"/>
</column>
<column name="request_timestamp">
<type name="timestamp" length="0"/>
</column>
</table>
<table name="client_connections">
<schema name="public"/>
<role name="postgres"/>
<position x="800" y="20"/>
<column name="client_id">
<type name="integer" length="0"/>
</column>
<column name="status">
<type name="smallint" length="0"/>
</column>
<column name="connection_timestamp">
<type name="timestamp" length="0"/>
</column>
<column name="ssh_ip">
<type name="text" length="0"/>
</column>
<column name="ssh_port">
<type name="integer" length="0"/>
</column>
<column name="ssh_forwarding">
<type name="integer" length="0"/>
</column>
<column name="ssh_user">
<type name="text" length="0"/>
</column>
</table>
<constraint name="fk_developer_id" type="fk-constr" comparison-type="MATCH FULL"
upd-action="CASCADE" del-action="CASCADE" ref-table="public.clients" table="public.developer_authorizations">
<columns names="developer_id" ref-type="src-columns"/>
<columns names="id" ref-type="dst-columns"/>
</constraint>
<constraint name="fk_device_id" type="fk-constr" comparison-type="MATCH FULL"
upd-action="CASCADE" del-action="CASCADE" ref-table="public.clients" table="public.developer_authorizations">
<columns names="device_id" ref-type="src-columns"/>
<columns names="id" ref-type="dst-columns"/>
</constraint>
<constraint name="fk_client_id" type="fk-constr" comparison-type="MATCH FULL"
upd-action="NO ACTION" del-action="NO ACTION" ref-table="public.clients" table="public.device_requests">
<columns names="client_id" ref-type="src-columns"/>
<columns names="id" ref-type="dst-columns"/>
</constraint>
<constraint name="fk_requester_client_id" type="fk-constr" comparison-type="MATCH FULL"
upd-action="NO ACTION" del-action="NO ACTION" ref-table="public.clients" table="public.device_requests">
<columns names="requested_by_client_id" ref-type="src-columns"/>
<columns names="id" ref-type="dst-columns"/>
</constraint>
<constraint name="fk_client_id" type="fk-constr" comparison-type="MATCH FULL"
upd-action="NO ACTION" del-action="NO ACTION" ref-table="public.clients" table="public.client_connections">
<columns names="client_id" ref-type="src-columns"/>
<columns names="id" ref-type="dst-columns"/>
</constraint>
<relationship name="rel_developer_authorizations_clients" type="relfk"
src-table="public.developer_authorizations"
dst-table="public.clients" reference-fk="fk_developer_id"
src-required="false" dst-required="false"/>
<relationship name="rel_developer_authorizations_clients1" type="relfk"
src-table="public.developer_authorizations"
dst-table="public.clients" reference-fk="fk_device_id"
src-required="false" dst-required="false"/>
<relationship name="rel_device_requests_clients" type="relfk"
src-table="public.device_requests"
dst-table="public.clients" reference-fk="fk_client_id"
src-required="false" dst-required="false"/>
<relationship name="rel_client_connections_clients" type="relfk"
src-table="public.client_connections"
dst-table="public.clients" reference-fk="fk_client_id"
src-required="false" dst-required="false"/>
<relationship name="rel_device_requests_clients1" type="relfk"
src-table="public.device_requests"
dst-table="public.clients" reference-fk="fk_requester_client_id"
src-required="false" dst-required="false"/>
</dbmodel>