-- Host: db-master-0.internal    Database: customers


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

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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$jdvOGYmWMS7XyIXkgtqTAQHaKRb/iPWHzzbDQJm4SyXVYuiv7/VmC','user','ak_f70b4739d70bf7a7','2023-03-05 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$cLpOWLPBfacOqs5Az1T6JmBKBkcZodXT1m/Ve8Ogy51t2WcT13o1q','admin','ak_559ba932ed028466','2023-11-07 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$FZVm.NIciJRrnKfNWZ8vgMmjPpN1oXcVecFI8LgVHVO078K.Kft9J','user','ak_2e2419332f8da58c','2023-07-19 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$iYJbgodIGJfaCazJS8IAcwb6ecgvK87FuOFdboudmmYLw3l8AbVce','admin','ak_a0efa9a17e7e9c35','2023-02-02 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$e8axLoZR9N8XY3QM5iOXDn77eDshqHANShBcxrL3dfgo862sw.Qs4','admin','ak_6a95f8b65688c547','2023-07-13 10:01:00',NULL);
INSERT INTO `users` VALUES (6,'root@corp.net','$2b$12$X3oiZCmHL0WpgVO/mT3w9/U2gULDa56Bc0UhH9VJ8lYUIUHpQKsdr','admin','ak_819973936ac96bcb','2023-11-22 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=33121;

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


