-- hosts: physical or virtual machines belonging to a network.
CREATE TABLE IF NOT EXISTS hosts (
    id         BIGSERIAL PRIMARY KEY,
    name       TEXT   NOT NULL,
    ip         TEXT   NOT NULL,
    network_id BIGINT NOT NULL REFERENCES networks(id) ON DELETE CASCADE
);
