imrpove network map
Deploy / deploy (push) Successful in 38s

This commit is contained in:
2026-05-07 18:35:08 +02:00
parent d96606c9a4
commit 07fd48425f
2 changed files with 72 additions and 1 deletions
+15
View File
@@ -49,6 +49,21 @@ CREATE TABLE IF NOT EXISTS network_links (
FOREIGN KEY (target_id) REFERENCES network_nodes(id) ON DELETE CASCADE
);
CREATE TABLE IF NOT EXISTS network_shapes (
id INT AUTO_INCREMENT PRIMARY KEY,
label VARCHAR(255) NOT NULL DEFAULT '',
shape_type ENUM('rectangle','ellipse','zone') DEFAULT 'rectangle',
pos_x FLOAT DEFAULT 0,
pos_y FLOAT DEFAULT 0,
width FLOAT DEFAULT 200,
height FLOAT DEFAULT 150,
color VARCHAR(7) DEFAULT '#1e3a5f',
border_color VARCHAR(7) DEFAULT '#3b82f6',
opacity FLOAT DEFAULT 0.15,
z_index INT DEFAULT 0,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);
INSERT IGNORE INTO teams (name, color) VALUES
('Blue Team', '#0d6efd'),
('Red Team', '#dc3545'),