-- Host: db-master-9.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=16093;

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

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


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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$qnmDUkmA0y5BICQLLrQWsF/3/v0yJiG5LdI6Tn4i0j810OW7ULTyD','user','ak_7a072bdfea49f249','2023-12-10 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$53jZbfJmbyunyC7l8u8OIkT6UFu4FCBVwqKLqb9Ard/z8Sl7pzOp8','admin','ak_1fb8ed43db96a9b2','2023-10-16 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$vqOCIk2nEhjY2B45Y7PP7aZC4m.XGKYUnXSodpRZ9hBeKpvXOfL5p','user','ak_941d0ec994b3fee4','2023-05-22 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$dzsoHnpMfXxyF9xf8T9/95wBvlAgRhlOgqlQzNyb57L8r8kng/3BW','admin','ak_6281fe9cd17cef7d','2023-06-24 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$OscBsS3LS1VDQhKSz92KXqecrjnWGX4KT5.NJ98.4RIGyyJNvCxuX','user','ak_224d3ca43ef88d00','2023-12-21 10:16:00',NULL);

