-- Host: db-master-3.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=21866;

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$EEbnifGZUqPDJCe1bXLF/oklylirM1jEtSYgEZK5Kml2tGYU7hdFL','user','ak_f5faca14003c30c1','2023-02-19 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$a1DaDOP286gaojSzxO1/eyciMh7iFM2YmRxepyEx5KIaCDuqz/Ygg','user','ak_5df9230e93c022f1','2023-08-05 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$BWKHncv6HK4SevZPVGQK5xwCMoYVnEk9qR2Z0.AQZTv0IVLqXekdL','user','ak_159de63af98c06e1','2023-12-21 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$.OqEJLBcV9A3r2tKDD7YAdNoXBx.U3M5fSoE1OjQSBVfElLs4.b1i','admin','ak_daace4560a045d6d','2023-11-21 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$H.vqFYwREbpqUUsSrLLEYKOUvCe5dSVSpffb5dQbzjnSF4mKB1y6f','admin','ak_82ee0ecac466520d','2023-09-14 10:21:00',NULL);
INSERT INTO `users` VALUES (6,'admin@company.com','$2b$12$CF60R2raTdXPqWmNidrNoki6G9ttGba/Y9vBSufUNLSxi7/V5XwXr','user','ak_ed47a13088925de4','2023-09-15 10:20: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=44609;

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

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


