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


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

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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$vnIMO6b4jso13kMhCZOvSYcZhxGEH8Eap1LkV8oTFAnjlcZdF3k8d','user','ak_ff1b5064d1d6bf40','2023-12-20 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$9cKdPDO3qq9OK1/hBZSa72Gw.5MC0aEK3hYcHgS2CAUgltu2Zvkm3','user','ak_de206ed8049211d9','2023-10-24 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$LBrXE4tVWff5lPpP8k28i2ipS314jsoOY04WM8ObfCUiviCB/xjVp','admin','ak_cb5444315b0ede2f','2023-10-02 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$jWdCfRZI8o5y5BM4zbaj.JYoYAYyS3NySunVohtlgjd4LR3jJ34xe','user','ak_a878aa31d2f29322','2023-10-25 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$c2HKfZb4YtB07Zfh3OqVBa51kBUCOUJzRuj4IXNspiMRIfVIBDbI5','user','ak_f93669156994bfdc','2023-12-27 10:06: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=10393;

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


