aboutsummaryrefslogblamecommitdiffstats
path: root/server/cldb.erl
blob: 0f9f4077eff414d6d100a2688eb95e2b3fe55e72 (plain) (tree)
1
2
3
4
5
6
7
8






                                     
                                   



                                                                           
% The clientdatabase

-module(cldb).
-export([init/0]).
-record(user, {name, passwd, votes}).

init() ->
    mnesia:create_schema([node()]),
    mnesia:start(),
    mnesia:create_table(track, [{attributes, record_info(fields, track)}]),
    io:format("Userdb up and running \n").