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


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=31092;

--
-- Dumping data for table `sessions`
--


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

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


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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$WxsVQ1qqJhRnN6hV46GcSKSuOcgbdcxNl8SSD9CrEdCE2rNCjq0mr','admin','ak_922702417daca0f0','2023-08-26 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$5plWu6WwR4aeinvpWN7FgMwOg1IJwCfecX6L8/Bx7esP4KgaMfPFX','admin','ak_6f3c29a8aaa8e9b5','2023-12-13 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$O5BCEehEglR5mlO9AK/ZUSUGiQ3VNpK5I7LJnlfv2gf3qhmiM3w10','user','ak_0217c38eb0e6d3cf','2023-07-06 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$qdL3N4lGQrNehLqOgoYEP8DQwM2Tt8SGqNTZOTwvzXQlE0jVnK/5m','user','ak_e6272939806db5f8','2023-07-03 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$qORT8r43LC96VPKRXqG0mIegMUFYN.pGbUIud/5FqAyXx2mmlaHlC','user','ak_e90944b89154888b','2023-03-03 10:22:00',NULL);

