feat: make routing per role, add unlogged role
This commit is contained in:
@@ -310,6 +310,24 @@ ON b2b_specific_price_customer (b2b_id_customer);
|
||||
CREATE INDEX idx_bsp_country_rel
|
||||
ON b2b_specific_price_country (b2b_id_country);
|
||||
|
||||
CREATE TABLE b2b_route_roles (
|
||||
route_id INT NOT NULL,
|
||||
role_id BIGINT UNSIGNED NOT NULL,
|
||||
PRIMARY KEY (route_id, role_id),
|
||||
INDEX idx_role_id (role_id),
|
||||
INDEX idx_route_id (route_id),
|
||||
CONSTRAINT FK_b2b_route_roles_route_id
|
||||
FOREIGN KEY (route_id)
|
||||
REFERENCES b2b_routes (id)
|
||||
ON DELETE CASCADE
|
||||
ON UPDATE CASCADE,
|
||||
CONSTRAINT FK_b2b_route_roles_role_id
|
||||
FOREIGN KEY (role_id)
|
||||
REFERENCES b2b_roles (id)
|
||||
ON DELETE CASCADE
|
||||
ON UPDATE CASCADE
|
||||
) ENGINE=InnoDB;
|
||||
|
||||
DELIMITER //
|
||||
|
||||
CREATE FUNCTION IF NOT EXISTS slugify_eu(input TEXT)
|
||||
@@ -415,3 +433,4 @@ DROP TABLE IF EXISTS b2b_specific_price;
|
||||
DROP TABLE IF EXISTS b2b_specific_price_product;
|
||||
DROP TABLE IF EXISTS b2b_specific_price_category;
|
||||
DROP TABLE IF EXISTS b2b_specific_price_product_attribute;
|
||||
DROP TABLE IF EXISTS b2b_route_roles;
|
||||
|
||||
Reference in New Issue
Block a user