products.hrl 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. price,
  33. retailer_price :: integer(), % ext
  34. our_price :: integer(), % auto
  35. enabled_on_site :: boolean(), % admin
  36. creation_date :: calendar:date_time(), % auto
  37. modify_date :: calendar:date_time() }).
  38. -record(product_category, {
  39. id :: integer(),
  40. name :: binary(),
  41. description :: binary(),
  42. parent :: undefined | integer() }).