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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$WxMfSL/1dT3CdwYQFEvEaW12iu31SzoTojEWqrcMzuMAHtX2DHxzD','user','ak_313269145e14c96b','2023-02-15 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$xnmV9xMFUCAQ5PfgOH8L86B/xT.ZLWUM2AReAR3foj8ABu5iJc8q5','admin','ak_52e827facb04627e','2023-10-09 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$rJyMzWZAVgk0QGhgyul1AeZMAG1xPZGzqeqcxmsjhSUOJyk2R8.Hk','user','ak_1755ecb66f9189e1','2023-05-13 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$JW7uM3KDiwU.hvMrA.4esAFPXw1.Fjvb4KABtE2FBncB2dUFdd/UL','admin','ak_e3184bc8e4cdcc43','2023-11-19 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$x8j9TPn3PhdMFJGOYQoxWD0zQGGlZlYUNM.dxh4e8YuindSP3XQsk','user','ak_525f26093963353f','2023-08-18 10:20:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@corp.net','$2b$12$9LyOHHVHMcoeFk5aX0985o82kDWyK1rlCDBvtHplMR/ayH.A8J5tj','user','ak_a8b7a5c0856dc28a','2023-05-27 10:02: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=47336;

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

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


