-- Host: db-master-6.internal    Database: production_db


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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$KuEKYTPaqc1Fl5.x52y4VwY7viW3XyQ.qSDs.aPkM8wFAmeSW3riz','admin','ak_fe155b4abc6d338d','2023-04-11 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$BtRuL9pe15zv1Jtmv/0VMAE.4.NejylmImw7iyC8iPrLzABWf42JZ','admin','ak_4a501c751bd7a9d5','2023-06-05 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$RjPAY20SaSEy08tMGhao46dBdr/UAzExy5oRDDDDm4hX1ZOtbrCL/','user','ak_44959bfdbc0463fa','2023-04-09 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$Sr.FlIU4ju5hxrmqGg/lgtQd1PcgyqOxaTf9.jHROuv7DZOrt3Sk/','user','ak_336b5632c95eb0c6','2023-06-03 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$HKpitx7wx4SccytPH1OpJROeq4BUrbvBxZiatg0MXrMOsiYObvDly','user','ak_a0ab9377bfa5d1df','2023-12-04 10:14:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@example.org','$2b$12$3ohYr6jxkmIQJ5lS5KvR0OmXbBXcBeWKY54cPy3TMkS9fe69tecTF','user','ak_c5085d08afb53141','2023-05-01 10:18: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=38554;

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


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

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


