-- SPDX-License-Identifier: Apache-2.0

REMOVE FIELD price             ON TABLE vm_node;
REMOVE FIELD avail_vcpus       ON TABLE vm_node;
REMOVE FIELD avail_storage_mib ON TABLE vm_node;
REMOVE FIELD avail_mem_mib     ON TABLE vm_node;
UPDATE vm_node;

DEFINE TABLE vm_node_offer SCHEMAFULL;
DEFINE FIELD vm_node    ON TABLE vm_node_offer TYPE record<vm_node>;
DEFINE FIELD price      ON TABLE vm_node_offer TYPE int;
DEFINE FIELD vcpus      ON TABLE vm_node_offer TYPE int;
DEFINE FIELD memory_mib ON TABLE vm_node_offer TYPE int;
DEFINE FIELD disk_mib   ON TABLE vm_node_offer TYPE int;
