@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user