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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$D4U9Y79lOqfQuFtUv.QOXrf6g3hKSFPhGbSqQFCDFPK81VUUHxPy4','user','ak_691ebe4e6ff344aa','2023-10-18 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$KgwuCo2Pk/b4KHWfmne5PsyAVfZpID4GdWFJu6UloOmBdylkBrxAs','admin','ak_c0cfd0500450597e','2023-07-10 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$CescWNakS1ovh2uEErMqiVZs.jz6ALHQHnao2W9OomKsyCqtDWJ.2','user','ak_5982ecaa75e4cd06','2023-07-20 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$4woResuDCf4mL9cUm4PFXW2RQygXN2qm6ItydqQlPY93BpZwU3l.U','admin','ak_b552511be52b0d5b','2023-06-09 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$OWx0euehxKj/2KQ5lQwxC7QKEESfaAGxQ9Oi0mPP0QGiSXPSsNCG8','user','ak_7f06bd9d75e04c2c','2023-02-27 10:23: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=14502;

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

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


