ADD script permettant la mise à jour de la BD et le rechargement des modules lors...
[euphorik.git] / modules / include / euphorik_bd.hrl
index edadbcc..d7cdd8a 100755 (executable)
@@ -1,5 +1,26 @@
-% @author GBurri
-% Version 3
+% Copyright 2008 Grégory Burri\r
+%\r
+% This file is part of Euphorik.\r
+%\r
+% Euphorik is free software: you can redistribute it and/or modify\r
+% it under the terms of the GNU General Public License as published by\r
+% the Free Software Foundation, either version 3 of the License, or\r
+% (at your option) any later version.\r
+%\r
+% Euphorik is distributed in the hope that it will be useful,\r
+% but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
+% GNU General Public License for more details.\r
+%\r
+% You should have received a copy of the GNU General Public License\r
+% along with Euphorik.  If not, see <http://www.gnu.org/licenses/>.\r
+%\r
+% @author GBurri\r
+
+
+% Version de la BD
+-define(VERSION_BD, 1).
+
 
 % Pour générer des id\r
 -record(counter,\r
@@ -7,7 +28,15 @@
       key,\r
       value\r
    }).\r
-   \r
+   
+   
+% Mémorse toutes les propriétés, entre autre la version des données
+-record(proprietes,
+   {
+      nom,
+      valeur
+   }).\r
+
 \r
 % décrit un enregistrement d'un message\r
 -record(minichat,
@@ -16,7 +45,8 @@
       auteur_id, % -> #user.id
       date, % erlang:now()
       pseudo, % chaine de caractère
-      contenu % chaine de caractère
+      contenu, % chaine de caractère
+      troll_id = undefined % l'id du troll associé correspondant
    }).\r
    
    \r
@@ -41,6 +71,8 @@
       date_derniere_connexion, % erlang:now(), est mis à jour lors de n'importe quelle activitée (envoie de message par exemple)\r
       css = [], % string()
       nick_format = nick, %atom(), peut valoir 'nick', 'login' ou 'nick_login'
+      view_times = true,
+      view_tooltips = true,
       indice_flood = 0, % integer() est incrémenté lorsque l'utilisateur envoie trop rapidement des messages.
       page_principale = 1, % la page de la conversation principale
       conversations = [], % [{integer(), integer()}], la liste des messages correspondant au conversation ainsi que la page affichée