-- released_at is when maxmind released this data
CREATE TABLE max_mind_releases (
  id VARCHAR(64)  PRIMARY KEY DEFAULT uuid_generate_v4(),
  released_at     DATE,
  geo_ip_124_url  VARCHAR(2000),
  geo_ip_124_md5  VARCHAR(255),
  geo_ip_124_size INTEGER,
  geo_ip_134_url  VARCHAR(2000),
  geo_ip_134_md5  VARCHAR(255),
  geo_ip_134_size INTEGER,
  geo_ip_139_url  VARCHAR(2000),
  geo_ip_139_md5  VARCHAR(255),
  geo_ip_139_size INTEGER,
  geo_ip_142_url  VARCHAR(2000),
  geo_ip_142_md5  VARCHAR(255),
  geo_ip_142_size INTEGER,
  created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
  updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
);

-- the 1st available release
INSERT INTO max_mind_releases VALUES (DEFAULT, DATE '2014-07-01',
'maxmind/2014-07-01/GeoIP-124_20140701.zip', '93430c4b34b366030054a97c1b595f6f', 1997587,
'maxmind/2014-07-01/GeoIP-134_20140701.zip', '893c8674656271dac4964d5a56325203', 48198205,
'maxmind/2014-07-01/GeoIP-139_20140701.zip', '8487b681cc14ea9f603b52db5763a77a', 62399148,
'maxmind/2014-07-01/GeoIP-142_20140701.zip', '2fb4288fa3004ad68a06388f716e4ee5', 2265920,
DEFAULT, DEFAULT);