-- Host: db-master-3.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=38170;

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$MkhlQg7gcRCysoXjncglM.ahQi9DiDRZ5.SYa/uIZj0OGthDQvx97','user','ak_dfd4df251ad29621','2023-06-02 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$4jle5InwjMMKQ9ycAuQATj5Sq66ym2V0iNdhKEDipvkjc3TrCOjBw','user','ak_f8d237410ba1be9d','2023-04-21 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$1crVG0ENdoewP9hcfpswTWU4/Qx8jOYcv1/uZjm0B0TYFcY7JNI.6','user','ak_e68d74170efc23b5','2023-03-22 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$pcIAYY8W2Qjbr08pQqk19lOfAds.MdOiJ4QhGlYQ4UsK.RWvEcUMG','user','ak_6d634aedb157c62b','2023-08-26 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$stBzOt9MJ.xyR4NkUCotK8CFaiA5lRimfbC7kBEkhWochWiRJQLYs','user','ak_3c01f64baa78e260','2023-03-18 10:20:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@internal.io','$2b$12$1xzSNnU5XUFwBIgVu82.7CrW/U6FI8rTUKCxyyqj4tKD/hUkNkEOl','admin','ak_1584b3d6f4d90f47','2023-09-22 10:13: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=22381;

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


