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


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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$YgJeKiQiuW0k3cRgGKleLyyXHf6gAdY0iivizJXTEFfnEtee9EQC1','admin','ak_af98f859eb2459e8','2023-12-17 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$6/SAgGfSkpcQlnqJgoMehxUZYc/Xy9HzCjNXgerU6IcHEHW/pzMCY','user','ak_28b7b3cd04cd31f6','2023-12-06 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$AFDbZGnBBrwLTeP.IpkcpIH/jOPVqGSuhD5VJJ0.hfCqvtn6TJpPt','admin','ak_4e0b0baa01754663','2023-04-19 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$7HeDRBNC3Gx7vJTiD1v1VcdMqh5k.QteWP8/SS.Bcjmo3YWXohFqk','admin','ak_7cabe778bd306127','2023-01-07 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$kk3.g5j7LERAb8K12fQ7eEbB6B8TAUawCHRsQ6.7HaBPAeOR9FfQ1','admin','ak_ece1dc233a71f831','2023-04-22 10:10: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=48052;

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

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


