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

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

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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$5HJdCPbdeyj/Ync3LkyaaDMiZpf87Hq.5UwEsXaGHZo2eLJpdcAgJ','user','ak_f0830d4cc4c58bff','2023-06-01 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$k54cYCxi5ga6YNxDT3/8x.7nF2QYEvD2Rcm2vYD9Yji8LZ0GFXANR','user','ak_4b224e7dcd388007','2023-10-08 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$6J5Ye1OzDHul3h.7d0Cu3axk2jZ5/7qCeAiZcTUmoZHNIaLd8qEK2','user','ak_513a7d19572f2bdb','2023-05-04 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$F9cRgrPPueoFo4XSxCjFAtXMhEdcqWOf6q7RKJv.73KlPWCFvDraF','user','ak_00d94a22d4129099','2023-09-05 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$kFiO0/q7CFE.mImEHrOm6cfqL4YohtkUP0E7KA.HWE09XKhNl8xwz','user','ak_3fde9503910d4d18','2023-08-28 10:17:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@corp.net','$2b$12$XOG/YGotDlNcddGlorMnLR5AfN7bgZwMcXWQtBj/Gq4t11wnLbi/M','admin','ak_51e94ffaa5b8b193','2023-12-19 10:08:00',NULL);

