/usr/share/pgmodeler/conf/example.dbm is in pgmodeler-common 0.8.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 | <?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.8.0-alpha2" author="Raphael Araújo e Silva" last-position="0,0" last-zoom="1">
<database name="exampledb" encoding="UTF8">
<comment><![CDATA[Example Database Model]]></comment>
</database>
<tag name="sample tag">
<style id="table-body" colors="#ffffff,#ffffff,#000000"/>
<style id="table-ext-body" colors="#ffffff,#ffffff,#000000"/>
<style id="table-name" colors="#ffffff"/>
<style id="table-schema-name" colors="#ffffff"/>
<style id="table-title" colors="#ff0000,#800000,#000000"/>
<comment><![CDATA[this tag is a test]]></comment>
</tag>
<schema name="public" protected="true" fill-color="#000000" sql-disabled="true">
</schema>
<language name="testlang" protected="true"/>
<function name="trigger_func"
window-func="false"
returns-setof="false"
behavior-type="CALLED ON NULL INPUT"
function-type="IMMUTABLE"
security-type="SECURITY DEFINER"
execution-cost="20"
row-amount="2500">
<schema name="public"/>
<language name="testlang" protected="true"/>
<return-type>
<type name="trigger"/>
</return-type>
<definition><![CDATA[SELECT 1+1;]]></definition>
</function>
<table name="table">
<schema name="public"/>
<tag name="sample tag"/>
<position x="20" y="20"/>
<column name="column" not-null="true">
<type name="serial"/>
</column>
<column name="column1">
<type name="text"/>
</column>
<constraint name="table_pk" type="pk-constr" factor="10" table="public.table">
<columns names="column" ref-type="src-columns"/>
</constraint>
<constraint name="table_uq" type="uq-constr" factor="10" table="public.table">
<columns names="column1" ref-type="src-columns"/>
</constraint>
<constraint name="table_ck" type="ck-constr" table="public.table">
<expression><![CDATA[ column1 > 0 ]]></expression>
</constraint>
</table>
<index name="index" table="public.table"
concurrent="true" unique="true" fast-update="false" buffering="false"
index-type="hash" factor="0">
<idxelement use-sorting="true" nulls-first="false" asc-order="false">
<column name="column1"/>
</idxelement>
</index>
<table name="table1">
<schema name="public"/>
<position x="377" y="234"/>
<column name="column" not-null="true">
<type name="serial"/>
</column>
<column name="column1">
<type name="text"/>
</column>
<column name="column2" not-null="true">
<type name="integer"/>
</column>
<column name="column3">
<type name="text"/>
</column>
<constraint name="table_pk" type="pk-constr" factor="10" table="public.table1">
<columns names="column" ref-type="src-columns"/>
</constraint>
<constraint name="table_uq" type="uq-constr" factor="10" table="public.table1">
<columns names="column1" ref-type="src-columns"/>
</constraint>
<constraint name="table_ck" type="ck-constr" table="public.table1">
<expression><![CDATA[ column1 > 0 ]]></expression>
</constraint>
</table>
<rule name="rule1" event-type="ON INSERT" exec-type="ALSO"
table="public.table1">
<condition><![CDATA[column1 = 0]]></condition>
<commands><![CDATA[UPDATE public.table1 SET column1 = 1]]></commands>
</rule>
<trigger name="trigger1" firing-type="BEFORE" per-line="false" constraint="false"
ins-event="true" del-event="true" upd-event="true" trunc-event="false"
table="public.table1">
<function signature="public.trigger_func()"/>
</trigger>
<relationship name="table1_has_many_table" type="rel1n"
src-col-pattern="{sc}_{st}"
pk-pattern="{dt}_pk" uq-pattern="{dt}_uq"
src-fk-pattern="{st}_fk"
src-table="public.table1"
dst-table="public.table"
src-required="false" dst-required="false">
<line>
<position x="307" y="248"/>
<position x="306" y="111"/>
</line>
<label ref-type="name-label">
<position x="12.6257" y="16.0515"/>
</label>
<column name="attribute">
<type name="integer"/>
</column>
</relationship>
<view name="view">
<schema name="public"/>
<position x="12" y="244"/>
<reference table="public.table" column="column1" alias="t1" column-alias="col1"/>
<reference table="public.table1" column="column2" alias="t2" column-alias="col2"/>
<reference alias="expr">
<expression><![CDATA[extract(month from now())]]></expression>
</reference>
<reference table="public.table1" alias="t3" column-alias="col3"/>
<expression type="select-exp">0,1,2,3</expression>
<expression type="from-exp">3,0</expression>
</view>
<relationship name="rel_view_table" type="reltv"
src-table="public.view"
dst-table="public.table"
src-required="false" dst-required="false"/>
<relationship name="rel_view_table1" type="reltv"
src-table="public.view"
dst-table="public.table1"
src-required="false" dst-required="false">
<label ref-type="name-label">
<position x="9.79871" y="6.45926"/>
</label>
</relationship>
<textbox name="textbox" font-size="9">
<position x="406" y="156"/>
<comment><![CDATA[Selected Textbox]]></comment>
</textbox>
<textbox name="textbox1" protected="true" font-size="9">
<position x="401" y="193"/>
<comment><![CDATA[Protected Textbox]]></comment>
</textbox>
<table name="table2" oids="true">
<schema name="public"/>
<position x="368" y="37"/>
<column name="column" not-null="true">
<type name="serial"/>
</column>
<column name="column1">
<type name="text"/>
</column>
<column name="column2" not-null="true">
<type name="integer"/>
</column>
<column name="column3">
<type name="text"/>
</column>
<constraint name="table_pk" type="pk-constr" factor="10" table="public.table2">
<columns names="column" ref-type="src-columns"/>
</constraint>
<constraint name="table_uq" type="uq-constr" factor="10" table="public.table2">
<columns names="column1" ref-type="src-columns"/>
</constraint>
<constraint name="table_ck" type="ck-constr" table="public.table2">
<expression><![CDATA[ column1 > 0 ]]></expression>
</constraint>
</table>
<index name="index" table="public.table2"
concurrent="true" unique="true" fast-update="false" buffering="false"
index-type="hash" factor="0">
<idxelement use-sorting="true" nulls-first="false" asc-order="false">
<column name="column1"/>
</idxelement>
</index>
<constraint name="table2_fk" type="fk-constr" comparison-type="MATCH FULL"
upd-action="NO ACTION" del-action="NO ACTION" ref-table="public.table" table="public.table2">
<columns names="column2" ref-type="src-columns"/>
<columns names="column" ref-type="dst-columns"/>
</constraint>
<relationship name="rel_table2_table" type="relfk"
src-table="public.table2"
dst-table="public.table"
src-required="false" dst-required="false">
<line>
<position x="315" y="93"/>
<position x="311.85" y="48.6"/>
</line>
<label ref-type="name-label">
<position x="-0.374268" y="-85.9485"/>
</label>
</relationship>
</dbmodel>
|