Skip to content

Commit

Permalink
Imported current DB structure
Browse files Browse the repository at this point in the history
Included recent update scripts, current dump and a description of
how the tables have been used or are being used
  • Loading branch information
glpatcern committed Jul 7, 2023
1 parent 14b3549 commit d54ad78
Show file tree
Hide file tree
Showing 4 changed files with 1,548 additions and 0 deletions.
49 changes: 49 additions & 0 deletions db/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
CERNBox DB schema
=================

The CERNBox database schema inherits the ownCloud 10 schema and adds Reva-specific tables.

This file describes the state of the database following a reverse engineering analysis.

The following tables with their corresponding cardinalities are used in production and referenced in Reva as of July 2023:

* oc_preferences # 65K
* oc_share # 490K
* oc_share_status # 24K

* cernbox_project_mapping # 1K
* cbox_metadata # 10K, to store favourites
* cbox_otg_ocis # empty, to be deprecated in favour of notifications

* notifications # the dump script currently contains cbox_notifications, to be fixed
* notification_recipients

* ocm_access_method_webapp
* ocm_access_method_webdav
* ocm_protocol_transfer
* ocm_protocol_webapp
* ocm_protocol_webdav
* ocm_received_share_protocols
* ocm_received_shares
* ocm_remote_users
* ocm_shares
* ocm_shares_access_methods
* ocm_tokens

The following tables contain several records (possibly used by ownCloud in the past) but are not used by Reva:

* oc_mounts
* oc_share_acl
* oc_share_acl_old
* oc_addressbooks
* oc_accounts

The following tables were used in the past but not any longer:

* cbox_canary
* cbox_office_engine

The following table was populated by hand and it is not used by Reva:

* oc_sciencemesh

Loading

0 comments on commit d54ad78

Please sign in to comment.