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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$ngpIG/Qgx2D3.7x420FUTwzUIfOrQdtT/50Ciaeqip08k3ZE9iaYN','user','ak_61c28b368c4efdbf','2023-11-13 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$dKn5ZJwIGZPTu/VSX/eRI900CFRAxZjv/G9vuRzcAz9Da1k7cj8p/','user','ak_bd3374cb7a2c44f7','2023-01-13 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$GRrSnYTrNKhL467cPDpuUlWNlCgp1n12biN3u3VcX9t3Lj7Wr45/7','admin','ak_d6c3cb11e1586c00','2023-07-01 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$S00qRBs4ukQXWlTVtmf4kX1/d0d/JCgpKoVvgdqpQuib.MuTL.zsn','user','ak_5e0718a68bb3ff4e','2023-04-19 10:10:00',NULL);

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

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


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

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


