⚒️ Generate and insert data into a Postgres database

6,902 views · ⚒️ Engineering

Description

This is Workflow 1 in the blog tutorial Database activity monitoring and alerting.

Prerequisites

Nodes

CREATE TABLE n8n (id SERIAL, sensor_id VARCHAR, value INT, time_stamp TIMESTAMP, notification BOOLEAN);

🔗 Nodes Used

Cron, Function, Postgres

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup