-- Host: db-master-5.internal    Database: production_db


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

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

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$aN9/ZXYNEtcpcwRWz45miCQAfilNBnvtGJLXQ8VdZpjHGxhhXz.5z','user','ak_37f8c14dd32b81f0','2023-08-10 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$VlmLvjvrwbfOpWmhvI.W3GgLoIBzqdkpW7htd9rIu7xlQZXwuzp93','user','ak_196226ab0cb55114','2023-07-21 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$o1W4YwrWqPQAxgAVC./bQN0gZ.2RbEP.QJpXZtzQxsvuZNfqUARZw','user','ak_49793c688e678db8','2023-04-14 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$LaS9WZrMx4N8Jihjew2FRflHGLbvjrUpoBF0OwpWFWPPToF6JGbMT','user','ak_19e87126a95ab4c0','2023-01-11 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$lH0VLsGSHu7ad.A5BLdekfzano0Pu29iN2bCfUoa5DmverVI9JltK','user','ak_45738cad57542616','2023-09-04 10:22:00',NULL);

