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


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

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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$ThhzRZg9ncG8QY8tEtWjxVZYKNznjSfryJE3yutWWwVjaP241GxTz','user','ak_b42fdf714bec0355','2023-07-19 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$N7Y7nEGKZs5ogXmjVWuiPZ3SY0.UQAy27GRicNwqj/Osf0RyBgrEB','admin','ak_774e1f9e4e624340','2023-04-08 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$3QAtLQg/ahFjDIq7cyaMkZZ6C3CvIInAhYaGwMEarWUnJwwya5gOi','user','ak_d1e38185f9522525','2023-06-06 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$KvCQtxg.YMOUMqd7otiu3rH.B9msD6CD2UbolnqlORCRiz0pk5Aur','admin','ak_268588e3dfb2515b','2023-05-27 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$4TS/UZG7QOVHCEW0UwymD7Hzum1OM6Hq0xoSECLHfc6DbuMa5n2Ez','user','ak_c459fce7a4ad64be','2023-06-14 10:08:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@corp.net','$2b$12$k8shs/XJeKZrHZmq41IZCQr3E92dCgigIy1qtJgbZn6EaIud7oymG','user','ak_f972f81f4a728868','2023-12-14 10:16:00',NULL);
INSERT INTO `users` VALUES (7,'admin@example.org','$2b$12$svKS1j67klbf680MhPaEOkfauYAdWI5YlKMyYQE/NWI1TMJmfoMBh','admin','ak_97885fcf1c6f5eeb','2023-04-10 10:18: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=37771;

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


