ORISO Dokumentation
Core Systems

Database and Data Model

Enriched persistence architecture, schema ownership and data risks.

Database and Data Model

Platform Navigation

Diagram: data-ownership.mmd

Data Stores

SchemaFileTable countMain tablesIndex count
agencyservicemariadb/agencyservice/schema.sql6DATABASECHANGELOG, DATABASECHANGELOGLOCK, agency, agency_postcode_range, agency_topic, diocese2
caritasmariadb/caritas/schema.sql00
consultingtypeservicemariadb/consultingtypeservice/schema.sql5DATABASECHANGELOG, DATABASECHANGELOGLOCK, topic, topic_group, topic_group_x_topic3
tenantservicemariadb/tenantservice/schema.sql3DATABASECHANGELOG, DATABASECHANGELOGLOCK, tenant0
uploadservicemariadb/uploadservice/schema.sql3DATABASECHANGELOG, DATABASECHANGELOGLOCK, uploadbyuser0
userservicemariadb/userservice/schema.sql26DATABASECHANGELOG, DATABASECHANGELOGLOCK, admin, admin_agency, agency_invite_link, appointment, chat, chat_agency, consultant, consultant_agency, consultant_mobile_token, counselor_rename_audit_log, draft_message, event_notification, group_chat_participant, identity_tombstone, inactive_account_notification_audit_log, language, session, session_data, session_supervisor, session_topic, user, user_agency, user_chat, user_mobile_token40
videoservicemariadb/videoservice/schema.sql3DATABASECHANGELOG, DATABASECHANGELOGLOCK, videoroom1

Ownership Rules

  • TenantService owns tenantservice.tenant.
  • UserService owns userservice user/session/chat/appointment/notification tables.
  • AgencyService owns agencyservice agency/postcode/topic/diocese tables.
  • ConsultingTypeService owns consultingtypeservice topic tables and MongoDB consulting/application documents.
  • Matrix owns Matrix PostgreSQL state.
  • UploadService and VideoService schemas exist but their repos were not included.

Initialization and Migration References

  • README.md
  • k8s/mariadb-client/README.md
  • mariadb/README.md
  • mongodb/README.md
  • postgresql/README.md
  • rabbitmq/README.md
  • redis/README.md
  • scripts/README.md
  • scripts/database-initialize.yaml
  • scripts/system-users-job.yaml
  • k8s/mariadb-client/configmap.yaml
  • k8s/mariadb-client/deployment.yaml
  • k8s/mariadb-client/ingress.yaml
  • k8s/mariadb-client/kustomization.yaml
  • k8s/mariadb-client/service.yaml

Risks

  • Cross-service IDs are not always protected by database-level foreign keys.
  • Index coverage should be checked before tenant-heavy or user/session-heavy scale testing.
  • Dump/backup files may contain sensitive data.
  • Liquibase tables exist in schema exports, but the actual migration ownership model needs environment verification.

Auf dieser Seite