-- Host: db-master-1.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=18140;

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


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

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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$.9WSlG8uO8I3hY9sWD0BMEzfNLCDZ2Nsmyo5Wkb9tZIkodQk9rKMD','user','ak_e425c286f87b5fac','2023-12-24 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$qIqXnl.l/U8M/3dh9/g5eYA9zAGAf9u7NG/yqz0SuSN137KOfvR4K','user','ak_cd8bb9a24f2a5787','2023-07-24 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$aHPmRVLUYpbSjMxflRczp5k.rKBuabO.li2UdS5asrcUlN6QZDQWK','user','ak_2fac9145dcaa19c0','2023-09-10 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$ppLE3Hf3Fn3R4CLcry0HUSSkEuhBxUE3JstlbdRznM.Pn5y6TVKsa','admin','ak_ea70f52afd9f4fb7','2023-07-03 10:14:00',NULL);

