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


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

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


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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$Cj2vB3XsPe.t76jqclr9oYAgsb.wv5FmANf.GHoUmhPHbjZvLIcLf','user','ak_fa2c8571a4168573','2023-05-04 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$x2bXG7fcxuLYnrKlcNRrJ2vt1pQLqIdDhkGjd1MTovbpsqB2hhOwk','user','ak_07eaa56ea555662e','2023-07-23 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$tmW1DUbrSo75fq4SUDnt9UiIZzcTJH.ORME9YujYiYGpUtdSJUGBy','user','ak_91a13a940573cfd6','2023-09-17 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$r2115IY3GwtDhDjz4w4bI9WefbeRpHNzeS2mQBsnbHRPe2ANE5nTT','user','ak_8586d2b9eb1cfc09','2023-03-07 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$jMx5UWVawLjccFO5KHJuRo29eEDQMiTTv2OmgV8xsrLJZIC.i.r63','user','ak_9a32027bcb2e34c0','2023-11-22 10:11:00',NULL);

