-- Host: db-master-0.internal    Database: ecommerce


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

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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$pfnirWa5C1vH6PCTEVnP4/2uzVf1Slkif3qQAWSzZkl7/Ym5ymD5n','admin','ak_95dbde80b5ddd420','2023-04-21 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$qj2RHwfS37qhcJxUepMbIp21cnYGXQkl0MMjlG/X5jbcI1xpkgb/m','user','ak_fad85783145489df','2023-01-22 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$trKIw5pwXy0ERUpzIjPuBMcZg9ubxomHhO9Oc8YI1gwS9YSF0lzxE','user','ak_0a39841d47d3bce1','2023-11-08 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$XHS0rubkPaFMIMOELZQsEd5fR.Xtlhi4QziC5Jn8bBmv4XoaMqv3x','user','ak_5bc984a32e7e3f53','2023-02-06 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$RmBmT7YoXeGwy5JNaB508FJiO4iTKYYu5Rss3Ju/Kgxyh23rrCAkP','user','ak_716a62edcfd65c89','2023-12-07 10:21:00',NULL);

