CREATE TABLE enrollment_codes ( id VARCHAR NOT NULL PRIMARY KEY, host_id VARCHAR NOT NULL REFERENCES hosts(id), expires TIMESTAMP NOT NULL );