started to introduce application to config and to split account_login from account.
This commit is contained in:
@ -3,17 +3,20 @@
|
||||
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.1" author="Joern Muehlencord" last-position="0,0" last-zoom="0.85"
|
||||
default-schema="public" default-owner="postgres">
|
||||
<database name="account_test" encoding="UTF8" lc-collate="German_Germany.1252" lc-ctype="German_Germany.1252" is-template="false" allow-conns="true" sql-disabled="true">
|
||||
<dbmodel pgmodeler-ver="0.9.1" author="Joern Muehlencord" last-position="315,0" last-zoom="0.7"
|
||||
default-schema="public">
|
||||
<database name="account_test" encoding="UTF8" lc-collate="C" lc-ctype="C" is-template="false" allow-conns="true" sql-disabled="true">
|
||||
</database>
|
||||
|
||||
<schema name="public" fill-color="#e1e1e1" sql-disabled="true">
|
||||
</schema>
|
||||
|
||||
<table name="config">
|
||||
<table name="config" hide-ext-attribs="true">
|
||||
<schema name="public"/>
|
||||
<position x="1912" y="120.235"/>
|
||||
<position x="1880" y="380"/>
|
||||
<column name="application" not-null="true">
|
||||
<type name="uuid" length="0"/>
|
||||
</column>
|
||||
<column name="config_key" not-null="true">
|
||||
<type name="varchar" length="100"/>
|
||||
</column>
|
||||
@ -27,13 +30,13 @@ CAUTION: Do not modify this file unless you know what you are doing.
|
||||
<type name="varchar" length="200"/>
|
||||
</column>
|
||||
<constraint name="config_pk" type="pk-constr" table="public.config">
|
||||
<columns names="config_key,config_key_account" ref-type="src-columns"/>
|
||||
<columns names="application,config_key,config_key_account" ref-type="src-columns"/>
|
||||
</constraint>
|
||||
</table>
|
||||
|
||||
<table name="application_role">
|
||||
<table name="application_role" hide-ext-attribs="true">
|
||||
<schema name="public"/>
|
||||
<position x="158.022" y="490"/>
|
||||
<position x="160" y="500"/>
|
||||
<column name="id" not-null="true">
|
||||
<type name="uuid" length="0"/>
|
||||
</column>
|
||||
@ -54,9 +57,9 @@ CAUTION: Do not modify this file unless you know what you are doing.
|
||||
</constraint>
|
||||
</table>
|
||||
|
||||
<table name="account">
|
||||
<table name="account" hide-ext-attribs="true">
|
||||
<schema name="public"/>
|
||||
<position x="1323.59" y="185.294"/>
|
||||
<position x="1240" y="100"/>
|
||||
<column name="id" not-null="true">
|
||||
<type name="uuid" length="0"/>
|
||||
</column>
|
||||
@ -72,30 +75,9 @@ CAUTION: Do not modify this file unless you know what you are doing.
|
||||
<column name="lastname" not-null="true">
|
||||
<type name="character varying" length="100"/>
|
||||
</column>
|
||||
<column name="account_password" not-null="true">
|
||||
<type name="character" length="200"/>
|
||||
</column>
|
||||
<column name="last_login">
|
||||
<type name="timestamp with time zone" length="0" with-timezone="true"/>
|
||||
</column>
|
||||
<column name="last_failed_login">
|
||||
<type name="timestamp with time zone" length="0" with-timezone="true"/>
|
||||
</column>
|
||||
<column name="failure_count" not-null="true" default-value="0">
|
||||
<type name="integer" length="0"/>
|
||||
</column>
|
||||
<column name="status" not-null="true" default-value="'NEW'">
|
||||
<type name="character varying" length="10"/>
|
||||
</column>
|
||||
<column name="password_reset_ongoing" not-null="true" default-value="false">
|
||||
<type name="boolean" length="0"/>
|
||||
</column>
|
||||
<column name="password_reset_valid_to">
|
||||
<type name="timestamp with time zone" length="0" with-timezone="true"/>
|
||||
</column>
|
||||
<column name="password_reset_hash">
|
||||
<type name="character" length="200"/>
|
||||
</column>
|
||||
<column name="created_on" not-null="true" default-value="timezone('utc'::text, now())">
|
||||
<type name="timestamp with time zone" length="0" with-timezone="true"/>
|
||||
</column>
|
||||
@ -116,9 +98,9 @@ CAUTION: Do not modify this file unless you know what you are doing.
|
||||
</constraint>
|
||||
</table>
|
||||
|
||||
<table name="account_history">
|
||||
<table name="account_history" hide-ext-attribs="true">
|
||||
<schema name="public"/>
|
||||
<position x="725.984" y="294.706"/>
|
||||
<position x="760" y="340"/>
|
||||
<column name="id" not-null="true">
|
||||
<type name="uuid" length="0"/>
|
||||
</column>
|
||||
@ -145,9 +127,9 @@ CAUTION: Do not modify this file unless you know what you are doing.
|
||||
</constraint>
|
||||
</table>
|
||||
|
||||
<table name="account_role">
|
||||
<table name="account_role" hide-ext-attribs="true">
|
||||
<schema name="public"/>
|
||||
<position x="738.806" y="90"/>
|
||||
<position x="740" y="100"/>
|
||||
<column name="account" not-null="true">
|
||||
<type name="uuid" length="0"/>
|
||||
</column>
|
||||
@ -159,9 +141,9 @@ CAUTION: Do not modify this file unless you know what you are doing.
|
||||
</constraint>
|
||||
</table>
|
||||
|
||||
<table name="application_permission">
|
||||
<table name="application_permission" hide-ext-attribs="true">
|
||||
<schema name="public"/>
|
||||
<position x="1588.77" y="866.604"/>
|
||||
<position x="1560" y="740"/>
|
||||
<column name="id" not-null="true">
|
||||
<type name="uuid" length="0"/>
|
||||
</column>
|
||||
@ -182,9 +164,9 @@ CAUTION: Do not modify this file unless you know what you are doing.
|
||||
</constraint>
|
||||
</table>
|
||||
|
||||
<table name="role_permission">
|
||||
<table name="role_permission" hide-ext-attribs="true">
|
||||
<schema name="public"/>
|
||||
<position x="843.804" y="631.603"/>
|
||||
<position x="960" y="800"/>
|
||||
<column name="application_role" not-null="true">
|
||||
<type name="uuid" length="0"/>
|
||||
</column>
|
||||
@ -196,9 +178,9 @@ CAUTION: Do not modify this file unless you know what you are doing.
|
||||
</constraint>
|
||||
</table>
|
||||
|
||||
<table name="mail_template">
|
||||
<table name="mail_template" hide-ext-attribs="true">
|
||||
<schema name="public"/>
|
||||
<position x="1840.59" y="309.132"/>
|
||||
<position x="280" y="860"/>
|
||||
<column name="template_name" not-null="true">
|
||||
<type name="character varying" length="40"/>
|
||||
</column>
|
||||
@ -210,9 +192,9 @@ CAUTION: Do not modify this file unless you know what you are doing.
|
||||
</constraint>
|
||||
</table>
|
||||
|
||||
<table name="application">
|
||||
<table name="application" hide-ext-attribs="true">
|
||||
<schema name="public"/>
|
||||
<position x="791.059" y="835.059"/>
|
||||
<position x="1080" y="560"/>
|
||||
<column name="id" not-null="true">
|
||||
<type name="uuid" length="0"/>
|
||||
</column>
|
||||
@ -224,16 +206,72 @@ CAUTION: Do not modify this file unless you know what you are doing.
|
||||
</constraint>
|
||||
</table>
|
||||
|
||||
<extension name="uuid-ossp">
|
||||
<extension name="uuid-ossp" sql-disabled="true">
|
||||
<schema name="public"/>
|
||||
</extension>
|
||||
|
||||
<table name="account_login" hide-ext-attribs="true">
|
||||
<schema name="public"/>
|
||||
<position x="1880" y="20"/>
|
||||
<column name="id" not-null="true" default-value="uuid_generate_v4()">
|
||||
<type name="uuid" length="0"/>
|
||||
</column>
|
||||
<column name="account" not-null="true">
|
||||
<type name="uuid" length="0"/>
|
||||
</column>
|
||||
<column name="account_password" not-null="true">
|
||||
<type name="varchar" length="200"/>
|
||||
</column>
|
||||
<column name="last_login">
|
||||
<type name="timestamptz" length="0"/>
|
||||
</column>
|
||||
<column name="last_failed_login">
|
||||
<type name="timestamptz" length="0"/>
|
||||
</column>
|
||||
<column name="failure_count" not-null="true" default-value="0">
|
||||
<type name="integer" length="0"/>
|
||||
</column>
|
||||
<column name="password_reset_ongoing" not-null="true" default-value="false">
|
||||
<type name="boolean" length="0"/>
|
||||
</column>
|
||||
<column name="password_reset_valid_to">
|
||||
<type name="timestamptz" length="0"/>
|
||||
</column>
|
||||
<column name="password_reset_hash">
|
||||
<type name="varchar" length="200"/>
|
||||
</column>
|
||||
<column name="created_on" not-null="true" default-value="timezone('utc'::text, now())">
|
||||
<type name="timestamptz" length="0"/>
|
||||
</column>
|
||||
<column name="created_by" not-null="true">
|
||||
<type name="varchar" length="32"/>
|
||||
</column>
|
||||
<column name="last_updated_on" not-null="true" default-value="timezone('utc'::text, now())">
|
||||
<type name="timestamptz" length="0"/>
|
||||
</column>
|
||||
<column name="last_updated_by" not-null="true">
|
||||
<type name="varchar" length="32"/>
|
||||
</column>
|
||||
<constraint name="account_login_pk" type="pk-constr" table="public.account_login">
|
||||
<columns names="id" ref-type="src-columns"/>
|
||||
</constraint>
|
||||
<constraint name="account_login_uidx" type="uq-constr" table="public.account_login">
|
||||
<columns names="account" ref-type="src-columns"/>
|
||||
</constraint>
|
||||
</table>
|
||||
|
||||
<constraint name="config_key_account_fk" type="fk-constr" comparison-type="MATCH FULL"
|
||||
upd-action="NO ACTION" del-action="NO ACTION" ref-table="public.account" table="public.config">
|
||||
<columns names="config_key_account" ref-type="src-columns"/>
|
||||
<columns names="id" ref-type="dst-columns"/>
|
||||
</constraint>
|
||||
|
||||
<constraint name="config_application_fk" type="fk-constr" comparison-type="MATCH FULL"
|
||||
upd-action="NO ACTION" del-action="NO ACTION" ref-table="public.application" table="public.config">
|
||||
<columns names="application" ref-type="src-columns"/>
|
||||
<columns names="id" ref-type="dst-columns"/>
|
||||
</constraint>
|
||||
|
||||
<constraint name="application_role_app_fk" type="fk-constr" comparison-type="MATCH FULL"
|
||||
upd-action="NO ACTION" del-action="NO ACTION" ref-table="public.application" table="public.application_role">
|
||||
<columns names="application" ref-type="src-columns"/>
|
||||
@ -276,6 +314,12 @@ CAUTION: Do not modify this file unless you know what you are doing.
|
||||
<columns names="id" ref-type="dst-columns"/>
|
||||
</constraint>
|
||||
|
||||
<constraint name="account_login_fk" type="fk-constr" comparison-type="MATCH FULL"
|
||||
upd-action="NO ACTION" del-action="NO ACTION" ref-table="public.account" table="public.account_login">
|
||||
<columns names="account" ref-type="src-columns"/>
|
||||
<columns names="id" ref-type="dst-columns"/>
|
||||
</constraint>
|
||||
|
||||
<relationship name="rel_account_history_account" type="relfk"
|
||||
custom-color="#83af1f"
|
||||
src-table="public.account_history"
|
||||
@ -321,4 +365,14 @@ CAUTION: Do not modify this file unless you know what you are doing.
|
||||
dst-table="public.application" reference-fk="application_permission_app_fk"
|
||||
src-required="false" dst-required="false"/>
|
||||
|
||||
<relationship name="rel_account_login_account" type="relfk"
|
||||
src-table="public.account_login"
|
||||
dst-table="public.account" reference-fk="account_login_fk"
|
||||
src-required="false" dst-required="false"/>
|
||||
|
||||
<relationship name="rel_config_application" type="relfk"
|
||||
src-table="public.config"
|
||||
dst-table="public.application" reference-fk="config_application_fk"
|
||||
src-required="false" dst-required="false"/>
|
||||
|
||||
</dbmodel>
|
||||
|
||||
Reference in New Issue
Block a user