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


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

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

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


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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$BAGBIh9DnwQaAqRTUhLOUslMXuCi9.0oEcdyq6TZc5rkmjU8ePxjR','user','ak_a6f9229fd0a7cae8','2023-06-03 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$5bGMO65S5tRvXwCsCVVAtPhYY3ftVqW7ZTvTfmhVk4FrC2l2mKeXt','user','ak_d2bb0f7185900d52','2023-10-18 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$cys9vh2l/XEnZro719JoO4y4kVhCs4Dy6x1duslBLIsuwysaGoaHt','user','ak_02649f94e83d0849','2023-06-18 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$D9TVMPHhXq2OZIwa2rM48taDjtzQWDmBwOlk80xFFoJAasXLzGoq9','user','ak_a9c0fdfa9227218f','2023-07-12 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$nUwzGUNIgxitankeljgSRx2zQZWQpJBkQG3xMSoB366O.ITphsaUf','user','ak_e765e381574e48c7','2023-03-27 10:07:00',NULL);

