DROP TABLE IF EXISTS object;
DROP TABLE IF EXISTS calibration;

CREATE TABLE calibration (
    id INTEGER PRIMARY KEY AUTOINCREMENT,
    state INTEGER NOT NULL
);

CREATE TABLE object (
    id INTEGER PRIMARY KEY AUTOINCREMENT,
    name TEXT NOT NULL,
    calibration_id INTEGER,
    CONSTRAINT fk_calibration FOREIGN KEY(calibration_id) REFERENCES calibration(id)
);
