From 7e75ad857bb80847af891447ace51ca1357ff22a Mon Sep 17 00:00:00 2001 From: leosw Date: Mon, 26 Mar 2018 22:21:41 +0200 Subject: [PATCH] Add database skeleton file --- .htaccess | 4 +++- _ressources/database_drawing | 38 ++++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 _ressources/database_drawing diff --git a/.htaccess b/.htaccess index f91c71a..7e0db4d 100755 --- a/.htaccess +++ b/.htaccess @@ -6,4 +6,6 @@ RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-l -RewriteRule . %{ENV:BASE}index.php [L] \ No newline at end of file +RewriteRule . ./index.php [L] + +php_value short_open_tag 1 \ No newline at end of file diff --git a/_ressources/database_drawing b/_ressources/database_drawing new file mode 100644 index 0000000..90ad923 --- /dev/null +++ b/_ressources/database_drawing @@ -0,0 +1,38 @@ +# Database structure for kabano.org open-source project +# This file is designed to be imported in quickdatabasediagrams.com + +user +- +id PK int +name string +mail string +password string +is_avatar_present boolean +website NULL string +locale string +role int # 200: blocked; 400: registered; 600: premium; 800: moderator; 1000: admin +last_login_date date +register_date date + +object +- +id PK int +creation_date date +author_id int FK >- user.id +is_public bool +type int # 0: wiki_page; 1: forum_thread; 2: refuge; 3: hut... + +object_locale +- +id PK int +object_id int FK >- object.id +locale string + +object_revision # Note: restoring an old version is done by creating a new revision +- +id PK int +revision_date date +object_locale_id int FK >- object_locale.id +contributor_id int FK >- user.id +name string +content text?