PRAGMA foreign_keys = ON;

CREATE TABLE IF NOT EXISTS 'dolars' (
       id INTEGER PRIMARY KEY,       
       name_id INTEGER NOT NULL,
       compra REAL NOT NULL,
       venta REAL NOT NULL,
       parser TEXT NOT NULL,
       parsed TEXT NOT NULL,
       FOREIGN KEY(name_id) REFERENCES institutions(id) ON DELETE CASCADE
);

CREATE TABLE IF NOT EXISTS 'institutions' (
       id INTEGER PRIMARY KEY,
       name TEXT NOT NULL,
       short_name TEXT NOT NULL,
       created TEXT NOT NULL
);
