-- Host: db-master-6.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$c2jetJtZruSeeAAHOdZLHg2GveuLHdhj7CbMdmanmPTojRburWnjH','admin','ak_1c3cd50513189ad4','2023-02-06 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$ezZyl2DNg3LS40Y/e4Xah4LALuIlHtRsW.1S5b9Ar8sryhBESuwxc','user','ak_0f9577431bdde6c6','2023-04-05 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$kexF5VOGGaGsGQaRqpyQZ5XsGpp4l2Pz6n3i7FC9Gp1QhmVzqf5Ko','user','ak_51a7cb7b78c20516','2023-10-28 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$fNDWuDFCI3S9TSbmKpyfhvXBK383M.PB0vgBm9YKF37VrBzmhTwIG','user','ak_d43b61779d3c72ef','2023-04-19 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$0XI6dQHwT.IPfBvx4GztVnOfohsLw/ZawVi/lrqkXhfCTodmziSIa','user','ak_7f96d907a2e7c261','2023-11-14 10:14: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=16330;

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

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


