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


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

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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$ZMWzwOR/sR7iosDXvqsZx7txe08LQmVADcC9zI3OmthGdENzr3EGx','user','ak_0835168b97a8aa58','2023-05-02 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$JUPSCxLNcUcVigI8H4.OHazZEtHOqLdswKD/WWpzzkzP0jZvGm5xn','user','ak_3a93ff02a5182766','2023-07-23 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$Cn6ah4wE93vSxAD14ggGg8ZioURWqTRX5va7d6xc6ifIxVS1alXax','admin','ak_320a3c56139d3a50','2023-08-05 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$UxHhKXpmwru6J9DPIOVukzigzYCu3KoYA.dflMHFDd00ojULYT2uj','user','ak_e8e7c0ad55f84ecc','2023-12-24 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$DKMgnXpCeJ5eXScLqCXHVNo6rQlFh3vwIZCkzdsj9Vc8VKW5mNiYe','user','ak_b456d0f5dc0a31e9','2023-10-27 10:11:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@corp.net','$2b$12$tXQCoTtUKajzKU8AKBWEmMDUaa6lwzCDVfdwo7VNTpI9J/.oxXrUb','user','ak_4456f6b77bfff41c','2023-05-28 10:04: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=23179;

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


