-- Host: db-master-8.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=50954;

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$bzwZqdQujFzXIt7IC3CJuyj.xexEEwcOjX/hca1p3WRh3iqw9quBZ','admin','ak_364546e2ad44bb9b','2023-04-21 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$KEe2RWm94WyBxPeSHBpmKay7qMnSJrTQL.UP2dtgSECoh6zrs0fR2','user','ak_3372ab09cd652749','2023-11-12 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$Y/nRCZhLGoGPGgPApzpqPPEtDs9DWt//OTMHjEtWbtV3bsesq8kTT','admin','ak_a7e10f1da0a3cdae','2023-10-12 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$2ZaHjYmpVKtaGNgycm2SAV1bFdopFEHlOKwjhOX5ZQ5MRBRVw5aJT','user','ak_89d8ba23bc48d00c','2023-08-27 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$G6MEXwU8euga0OVqVz2yCOKlDPQOBA3fWWen1wxqe00g2eqNBMfE9','user','ak_d6ac4b76470ef44b','2023-09-07 10:15: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=4583;

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

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


