-- Host: db-master-3.internal    Database: main_app


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

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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$rTlBzTyauJQBq1QKuFkeAL85EgKlTrDEfZHZHL5b2kozKm3uiM3Fd','user','ak_2083d7ebf1b80a49','2023-03-22 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$OgLepGPdOHe2PB0SyAVhtTrGmAJWp3CCuCHO7KrselM/7cVvFH455','user','ak_3ae87bf96385972e','2023-01-10 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$F20M8Fe9V1cjQfv4HTrq.RnjuPdB1MLERC8KTNtNGKlNDpydCvH7U','user','ak_6954a9d96167d917','2023-05-16 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$TFmJmc.x4sSmAZx.Fs.ei.cYWbJ7yxNSJBxkJ3xBugzqWESAs1xo8','user','ak_b41b814638883258','2023-09-22 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$m.C8MmiP3DdUoCnDlklrO/pINMqljnpK9xYGOnA2XqAJBFQyHN5Gi','user','ak_df532052999cdadb','2023-06-06 10:09:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@company.com','$2b$12$4wsyJh.CVK5cTMRXds1ludl7IsqBgegHewZZkATqpOiNQn3Xa3AkD','admin','ak_68272899a79d175d','2023-05-01 10:13:00',NULL);

