products.hrl 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. -record(ext_product_info, {
  2. vendor_id,
  3. id,
  4. active,
  5. name,
  6. category,
  7. category_name,
  8. short_descr,
  9. long_descr,
  10. small_image_url,
  11. big_image_url,
  12. in_stock,
  13. retailer_price,
  14. user_price }).
  15. -record(product, {
  16. id :: integer(), % auto
  17. vendor_id :: integer(), % auto
  18. categories :: list(integer()), % admin
  19. ext_gift_id :: term(), % ext
  20. gift_name :: binary(), % admin (based on ext)
  21. ext_gift_name :: binary(), % ext
  22. description_short :: binary(), % admin (based on ext)
  23. description_long :: binary(), % admin (based on ext)
  24. image_small_url :: binary(), % admin (based on ext)
  25. image_big_url :: binary(), % admin (based on ext)
  26. publish_start_date :: calendar:date_time(), % admin
  27. publish_end_date :: calendar:date_time(), % admin
  28. real_price :: integer(), % ext
  29. retailer_price :: integer(), % ext
  30. our_price :: integer(), % auto
  31. in_stock, % FIXME: WTF? ext
  32. enabled_on_site :: boolean(), % admin
  33. kakush_point :: integer(), % auto
  34. kakush_currency :: integer(), % auto
  35. creation_date :: calendar:date_time(), % auto
  36. modify_date :: calendar:date_time() }).
  37. -record(product_category, {
  38. id :: integer(),
  39. name :: binary(),
  40. description :: binary(),
  41. parent :: undefined | integer() }).