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


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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$rBWDq31k0ie.ci9u6tQMcwreNHGxMm5IEGoI.j6OgHo/.0JhNol1X','user','ak_ddded241db1bc718','2023-08-11 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$23vvI5nO8G5Gz57HuHh48QvDxV6aTs6e2XovT5D1x6wfeJ/eMeCGC','admin','ak_adfc210f8436f7c9','2023-01-26 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$IYUYsH3cUt.einasrKGIIu5Xuhl9E6BzdzUiWDH0AOCSBhp3vVulS','user','ak_8903a1b43faca160','2023-05-25 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$rT44QRrwckMojohk/xCmQndU6XJUiqA8KGRZFnbJOYKLaEXPM3Nov','admin','ak_b39348d61111f313','2023-11-28 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$ao1AL9.Zy.qzAxO5p4yjkTZb3OznU.BA4Fl/Q6.pL/VSR7ewNcmH4','user','ak_a888a6995f1081f6','2023-09-09 10:21: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=32564;

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


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=47839;

--
-- Dumping data for table `sessions`
--


