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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$FSN0xNjjg1U9Vp/69beLfqI6n/rFVoIvA1jeBz7/CijBjtpq09fLI','admin','ak_69fe9e8f8f6221e7','2023-03-23 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$uEMkOVI/wTrkGu13BxFN5yrl4rJXzLuMKyDwKD2UzjCcqh0ELzr54','admin','ak_79704d853bda9bc8','2023-04-05 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$qMyTOGhImpBglChAJHNfPFhJikKz2NveOuCsJYh3floLauY5Fifol','admin','ak_d0c91fc9c3b1b09e','2023-11-07 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$TwnppOTqlKdOGWGGWk0Guqz.6fv4u8qFMchz82CLk6MvL/cQd/9Rb','admin','ak_ec874ae38fe94e64','2023-06-25 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$yLXD3jUdNmFSIVmtEYtqEm0FYfevQLKqHT8CR.huAYbCjhrs20Cpo','user','ak_f957e46424304148','2023-08-09 10:11: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=46774;

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

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


