products.hrl 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. brief,
  28. description,
  29. title_picture,
  30. publish_start_date :: calendar:date_time(), % admin
  31. publish_end_date :: calendar:date_time(), % admin
  32. currency,
  33. price,
  34. version,
  35. file,
  36. retailer_price :: integer(), % ext
  37. our_price :: integer(), % auto
  38. enabled_on_site :: boolean(), % admin
  39. creation_date :: calendar:date_time(), % auto
  40. modify_date :: calendar:date_time() }).
  41. -record(product_category, {
  42. id :: integer(),
  43. name :: binary(),
  44. description :: binary(),
  45. parent :: undefined | integer() }).