-- Host: db-master-6.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=15582;

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$F1VVUSGh1yr.A4epT2fUAR1HbVw06V0.TVVuDXYiLhFquQMCos2RA','user','ak_f8309507bc47274a','2023-04-23 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$t4xNy3718VkEhaihy2LhnLYeGYp6PjsjXFc0FP16chCyp9XztgRE/','user','ak_d7b0a83c4778643b','2023-12-28 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$3KQ6yRmiwDWD9CoEtT8iQZXPuWrD9h87tnPCM91gqR826KQc42Ier','admin','ak_2300080202e9a4dc','2023-01-28 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$IqO4aYhLvjk8bAxwiQkWhGmqB9.cA/x4VvEB7H8cG9c/187qTNiR0','user','ak_1e0ba0a2c4eac9c1','2023-09-14 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$Xjm3HYNH8FmcrlEwFIjy4nOGX7beGt44Pa2e09HhA2uj4zxv42CvV','user','ak_cf70038ffc50d261','2023-01-03 10:11:00',NULL);
INSERT INTO `users` VALUES (6,'root@corp.net','$2b$12$vlorSl8NDWjl8cBmRT1PDkegstOYC5VTP.oRNvI.t91JJrDXBCbA8','user','ak_94dcbe2a8508d6b9','2023-01-14 10:14:00',NULL);

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

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

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


