-- Host: db-master-4.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=2846;

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$cT1HCfmkprNch5jXvCKTX1ESitRhu9jcplVaU5Jvdz8VGUSTMuyqe','admin','ak_b073de4564aeb7e1','2023-10-14 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$Q.EVOG2UYfc12gug.CFdThn99GbG7ifJoz9R1horVAIFLaRm/M2Oj','admin','ak_67cf35236eccad2f','2023-07-16 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$KzrBUPgtzWahGepjC56eqJf9Gcsz2aVf430v5xxxzPb/IEJ7M3bTk','admin','ak_f214cc3925f39508','2023-10-17 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$c7ybVRGWbcbxWhFnkKu4e104O1.jC3m/zsmca5boMVy.5vAKGHZam','user','ak_3364251302fabe54','2023-03-25 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$MKpaIa9bGHvTabQvhY4UXzf0bxPhUiYkUETLTc6tenaenQqa2vI2h','admin','ak_2888a85e4016e266','2023-08-11 10:11:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@internal.io','$2b$12$pFkrWF9nq1IBNHOQN.Y5yFmu3Hi1S/Y4I6efZmgva2dOVmQN5hj2N','admin','ak_ad06dcc277a28e88','2023-09-26 10:03:00',NULL);
INSERT INTO `users` VALUES (7,'john.doe@company.com','$2b$12$LfggjEs3z6yjZOARPqbC1dHSm1ZWUheU7ZO2DAJW26DSxtV2U.qyq','admin','ak_f9018d6657055b4e','2023-01-22 10:04: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=25871;

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


