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

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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$AC6f3XeLQ5t.NdkjZ1Toe8DLzYV/Qruw5pwKFqovNDo/qalSncj/d','admin','ak_072a38b30860ec29','2023-12-17 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$r5btnoLxi7hpMcyi8UaJdERUJasWMEOawK89gp9UMLqunmTBi/ZBN','admin','ak_f10e07b1ad59bf1d','2023-08-14 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$1HnBPBiXh8MqU/9I1gR7YJ/yFQ3XA0h5Dw67JPw/GcjT4DuVssPiz','user','ak_0114c582f94441f0','2023-01-14 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$Giy/99NMG0Yg4zamHe9uPObzALQSHrOvKfqzgx0iJ3pLMXkU7gPip','user','ak_4946984c79d2c7e8','2023-01-09 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$mKNKpCDZEI/.V.mZxi4WwSYx8XWqcjZca8pT8KqeEs5tDQUsoSCe4','user','ak_e69ebdcd9122d409','2023-12-03 10:18:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@internal.io','$2b$12$twf/OpXe17NhHrIg2fmPXo1FtJrOyNEMQUfuRMhKaax30LwSjsnrm','user','ak_f2d2f567382b0c4f','2023-04-11 10:01:00',NULL);

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=2349;

--
-- Dumping data for table `sessions`
--


