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


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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$5iw7Sx/s.0qyC63M08CWReS1Xve.K5x234wpLvMaalShe3DbhiXUr','user','ak_030c7bafa7843d90','2023-07-08 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$Wg.D98OPtaa15qozv1BhFEa9PLz3vs1/.ui3KdcmCaXvIP0/Vb/PC','user','ak_432bd48d94a6762d','2023-03-27 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$4dM5AEyVZS.Fy4Cs9miyOTo2zM3V3qX2YXlV3kPhLWEPaLuyKCUVq','user','ak_9365f5e41e250e51','2023-06-17 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$u2a/veEPp1mlqmbMxT85QxdITATbv4Oa0i9MZjyH3eNvUkvrHs0bL','admin','ak_84991dc9676dfd1e','2023-04-15 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$wGlvHYWhIbh7w1tH2GFIVWDUCk5OzqTN0Li5kSmq4MdKFqpITCZeY','admin','ak_9cc45bb55079f820','2023-10-09 10:17:00',NULL);

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

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


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

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


