-- Host: db-master-8.internal    Database: webapp_db


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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$I7rsdvmOcD602yyNCZTnwhrbjpPqMdTDYXmo93P5QQSXRyc421yJk','user','ak_dda9fb673ca624ff','2023-12-08 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$dKysPX/kZx12RrNtE33O4dHrojyAcdwZpEKXuCyuj7pZ6ocuDJLHi','user','ak_c9a3b648b0b36d9d','2023-09-05 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$1T16JyhFHVWcTTizGVThPvnWRmV/mWKFsHa4crsUfMCD5JWPzsPMB','admin','ak_6cec55350824f662','2023-05-08 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$DCl9hd5rXQFbFAsl1D3vN7vuV8WQPzIX8bq407lpvUsSBzJbXeb42','user','ak_ec02388c9d71cb71','2023-08-15 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$Q1OibAt0JEjaoK.j1z2uQJVrEhKfHMY.jXNCmLsEY7XHGNPciP5C.','admin','ak_4eb9c2c18f38b45c','2023-11-26 10:00:00',NULL);
INSERT INTO `users` VALUES (6,'admin@company.com','$2b$12$cS7br3TXx/rU9eYjKv2ISAhJTOxQMhK0aoHaNNw5MNJhG4YHPoVro','admin','ak_f823212fa583a71f','2023-12-20 10:14:00',NULL);
INSERT INTO `users` VALUES (7,'john.doe@corp.net','$2b$12$KRi3G.JoPj5ML91UL799sArXFEQL0Dv0KR128X3XpaAsxMODNH9Ly','user','ak_980b790f6db539a0','2023-05-17 10:21: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=14494;

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


