diff --git a/.erdconfig b/.erdconfig index d6330e4..85016df 100644 --- a/.erdconfig +++ b/.erdconfig @@ -9,3 +9,6 @@ exclude: - ActiveRecord::SchemaMigration - primary::SchemaMigration - Audited::Audit + - ActiveStorage::Attachment + - ActiveStorage::Blob + - ActiveStorage::VariantRecord diff --git a/erd.svg b/erd.svg index 309a8a3..f083169 100644 --- a/erd.svg +++ b/erd.svg @@ -4,195 +4,118 @@ - - + + XStake - -XStake domain model - - -m_ActiveStorage::Attachment - -ActiveStorage::Attachment - -blob_id -integer (8) ∗ FK -name -string ∗ -record_id -integer (8) ∗ FK -record_type -string ∗ - - - -m_ActiveStorage::Blob - -ActiveStorage::Blob - -byte_size -integer (8) ∗ -checksum -string ∗ -content_type -string -filename -string ∗ -key -string ∗ -metadata -text -service_name -string ∗ - - - -m_ActiveStorage::Blob->m_ActiveStorage::Attachment - - - - -m_ActiveStorage::Blob->m_ActiveStorage::Blob - - - - -m_ActiveStorage::VariantRecord - -ActiveStorage::VariantRecord - -blob_id -integer (8) ∗ FK -variation_digest -string ∗ - - - -m_ActiveStorage::Blob->m_ActiveStorage::VariantRecord - - - - - -m_ActiveStorage::VariantRecord->m_ActiveStorage::Attachment - - + +XStake domain model - + m_AdminUser - -AdminUser - -email -string ∗ U -encrypted_password -string ∗ -remember_created_at -datetime -reset_password_sent_at -datetime -reset_password_token -string + +AdminUser + +email +string ∗ U +encrypted_password +string ∗ +remember_created_at +datetime +reset_password_sent_at +datetime +reset_password_token +string - + m_Balance - -Balance - -amount -decimal (20,10) ∗ -currency_id -integer (8) ∗ FK -user_id -integer (8) ∗ FK + +Balance + +amount +decimal (20,10) ∗ +currency_id +integer (8) ∗ FK +user_id +integer (8) ∗ FK - + m_Currency - -Currency - -name -string ∗ + +Currency + +name +string ∗ - + m_Currency->m_Balance - - + + - + m_FiatBalance - -FiatBalance - -amount_cents -integer ∗ -amount_currency -string ∗ -user_id -integer (8) ∗ FK + +FiatBalance + +amount_cents +integer ∗ +amount_currency +string ∗ +user_id +integer (8) ∗ FK - + m_User - -User - -email -string ∗ U -encrypted_password -string ∗ -first_name -string ∗ -last_name -string ∗ -remember_created_at -datetime -reset_password_sent_at -datetime -reset_password_token -string + +User + +email +string ∗ U +encrypted_password +string ∗ +first_name +string ∗ +last_name +string ∗ +remember_created_at +datetime +reset_password_sent_at +datetime +reset_password_token +string m_User->m_Balance - + + m_User->m_FiatBalance - + - + m_UserDocument - -UserDocument - -status -string ∗ -user_id -integer (8) ∗ FK + +UserDocument + +status +string ∗ +user_id +integer (8) ∗ FK m_User->m_UserDocument - - - - - -m_UserDocument->m_ActiveStorage::Attachment - - - - -m_UserDocument->m_ActiveStorage::Blob - + +