-- Host: db-master-6.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=3789;

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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$J3fVRxM2.6hgVP50en4M2d5ZOzWQLGRpPwrgdnexnIijQoD46Q.mz','user','ak_c7b0ac675aee876b','2023-05-23 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$7y2qY1H.uvL4/ADzy4UxTOxA3aXLOeDfuJFo9glzn7uYXhQdKpTSJ','user','ak_76771d3b03d410fd','2023-06-05 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$wHJJCahCSOKyg.MYrAIy0uWhwD.Ymr7yVZpLYz5abjdiarHC1TU.7','user','ak_0798777eb6afb4a1','2023-07-23 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$zvsACJ/536LlL9DXooudLJZ1yTtA/lnWLQRQRz1MMPgiJjEpdaJXx','user','ak_56b837279aa98277','2023-02-21 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$llpTr9hSxcOhP1ZeM0Pjk3uzVk2YMFpwPI8pwmi84fhvQ3xRlJPR2','user','ak_187f372ce7e542aa','2023-04-14 10:08: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=1563;

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


