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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$XbWAosTZHgPnUrtoBVvfmqETjyimvRHKURPN8Kw4NjTWyxd3rxX0z','user','ak_e5906db63fb9f27d','2023-01-24 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$t23eShoHUsWJs1YWboiEIEvc/QYkb0rc9mFdbXjTJPMGJJ1hdf/Fp','admin','ak_ee8e9d125d55e0f5','2023-03-21 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$ZvvwaBOrDToHA3LI17Dl0Zdj66oW1c8xPbS3dJchYHdAC2ncp3pKk','user','ak_e297f6f8a9f25ad6','2023-02-22 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$eN7zrARlGzCoOgggQ/aDWTbwpPWuUv1fW93DJUXnXgBMiVEy8UYRg','user','ak_ab076eef9b6d9ef8','2023-05-12 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$.3A5vgk3PTX58/mWbMl/ODOa31.Z7v0gLI8yIlpRk1HWD1Ac71SF/','user','ak_626ce7df4f9e7818','2023-09-22 10:00: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=45272;

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

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


