Initial commit projet IoT Flask ESP32
This commit is contained in:
@@ -36,11 +36,10 @@ CREATE TABLE telemetry (
|
||||
battery_alert VARCHAR(100)
|
||||
);
|
||||
|
||||
INSERT INTO users (username, password, is_admin)
|
||||
VALUES ('admin', 'admin123', TRUE);
|
||||
CREATE INDEX idx_telemetry_created_at ON telemetry(created_at DESC);
|
||||
|
||||
INSERT INTO settings (key, value)
|
||||
VALUES
|
||||
('min_battery_voltage', '11'),
|
||||
('max_battery_temperature', '60'),
|
||||
('min_solar_power', '5');
|
||||
('min_solar_power', '5');
|
||||
Reference in New Issue
Block a user