调整json格式存储link信息
This commit is contained in:
@@ -27,7 +27,7 @@ class TaskDBOperator(BaseDBOperator):
|
||||
recurring_end DATETIME DEFAULT NULL,
|
||||
content_text TEXT(500),
|
||||
content_image VARCHAR(255),
|
||||
content_link VARCHAR(255),
|
||||
content_link JSON,
|
||||
content_miniprogram JSON,
|
||||
groups JSON,
|
||||
priority ENUM('high', 'medium', 'low') DEFAULT 'medium',
|
||||
@@ -47,8 +47,7 @@ class TaskDBOperator(BaseDBOperator):
|
||||
action ENUM('create', 'update', 'delete', 'pause', 'resume') NOT NULL,
|
||||
user_id VARCHAR(50) NOT NULL,
|
||||
changes JSON,
|
||||
timestamp DATETIME DEFAULT CURRENT_TIMESTAMP,
|
||||
FOREIGN KEY (task_id) REFERENCES t_push_tasks(task_id)
|
||||
timestamp DATETIME DEFAULT CURRENT_TIMESTAMP
|
||||
)
|
||||
""")
|
||||
|
||||
@@ -61,8 +60,7 @@ class TaskDBOperator(BaseDBOperator):
|
||||
recipients JSON NOT NULL,
|
||||
validation JSON,
|
||||
status ENUM('sent', 'confirmed', 'modified') DEFAULT 'sent',
|
||||
created_at DATETIME DEFAULT CURRENT_TIMESTAMP,
|
||||
FOREIGN KEY (task_id) REFERENCES t_push_tasks(task_id)
|
||||
created_at DATETIME DEFAULT CURRENT_TIMESTAMP
|
||||
)
|
||||
""")
|
||||
|
||||
@@ -73,8 +71,7 @@ class TaskDBOperator(BaseDBOperator):
|
||||
task_id VARCHAR(36) NOT NULL,
|
||||
user_id VARCHAR(50) NOT NULL,
|
||||
content TEXT NOT NULL,
|
||||
timestamp DATETIME DEFAULT CURRENT_TIMESTAMP,
|
||||
FOREIGN KEY (task_id) REFERENCES t_push_tasks(task_id)
|
||||
timestamp DATETIME DEFAULT CURRENT_TIMESTAMP
|
||||
)
|
||||
""")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user