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


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

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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$TYXrKNI1sWDIy1C7Li6apY.7sZ/Syx3fjqPMfqCRuHLDi9YB3ICs8','user','ak_e0537ad7b7150835','2023-04-14 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$Ci.Wh48NJfL8QIkl7kOofPodzREhEZVjh4fxuuNToH4QhfKfsSkGw','user','ak_3642adefebbaa386','2023-03-03 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$sSrjfqVKXIpbHC4dp5S4LiArp5Iodpv8Im.bVESNSQjKJV9RnkaDa','user','ak_c000bfd99102753f','2023-02-26 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$tdj5UscsOOYfNqCuF5Q0KFFCFf.g/Wwz8.hAHu5wNqgailz.IuNUW','user','ak_8b43ceb1a2d56a23','2023-10-16 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$l1gUtTc5060EYny3PPHCikwgy32PdqJg7Tr1Vqifaskmsz3oHTDWu','admin','ak_9ce8fc51fad599de','2023-06-03 10:21:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@company.com','$2b$12$KLTAevJ/CG.dv.lDjIlw5lCDTjBGF5fkiaStbUj8UOn2K9AT1xokU','admin','ak_b6708a58cc65fcd4','2023-11-08 10:18:00',NULL);
INSERT INTO `users` VALUES (7,'root@example.org','$2b$12$bSPqLewsRz12VvO4uMBYOD.wTBXdya01FAPAyNnU3Styr0YMbMFcv','admin','ak_48cac1757fe95fb4','2023-07-24 10:12:00',NULL);

