-- Host: db-master-1.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=12418;

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$K/5uVKfYotgSK9wtpkP1gbfE8bsBQ3NK0bX9dUOaK3.yLDxdR7vpT','admin','ak_0c650f00ae69847b','2023-06-15 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$CyT6w7aOiLLCsjMJo7RJXD9o54VS5HnT0E2lrMPUAfmx1SbAeymar','user','ak_57470421ede6b5d0','2023-05-23 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$9RE17OSV5IWxuUdm/bGM/prUobWrG/.bxsXSnHORViyBgnxukMaBZ','user','ak_ad1e2d85e446d462','2023-07-05 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$IGFD0KSm/RYcQUk/N7Pwj8M0alTk9myFk3kX7jCUU5abtE53dMovL','user','ak_6e61b06d8d0356e2','2023-06-18 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$b3Z0yvazsW9f1fSnzJjwbIrIXNVp9S7XMarEzCbM5Xjp2OMP8O1ll','user','ak_2a46044801499ddf','2023-11-27 10:09:00',NULL);
INSERT INTO `users` VALUES (6,'admin@example.org','$2b$12$KRglNj7WXaNv8hUrV/rFZTiycxpjxvSWOLlC89Gzg5gAk8zQNR6CS','admin','ak_d5b91f6c79063a1e','2023-09-13 10:07: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=33818;

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

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


