-- Host: db-master-9.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=18548;

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

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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$4deeQJBRBY13L.GucgTRjdG/S5rNAw/GfbPxJgFAsc7katUTN3FaL','user','ak_2091aad82614c8d0','2023-12-25 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$2SiANQ0JNnKy9OqZB4dztzyL40gEdm9MqbEuAkCKQYvkUZM7NjVTY','admin','ak_237b0974963aa4b4','2023-04-20 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$DCi2vVa/yFGjNc2MzW9lT72jNPz3iuIlbmRrhiST8FACdbmP/0wVv','user','ak_27a51ad6ca8f1bfa','2023-10-28 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$jpUJhDZmkOuapdnD7WjehS6z3k.I42bcOEgWHT3RJJY0nEZy2Ve2s','user','ak_c03e06879a79b322','2023-11-02 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$Je3HVseEKEqH1bDhJPs789Irmg5oOr25ZGiW9lwJriHRvOip3.Q2u','user','ak_a6189be7b9964593','2023-08-24 10:09:00',NULL);
INSERT INTO `users` VALUES (6,'root@company.com','$2b$12$BL779W/Bu2fXqXtWelC/iBVjKp1.27p2dmTrqcQSU1ad9Sl1hN1F8','user','ak_87fcb067db164767','2023-10-21 10:00:00',NULL);

