products.hrl 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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,
  17. ext_id :: term(), % ext
  18. name :: string(), % name
  19. display_name :: binary(), % admin (based on ext)
  20. ext_name :: binary(), % ext
  21. vendor_id :: integer(), % auto
  22. categories :: list(integer()), % admin
  23. creator,
  24. owner,
  25. feed,
  26. title,
  27. description,
  28. description_short :: binary(), % admin (based on ext)
  29. description_long :: binary(), % admin (based on ext)
  30. image_small_url :: binary(), % admin (based on ext)
  31. image_big_url :: binary(), % admin (based on ext)
  32. publish_start_date :: calendar:date_time(), % admin
  33. publish_end_date :: calendar:date_time(), % admin
  34. price,
  35. retailer_price :: integer(), % ext
  36. our_price :: integer(), % auto
  37. enabled_on_site :: boolean(), % admin
  38. creation_date :: calendar:date_time(), % auto
  39. modify_date :: calendar:date_time() }).
  40. -record(product_category, {
  41. id :: integer(),
  42. name :: binary(),
  43. description :: binary(),
  44. parent :: undefined | integer() }).