Browse Source

Add database skeleton file

Léo Serre 1 year ago
parent
commit
7e75ad857b
2 changed files with 41 additions and 1 deletions
  1. 3
    1
      .htaccess
  2. 38
    0
      _ressources/database_drawing

+ 3
- 1
.htaccess View File

@@ -6,4 +6,6 @@ RewriteEngine On
6 6
 RewriteCond %{REQUEST_FILENAME} !-f
7 7
 RewriteCond %{REQUEST_FILENAME} !-d
8 8
 RewriteCond %{REQUEST_FILENAME} !-l
9
-RewriteRule . %{ENV:BASE}index.php [L]
9
+RewriteRule . ./index.php [L]
10
+
11
+php_value short_open_tag 1

+ 38
- 0
_ressources/database_drawing View File

@@ -0,0 +1,38 @@
1
+# Database structure for kabano.org open-source project
2
+# This file is designed to be imported in quickdatabasediagrams.com
3
+
4
+user
5
+-
6
+id PK int
7
+name string
8
+mail string
9
+password string
10
+is_avatar_present boolean
11
+website NULL string
12
+locale string
13
+role int # 200: blocked; 400: registered; 600: premium; 800: moderator; 1000: admin
14
+last_login_date date
15
+register_date date
16
+
17
+object
18
+-
19
+id PK int
20
+creation_date date
21
+author_id int FK >- user.id
22
+is_public bool
23
+type int # 0: wiki_page; 1: forum_thread; 2: refuge; 3: hut...
24
+
25
+object_locale
26
+-
27
+id PK int
28
+object_id int FK >- object.id
29
+locale string
30
+
31
+object_revision # Note: restoring an old version is done by creating a new revision
32
+-
33
+id PK int
34
+revision_date date
35
+object_locale_id int FK >- object_locale.id
36
+contributor_id int FK >- user.id
37
+name string
38
+content text?

Loading…
Cancel
Save