📦 Magento_ProductAlert · engine innodb
product_alert_stock
Product Alert Stock
Neighbourhood (1-hop foreign-key graph — showing 4 of 4)
flowchart LR c["product_alert_stock"]:::center n0["store_website"] click n0 "/schema/table/store_website" n0 -- website_id --> c n1["customer_entity"] click n1 "/schema/table/customer_entity" n1 -- customer_id --> c n2["catalog_product_entity"] click n2 "/schema/table/catalog_product_entity" n2 -- product_id --> c n3["store"] click n3 "/schema/table/store" n3 -- store_id --> c click c "/schema/table/product_alert_stock" classDef center fill:#eef2ff,stroke:#6366f1,color:#3730a3,stroke-width:1.5px
Click a node to jump to that table.
Related tables (4)
Columns (9)
| Name | Type | Null | Default | Comment |
|---|---|---|---|---|
| alert_stock_id PK | int unsigned | no | Product alert stock ID | |
| customer_id | int unsigned | no | 0 | Customer ID |
| product_id | int unsigned | no | 0 | Product ID |
| website_id | smallint unsigned | no | 0 | Website ID |
| store_id | smallint unsigned | yes | 0 | Store ID |
| add_date | timestamp | no | CURRENT_TIMESTAMP | Product alert add date |
| send_date | timestamp | yes | Product alert send date | |
| send_count | smallint unsigned | no | 0 | Send Count |
| status | smallint unsigned | no | 0 | Product alert status |
Keys & indexes
Primary key: alert_stock_id
Indexes
- PRODUCT_ALERT_STOCK_CUSTOMER_ID (customer_id) btree
- PRODUCT_ALERT_STOCK_PRODUCT_ID (product_id) btree
- PRODUCT_ALERT_STOCK_WEBSITE_ID (website_id) btree
- PRODUCT_ALERT_STOCK_STORE_ID (store_id) btree
References (4)
- website_id → store_website .website_id (on delete CASCADE)
- customer_id → customer_entity .entity_id (on delete CASCADE)
- product_id → catalog_product_entity .entity_id (on delete CASCADE)
- store_id → store .store_id (on delete CASCADE)