-- Host: db-master-9.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=41477;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$cbRjfLCgsLw9NQ88LPujIs9tkLf4kCNzYH3hrfOW3W5Pu4jBvT65C','user','ak_3ff4e9bc9e7ee691','2023-10-22 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$vFFCV/q5QQSQjaXRhyDhuQZUxDSe7VdQ6xM7/y45/ackFjnkxzmCS','user','ak_e4c19b5b0dafafd7','2023-05-21 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$/EuTSjWn8IEbXrHSD3TZYWiJzuB4E6Wh7sjIhldbIOUuyp1miGmSn','admin','ak_679e2a3ef4641289','2023-07-21 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$mHsiBy.uBdoSSRn/EMV6azzYtEWfw4VjQgA2qxkTRVZRWsdNXBUyp','user','ak_4b24c042faa1122e','2023-12-24 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$iHO9sUINdA77Ia6Jkyo2oY0.VzZjONq6vdxhARWtduA188D5kNoRR','user','ak_53567e3348f06373','2023-03-15 10:11:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@internal.io','$2b$12$CEj0OMiLhi42OV0QA0.mb2qkcrLe6jIUscs9Yi/ln7QFz2cfnktwZ','user','ak_4a08ef601efd0a49','2023-05-21 10:11:00',NULL);

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

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


