123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- -include("types.hrl").
- -include("kvs.hrl").
- -record(user, {?ITERATOR(feed, true),
- email,
- username :: username_type() | '_', %% Dialyzer and record MatchSpec warnings http://j.mp/vZ8670
- display_name,
- password,
- facebook_id,
- twitter_id,
- googleplus_id,
- github_id,
- auth,
- avatar,
- name = undefined,
- surname = undefined,
- age,
- sex,
- location,
- education,
- register_date,
- status = not_verified :: user_state() | '_',
- verification_code :: string() | '_',
- zone,
- type,
- comments,
- discussions,
- transactions,
- team,
- aclver}).
- -record(user_status,{
- email,
- last_login,
- show_splash = true :: boolean()
- }).
- -record(user_info,{
- email,
- name,
- surname,
- age,
- avatar_url,
- sex,
- skill = 0 :: integer(),
- score = 0 :: integer()}).
- -record(user_address, {
- email,
- address = "",
- city = "",
- district = "",
- postal_code = "",
- phone = "",
- personal_id = "" }).
- -record(user_type,{
- id,
- aclver}).
- -record(subscription,{
- key,
- who,
- whom}).
- -record(forget_password, {
- token :: string(),
- uid :: string(),
- create :: {integer(), integer(), integer()}}).
- -record(prohibited,{
- ip :: {string(), atom()},
- activity :: any(),
- time :: {integer(),integer(),integer()},
- uid = undefined :: 'undefined' | string()}).
- -record(avatar,{
- big :: string(),
- small :: string(),
- tiny :: string()}).
- -record(user_game_status,{
- user,
- status %% strings: online|offline|busy|free_for_game|invisible
- }).
- -record(user_ignores, {who, whom}).
- -record(user_ignores_rev, {whom, who}).
- -record(twitter_oauth, {user_id, token, secret}).
- -record(facebook_oauth, {user_id, access_token}).
- -record(googleplus_oauth, {user_id, access_token}).
- -record(github_oauth, {user_id, access_token}).
- -define(ACTIVE_USERS_TOP_N, 12).
- -record(active_users_top, {
- no,
- user_id,
- entries_count,
- last_one_timestamp
- }).
- -define(USER_EXCHANGE(UserId), list_to_binary("user_exchange."++UserId++".fanout")).
- -record(uploads, {key, counter}).
|