-- Host: db-master-8.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=14510;

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$iY8X3SPy0LyoE4SGRFF/yHOeAm3EBc0RXLtJ2zRDx1S2FZU4PuFYk','user','ak_7d43fdc3cf1fc2a9','2023-09-09 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$3.rw9PHP86bbn2o3KpoHK0GHPGJ2T9PbueWdMuHPgn.msxy0qoRf9','user','ak_c2018a8d97ed8bdc','2023-07-14 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$UvQPUYOva4wL3/.CO2jmUtfP7DXuL.XjtS8QadRzJCVtNAUxT.P8h','user','ak_757f25b7b34627f3','2023-04-16 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$KyBXrRa/Ox3VJ9gxiEkqd3yMZCcB69kVY1GCoh6bgRmKN72GYPXLz','user','ak_a37f7edfb2d83f51','2023-09-05 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$6fppVikhvheHPAJailbappk5BJPcVyVfuxkc05DNUjnOMugaY1AyQ','user','ak_6d703c580327f8b4','2023-12-25 10:13: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=28222;

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

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


