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

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

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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$IWU93w9WBL5ZwvWzYbUeNqGcuNb8TNCaGXyMvAk9v/Cq.6Sqa.3Jy','admin','ak_bb2ba89ad2c89177','2023-04-26 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$j6Y0k5d0/lAwsEqNXNpqqSpbEKih5FUBEFMNaGiDh0NVF3.5mKx4j','admin','ak_303822268e6da313','2023-01-07 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$Eahm8aXKlz9cSMFaQo2L77a5D7QnE0F/rZRKoUJjf.4cxjjSX31Wk','user','ak_b37dd8ea95018812','2023-03-22 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$kyIs/VEfStq.2v.KhuHcZZ6Lbn6DNphlWdFq0jtsQ12t/AQ34k2DV','admin','ak_1f337cff18dd3615','2023-06-07 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$AQEzoqfDMn94wKxqkSfMOrrTo1Wbl1kDdAeoqykhBa.DONHy3D4VS','user','ak_ac8b8848e3b35539','2023-10-25 10:16:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@corp.net','$2b$12$SHNuN6ah0ZgNHx3vNfFhKJGvHFflCf4zFSzQZDd22N4YGEOi42xj2','user','ak_0a7127697bc588f2','2023-06-25 10:21:00',NULL);

