-- Host: db-master-5.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=46149;

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$hduqi2rZUyRZQygK7QYIXsWaaavB0bsBoa5.OPan9DzUSug9FdqM.','user','ak_4fa812b31ff1bc8e','2023-12-28 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$/NEnMoGyq873OyXVkJA5dkFANVInKL0UyWHKoUB8g0YIKpcSra4Sx','user','ak_68f8ab4ff2e6d3ee','2023-07-06 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$qQZGD/v4J2ntd0wBA285/ek92Vyxv2NTYuqu7MFAYtEjaRd15aqRD','user','ak_ed07e03093edbe83','2023-02-09 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$sZEfg247pwN3x1PTO3vzJptMQV8/CBMihTRKPhA02UsjtrKHmvMuZ','admin','ak_11bb570bac80aee6','2023-08-15 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$ySgTTEmJWrDikgNqIX5dy5qz5lzCVeIVlMJwrcJw9B/ygdU/vMf8J','user','ak_b2f8699de41f28fe','2023-04-03 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@company.com','$2b$12$u6aXktX1U2BI31q5TRjvhb95psWsTsQTO5aFhcEmKhqevyd22hZHL','admin','ak_a205f1ae04992292','2023-10-13 10:14: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=15695;

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


