SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";


CREATE DATABASE `fusioninventory` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
USE `fusioninventory`;


CREATE TABLE IF NOT EXISTS `fusion_criterias` (
  `internal_id` int(50) NOT NULL,
  `motherboard_serial` varchar(255) DEFAULT NULL,
  `asset_tag` varchar(255) DEFAULT NULL,
  `msn` varchar(255) DEFAULT NULL,
  `ssn` varchar(255) DEFAULT NULL,
  `baseboard_serial` varchar(255) DEFAULT NULL,
  `mac_address` varchar(255) DEFAULT NULL,
  `uuid` varchar(255) DEFAULT NULL,
  `win_prod_key` varchar(255) DEFAULT NULL,
  `bios_serial` varchar(255) DEFAULT NULL,
  `enclosure_serial` varchar(255) DEFAULT NULL,
  `smodel` varchar(255) DEFAULT NULL,
  `storages_serial` varchar(255) DEFAULT NULL,
  `drives_serial` varchar(255) DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`internal_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;


CREATE TABLE IF NOT EXISTS `fusion_serialization` (
  `internal_id` int(50) NOT NULL,
  `external_id` int(50) DEFAULT NULL,
  `serialized_sections` longtext,
  `hash` varchar(128) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`internal_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
