๐ 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_idafter invited by Invitor. - Product Item Member: Each item will linked to the
idt_member_id(Invitee) andidt_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.