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


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

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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$xHkj4N5tgNnemUCl0ZCSusGFPFOmEl22.umU9f1WoyBSJueEBrutf','user','ak_b8166e8b07bd83f7','2023-02-12 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$79ZdxHgaMpWwkVLvjrDMF3fqv3QdfxlRARc3dvSCX8l2r51vq.KsO','user','ak_ed41471b12aa8ca6','2023-03-07 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$we9w3JUzxFV6Jf.Lyb3R3oeySP/e4FHNCXE1TiRhL9Cb6ivIIlGXu','admin','ak_54daed49a0d1e1eb','2023-08-01 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$zdKCJ.l1rAgo1ZEQDtjeLkpattkrZNfp8Z8ajwQCjKDe0DxWAfY6B','admin','ak_5d1e524f5e58a950','2023-12-07 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$F5Rh.vvK5A6TE67SMe3YVK.RXEdblROnFArt3tUadZffeWyoqxqmH','user','ak_791c3367d6ebd0d3','2023-03-07 10:16:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@company.com','$2b$12$3OwdYc60qmDVtcX0HPITpbuEJLFh.R.hM70OUO8gjJ2QwLHdd.uuJ','admin','ak_ce135030b27ef5ad','2023-01-15 10:11:00',NULL);

