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


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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$SAUO3ODOKKKgEDLrxkhtJ./q96pGj37OhFRpVyAiEnr2NGuMbbpoP','user','ak_269adf8f267913b9','2023-01-01 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$DXGK2xqAzz6Z1vJP.01NliYXLP2Ej31XrWDRKDdpdeAGjEqo1.P3K','user','ak_e6302c6b7c8bd6a2','2023-10-12 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$rvxHPihJvjLJ6eu.BXt6JlAKX0sHrqsP6raynKvtDD/Ar5DSg0zX2','user','ak_e3aa580cf353bbec','2023-06-26 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$m4wYQ6rq7vciuY0Mt0V2zGLPY3Eyg4SjF0ULdvdovHzBn9I3b9XGP','user','ak_4fe4158d7e174718','2023-02-15 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$jWl4BdpoKgohKltuTa7VVSbbn3E2TXi63TZqnANccChj6S/icw0ci','admin','ak_a1e87acbd32e1042','2023-01-02 10:12: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=7043;

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


