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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$hEhOiHMiS.YrJUBlxzL/bl3e3ahVfHi80XWj4i8JSuDEsnn5Krq5f','admin','ak_825af30e1394a86b','2023-03-25 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$oJ4.cp/El9jhr3JUwLRtUm69vpZosvUn95WyJFkoWEh2FVK6Z3NwJ','user','ak_ed05dd28a84c3b3e','2023-12-12 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$HjVaQ02CxVsemldzIMRzUr2q4Yh/z2HhU5pH7lruoFWbOWRTFzlV3','user','ak_3f099f05854d1d6f','2023-01-02 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$SHI4L1iyC79f30BhxEyWmgrp66tqejyMjsiY7aTW1D6gtlAvWqoPr','user','ak_6f63007e9cc8b5e8','2023-02-17 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$5E2GHAkdPBsCpn.ik1opEU3sQ7Y3Ek0NSwQp0IGUqQ7vK9c/lzs4d','user','ak_7c4079da64a5d8d5','2023-05-02 10:05: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=23423;

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

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


