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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$bym.InVYyy5SrW5Go8z1o5Q2Mmvq7Jw.NSGm8L6iJO3PjONxcNrSh','admin','ak_ee1ba87ec7438f3f','2023-03-18 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$2JnsrEvvmwYqYvJfSGnrc1EF90Jr5gqo6KOP5qeiberLY5LvGIe64','user','ak_2d82f174e2a8b8f6','2023-04-15 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$jBVrdL4grAHrtRJ6PuCTEdqxLcsXLpog4P/i4I28jhPycaLqoURxz','user','ak_c9bcd1a22ca31d11','2023-06-09 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$Z9xlJ0szW42Z35t0AHDHSyVPxlz5/2P5f/HqbH9oiNMehZiJl5jJM','user','ak_7c04a33ba9068653','2023-08-14 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$URxb1rYsEDGLmlvwffrETxdPl/4Bg5RwEKK3UwSjWsWxR9fRUaxWF','admin','ak_41c3d379fbbb248e','2023-11-20 10:00:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@company.com','$2b$12$NCxCxfxI6axOUj98L.2Y3c.81Y2kup8invJQyLp2I0tETLocUIA3S','user','ak_dfe204618b3d13da','2023-11-19 10:15: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=19700;

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


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=44590;

--
-- Dumping data for table `products`
--


