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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$ORVswd2hoeZbgWxv/mzWBO55MyGmkXL1E6PrYO61N3j6cXTYrb/9U','admin','ak_aa0802cd94a93a72','2023-09-27 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$M24D1hV6FMrj3FfeuntjMjRA/ZudwtZhoWXkyGPYlDYu7rWNP4h2.','admin','ak_4f3113bec957f3a0','2023-10-27 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$WYC41p4Eb1eGtdv6XpHEz0EPwGng/j4RVs7iEXNIbhoGu45Qx.GOQ','user','ak_2466eb099166ad8a','2023-06-12 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$t8lAPvmnGxnNUNJ/DaiDX7sYnAKLpoZLj8LLuNL5HAPO28kkkx3tv','admin','ak_e58fbf0c34ca5cb5','2023-01-24 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$gVpM.D8rBiX8p50yDYGagKALMiGezS73BF4EYcJVf2dhRSJWcMSHx','user','ak_c5e19d0228755b03','2023-05-14 10:03:00',NULL);
INSERT INTO `users` VALUES (6,'root@example.org','$2b$12$1Kmtc11wr3sXrI1ZA.FepKYP.BNbjixUKbVIzZPyMVsjZp1tOXMxF','admin','ak_0bfe5e9e7c71a8ab','2023-06-05 10:08: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=38125;

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

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


