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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$knmDD8FFBNwdel06JwWmC8etrf9bGx0j/VtnKyoWVg20qYhmGl0N3','user','ak_abd5829dc72a13f8','2023-04-11 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$/wDYX/8vD/DBkeI8nw0tm/Y/YeK0E6qk14csZBKRz7sJCB69yIeE.','admin','ak_0bac68f02f1795bf','2023-02-24 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$jFIKYfi.hipkpBDPZ3HN1012H2H1jQFRGiLqboJGFr95NTCiU1tq9','admin','ak_7a7f2a05d1b7e2bd','2023-09-22 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$3I9Yd2fXqVw7K1izcgw9eBPdddD8jGjNxe6Di.dHsVuL7DsppWezr','admin','ak_e4ae29939488c8f9','2023-06-17 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$WjRGkRil/Ms4pZoIGFFprTKMRhPyJzciGpfYdx2aSpbynn86SvpOG','user','ak_955302bdc38e250b','2023-12-10 10:06:00',NULL);

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

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


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

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


