feat: features as GitHub Issues style with comments/discussion, status filter

This commit is contained in:
2026-07-14 03:25:50 +08:00
parent f277711082
commit 4d8bc848e1
3 changed files with 101 additions and 22 deletions

View File

@@ -224,6 +224,15 @@ async function initSchema(connection) {
INDEX idx_item (item_id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4`);
await createIfNotExists('feature_comments', `CREATE TABLE feature_comments (
id INT AUTO_INCREMENT PRIMARY KEY,
item_id INT NOT NULL,
user_id INT NOT NULL,
content TEXT NOT NULL,
created_at DATETIME DEFAULT CURRENT_TIMESTAMP,
INDEX idx_item (item_id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4`);
await createIfNotExists('server_groups', `CREATE TABLE server_groups (
id INT AUTO_INCREMENT PRIMARY KEY,
group_name VARCHAR(100) NOT NULL,