Skip to content

๐Ÿ“ Product Item Documentation

Product Items

Product Item Entity

The following properties are defined for the product_items table:

Name Type Description Unique Required
id INT Primary key, unique template ID โœ… โœ…
product_name String Name of the product item โŒ โœ…
product_description String Description of the product item โŒ โŒ
product_image String Image of the product item โŒ โŒ
product_price Decimal Price of the product item (Default: 0) โŒ โœ…
currency_id INT Foreign key from Currency table โŒ โœ…
sort_order INT Sort order of the product item (Default: 0) โŒ โœ…
is_active Boolean Indicates if the product item is active (Default: true) โŒ โœ…
is_highlight Boolean Indicates if the product item is highlighted (Default: true) โŒ โœ…
is_public Boolean Indicates if the product item is public (Default: true) โŒ โœ…
code String Shareable code, can be regenerated โŒ โŒ
start DateTime The start date of the product item โŒ โŒ
end DateTime The end date of the product item โŒ โŒ
user_id INT Foreign key from User table, indicating the creator โŒ โœ…
created_at DateTime Timestamp when the record was created โŒ โœ…
updated_at DateTime Timestamp when the record was last updated โŒ โœ…

Product Item Membership Entity

The following properties are defined for the product_item_member table:

Name Type Description Unique Required
id INT Primary key, unique submission ID โœ… โœ…
product_item_id INT Foreign key from product item table โŒ โœ…
idt_member_id INT Foreign key from Member table (Invitee) โŒ โœ…
idt_member_referral_id INT Foreign key from User table (Invitor) from Member Referral โŒ โŒ
user_id INT Foreign key from User table, who create this record โŒ โœ…
created_at DateTime Timestamp when the record was created โŒ โœ…
updated_at DateTime Timestamp when the record was last updated โŒ โœ…

Invited Member:

  • Invited Membership: Each member will have idt_member_id after invited by Invitor.
  • Product Item Member: Each item will linked to the idt_member_id (Invitee) and idt_member_referral_id (Invitor).

Notification:

  • Member will received a notification trough WhatsApp/Email with pre-filled link to the Product Item detail/status.
  • Pre-filled link will direct Invited Member (Invitee) to the Product Item detail/status using their data (without login).

Notes

  • Unique: Ensures the uniqueness of the values entered into a property of a database table.
  • Required: Ensures that the values entered into a property of a database table cannot be NULL.