X-Git-Url: http://git.euphorik.ch/?p=euphorik.git;a=blobdiff_plain;f=modules%2Finclude%2Feuphorik_bd.hrl;h=ae694598bd3bcb6a33c76e3e07277f53ef72c181;hp=6713830605293b2ae86ebf793701165c46530b8c;hb=e1bca2f5335f66a1a869bbc57e3346514e628558;hpb=7390fafe169cf917376fb017650dd9e75bc82bee diff --git a/modules/include/euphorik_bd.hrl b/modules/include/euphorik_bd.hrl index 6713830..ae69459 100755 --- a/modules/include/euphorik_bd.hrl +++ b/modules/include/euphorik_bd.hrl @@ -19,7 +19,7 @@ % Version de la BD --define(VERSION_BD, 2). +-define(VERSION_BD, 3). -define(TABLES, [counter, proprietes, minichat, reponse_minichat, user, ip_table, troll]). @@ -55,7 +55,6 @@ date, % erlang:now() pseudo, % chaine de caractère contenu, % chaine de caractère - troll_id = undefined, % l'id du troll associé correspondant racine_id = undefined % la racine, par défaut correspond à l'id du message }). @@ -69,7 +68,6 @@ }). - -record(profile, % attention : pas une table ! { pseudo = [], % string() @@ -81,7 +79,9 @@ ostentatious_master = light, % peut valoir invisible, light ou heavy. seulement pour ek_master chat_order = reverse, % peut valoir chrono ou reverse conversations = [] % [{integer(), bool}], la liste des messages correspondant au conversation {racine, reduite?} - }). + }). + + -record(user, { id, @@ -113,7 +113,8 @@ -record(troll, { id, - id_user, + id_user, + id_minichat = undefined, % l'id du message associé date_create, % erlang:now() date_post = undefined, % date à laquelle le troll est affiché sur la page principale. undefined initialement puis erlang:now() quand affiché content % chaine de caractère