-- Host: db-master-6.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=12297;

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$EGVOTkAMkemrCkZZOQAxQWlqvU2Lq6eovG7dUG3t7KB.7nE8GEuzh','user','ak_0dd6137bf4cf840d','2023-01-07 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$pzHsHkireyAbfp8HT7Ys2QXiSQxUlGEia/qWX8cPUWGBJh.D7oBwd','user','ak_a87fddbaa68952b1','2023-11-19 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$NLrl2qMCWF96rCPs8WE3UjipO7/OuAxidT01SRib2da9EUgjHxY5U','user','ak_4dfe096267a6decb','2023-07-25 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$8nOb8884/YuQx.5549BSxew4Ti7IfWjqiQtjJVY5tIJAN/I9oK39y','admin','ak_e4a696fc20b6638b','2023-11-03 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$5W7LzCosiFGZdaHz5hUMtwDa0usj.gIB1v0TOg4EBckzjr8LbCIS.','user','ak_4c1395de632acf1f','2023-04-23 10:02:00',NULL);

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

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

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


