X-Git-Url: http://git.euphorik.ch/?p=euphorik.git;a=blobdiff_plain;f=modules%2Finclude%2Feuphorik_bd.hrl;fp=modules%2Finclude%2Feuphorik_bd.hrl;h=48daa5bf1da327ea5928fcd303594bec5a2b2bbe;hp=1fc17a2c3be65bba8e7d2b08c33581213032dded;hb=a43e9c0197a98e1ae68e7a50eece6b22d55467d5;hpb=0fd41878c239877c274bd2bf58caf65b24977e52 diff --git a/modules/include/euphorik_bd.hrl b/modules/include/euphorik_bd.hrl index 1fc17a2..48daa5b 100755 --- a/modules/include/euphorik_bd.hrl +++ b/modules/include/euphorik_bd.hrl @@ -18,12 +18,10 @@ % % @author GBurri - % Version de la BD --define(VERSION_BD, 3). +-define(DB_VERSION, 3). -define(TABLES, [counter, proprietes, minichat, reponse_minichat, user, ip_table, troll]). - % Pour générer des id -record(counter, { @@ -31,7 +29,6 @@ value }). - % Mémorse toutes les propriétés, entre autre la version des données -record(proprietes, { @@ -39,7 +36,6 @@ valeur }). - % Contient tous les textes que peut envoyer le serveur vers client. -record(texte, { @@ -47,7 +43,6 @@ fr }). - % décrit un enregistrement d'un message -record(minichat, { @@ -60,7 +55,6 @@ status = normal % can be equal to normal, censored or deleted }). - % type bag % 'repondant' repond à 'cible' -record(reponse_minichat, @@ -69,8 +63,8 @@ cible % -> #minichat.id }). - --record(profile, % attention : pas une table ! +% Warning: this is not a table, it's part of the user table. +-record(profile, { pseudo = [], % string() email = [], % string() @@ -83,7 +77,6 @@ conversations = [] % [{integer(), bool}], la liste des messages correspondant au conversation {racine, reduite?} }). - -record(user, { id, @@ -98,7 +91,6 @@ last_ip = undefined % integer(), undefined si inconnu }). - % identificateur : (ip) -record(ip_table, { @@ -111,7 +103,6 @@ date_last_try_login % pour l'instant pas utilisé }). - -record(troll, { id,