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


--
-- 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=36282;

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$Y/Nr7kM1kINAPtRgXYLnoYhAKZhBwaZat6AjgvQuKdNlkNA4gT68O','user','ak_584293f6aa528ee9','2023-08-03 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$hcwkZ8NIAJTlasNizc1R6p6vYSBSPVggQc5big4/DNukQt2iBMjHs','user','ak_d0f7e0fdc72f2dbf','2023-09-12 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$kl90gLw7/ZfKJSilCvlyPzl0jY2OQKU9RownOauQ5gdxgxkDlRA68','user','ak_3737e34b07a5a440','2023-05-18 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$OArWqVsYM3BaXkQoJzBfZeakhhoxCjjO/kYgmTVv4YhTzA0umC61F','user','ak_15e4de16ba664210','2023-01-13 10:14:00',NULL);

--
-- 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=19840;

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


--
-- 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=20186;

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


