products.hrl 1.5 KB

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