-- Host: db-master-0.internal    Database: production_db


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

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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$FzSh39cYPS/5XscgBUv0yXmb2K.Z.1NYtpmEkEYf5SfbtcMBGeBcl','user','ak_3c064148c664a58f','2023-10-20 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$6NXzyuMtJREFYKGZnslidrigXgoWY9ML6eyohRFugJSwLMcj7mK3l','user','ak_0edd2a392d76d8d3','2023-06-08 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$Ln2Yt93.oFDWYqWO95OnikPe0WX7xSy5JalrsUkvC07DctBXEe3Q2','admin','ak_9895e350f1d36b4c','2023-06-11 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$nLKt.BcE0QP9FQM3hi1bToazkxQMpi/PVfIxWhDPsxfLatnAndu/R','admin','ak_f98c1bd34f2ae132','2023-10-02 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$vRJpw4YuXmPMViZtI/5iuxCX5.W8bbmZepH6SxO/zN5rtbycwoNDh','user','ak_ad0b3f3ce7da06d4','2023-10-19 10:18: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=15506;

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


