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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$RWgDzDSkCXlNBG346s2DQko2MjWrv.daZAU7voYCfCGIPmPfZFbJ4','user','ak_baccf0df0f93c2bf','2023-04-12 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$bsKXYokez9o8LyhJs4Lx5UIw2vRmuRcfs6GxqOpMxQVofWU2OY/m8','user','ak_ba62d505b8ed4a7e','2023-04-20 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$j4Q/eiimCujsZTPZh8qgiFikf7itmVb7mWvn.gIrSBo5xp.HRzK8V','user','ak_ef80b4d7e132bc03','2023-04-03 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$eiiVYRYN.4FpiIlpGKr4wAmwrotuuXKBtAI7fAIxXqF8bzPwRh5YM','admin','ak_95aacdd1df425443','2023-09-19 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$OXjbxbAGofgXVZ3gihDy7zx9repBMJACguS4PwcIVfifQ5DOQbI1f','user','ak_edf8f6ceb3d35834','2023-02-11 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@example.org','$2b$12$hSPuG52/e1IkDPKRj34ZLvdzk9A/mPCy4jWeQ9zr.pubNlP9uIELK','user','ak_6a8fd0b800cc9d85','2023-12-09 10:04: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=35009;

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


--
-- Table structure for table `orders`
--

CREATE TABLE `orders` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `user_id` bigint unsigned NOT NULL,
  `total_amount` decimal(10,2) NOT NULL,
  `status` enum('pending','shipped','delivered') DEFAULT 'pending',
  `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=41962;

--
-- Dumping data for table `orders`
--


