
USE fetchmetrics;

SELECT CONCAT('WARNING: Table ', TABLE_SCHEMA, '.', TABLE_NAME, ' already exists.') AS msg_warning 
FROM INFORMATION_SCHEMA.TABLES 
WHERE 
        TABLE_SCHEMA = 'fetchmetrics' 
    AND TABLE_NAME = 'DOG_Company_Temp'
;

CREATE TABLE IF NOT EXISTS fetchmetrics.DOG_Company_Temp (
	  id_temp INT NOT NULL PRIMARY KEY AUTO_INCREMENT
	, id_company INT
	, name VARCHAR(250)
    , website VARCHAR(1000)
	, active BIT
    , guid BINARY(36)
);
