Andrii Zadorozhnii 11 лет назад
Родитель
Сommit
7e2399411d
2 измененных файлов с 3 добавлено и 0 удалено
  1. 2 0
      include/feeds.hrl
  2. 1 0
      include/kvs.hrl

+ 2 - 0
include/feeds.hrl

@@ -42,6 +42,8 @@
         media = [],
         media = [],
         parent}).
         parent}).
 
 
+-record(entry_views, {?CONTAINER}).
+-record(user_view,   {?ITERATOR(entry_views), user}).
 
 
 -record(entry_likes, {
 -record(entry_likes, {
         entry_id,       % this is a general entry_id. Every same entry in different feeds has the same id
         entry_id,       % this is a general entry_id. Every same entry in different feeds has the same id

+ 1 - 0
include/kvs.hrl

@@ -13,6 +13,7 @@
 -define(CONTAINERS, [
 -define(CONTAINERS, [
     {feed,              record_info(fields, feed)},
     {feed,              record_info(fields, feed)},
     {acl,               record_info(fields, acl)},
     {acl,               record_info(fields, acl)},
+    {entry_views,       record_info(fields, acl_views)},
     {user_transaction,  record_info(fields, user_transaction)},
     {user_transaction,  record_info(fields, user_transaction)},
     {user_payment,      record_info(fields, user_payment)} ]).
     {user_payment,      record_info(fields, user_payment)} ]).