Implement magic shelves with dynamic rule-based filters
This commit is contained in:
committed by
Aditya Chandel
parent
0777d473dc
commit
63518b7eb8
@@ -0,0 +1,11 @@
|
||||
CREATE TABLE magic_shelf
|
||||
(
|
||||
id BIGINT AUTO_INCREMENT PRIMARY KEY,
|
||||
user_id BIGINT NOT NULL,
|
||||
name VARCHAR(255) NOT NULL,
|
||||
icon VARCHAR(64) NOT NULL,
|
||||
filter_json JSON NOT NULL,
|
||||
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
|
||||
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||
UNIQUE KEY uq_user_name (user_id, name)
|
||||
);
|
||||
Reference in New Issue
Block a user