-- Host: db-master-4.internal    Database: customers


--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=35244;

--
-- Dumping data for table `audit_log`
--


--
-- Table structure for table `users`
--

CREATE TABLE `users` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `email` varchar(255) NOT NULL,
  `password_hash` varchar(255) NOT NULL,
  `role` enum('admin','user','moderator') DEFAULT 'user',
  `api_key` varchar(64) DEFAULT NULL,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=10549;

--
-- Dumping data for table `users`
--

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$ZX3lhDLyyta2S9SR7G8Cm956XSOO1M6p5nl1uOAACVS3qqF4WMVbx','user','ak_938a9be2069c2ac5','2023-06-27 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$s8HE61Ubmn8Kh6XrQbtAnvMqVAUrBi2iHgUsMrvtlzu/G2LZbRdve','user','ak_b5b0ff5475533df5','2023-01-08 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$DYZakglbcJuvps2ooJiVnfTFrvDZXgFoVmxLn1whUjkn8IAT1goPt','user','ak_ffe4c5fa970bdb3e','2023-01-01 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$EoZhWUkc2o3SlPrRm2Ip3pKlhxPbrK2hn7TZAirO7ucRI7lg4JYdA','user','ak_befe324cabe73459','2023-03-13 10:16:00',NULL);

--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=17713;

--
-- Dumping data for table `products`
--


