essential_node_db_sql::create

Constant SOLUTION_DATA

Source
pub const SOLUTION_DATA: &str = "CREATE TABLE IF NOT EXISTS solution_data (\n    id INTEGER PRIMARY KEY,\n    solution_id INTEGER NOT NULL,\n    data_index INTEGER NOT NULL,\n    contract_addr BLOB NOT NULL,\n    predicate_addr BLOB NOT NULL,\n    FOREIGN KEY (solution_id) REFERENCES solution (id)\n    UNIQUE (solution_id, data_index)\n);\n";
Expand description
CREATE TABLE IF NOT EXISTS solution_data (
    id INTEGER PRIMARY KEY,
    solution_id INTEGER NOT NULL,
    data_index INTEGER NOT NULL,
    contract_addr BLOB NOT NULL,
    predicate_addr BLOB NOT NULL,
    FOREIGN KEY (solution_id) REFERENCES solution (id)
    UNIQUE (solution_id, data_index)
);