12345678910111213141516171819202122232425 |
- -include("types.hrl").
- -record(group,{
- username, % this is an id, has nothing to do with users or name
- name,
- description,
- publicity,
- creator,
- created,
- owner,
- feed,
- users_count = 0 :: integer(), % we have to store this, counting would be very expensive and this number is sufficient for sorting and stuff
- entries_count = 0 :: integer()
- }).
- -record(group_subscription, {
- key,
- who,
- where,
- type,
- posts_count = 0 :: integer() % we need this for sorting and counting is expensive
- }).
- -define(GROUP_EXCHANGE(GroupId), list_to_binary("group_exchange."++GroupId++".fanout")).
|