CREATE TABLE IF NOT EXISTS tags (
  id INTEGER PRIMARY KEY,
  tagName TEXT,
  vanityName TEXT,
  description TEXT,
  units TEXT,
  minExpected REAL,
  maxExpected REAL,
  dateAdded TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
  deleted INTEGER DEFAULT 0
);

CREATE TABLE IF NOT EXISTS vals (
  id INTEGER PRIMARY KEY,
  tagID INTEGER,
  val REAL,
  dateAdded TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);

CREATE TABLE IF NOT EXISTS config (
  id INTEGER PRIMARY KEY,
  parameter TEXT,
  val TEXT,
  dateAdded TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);
