-- Host: db-master-9.internal    Database: customers


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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$VIADz4i1p5R6VP3UR3OLeL.HBDsqMzvsIClwWoRuiNgSzwZ0aE5aw','admin','ak_55eefea7aa8a8d59','2023-12-13 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$fEf9If1BUX3fPd2FPhV7hiyLQzpHh/F/1R8Y0/13ePLMTQHTRvgxn','admin','ak_5a4a20fd1bdbc5a7','2023-08-24 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$1Gtz.3UaBdbX6f73u1T8L4d29FPjk7a2V2EbAcUecMM1SEbICceYv','user','ak_457089b5bb43a6d8','2023-05-20 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$5KpBUjU6XOUZvx9Q6ZS41Qi8TC3n/Qz3Ib2FfccmghZeIacn3SCQd','admin','ak_77b50276d58f0e43','2023-05-23 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$xOz34L8gxVqqQTcbn0c1Knl5lMjw/4BahEBTfvF0MOg3gosxos3nm','user','ak_f8695156044a35a6','2023-03-21 10:23:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@company.com','$2b$12$PP1ROFYWBbv.xBnU/oObk/ZIZC0Kdf8vitWn.4um8IeB66QTLMCbb','user','ak_1c4817efe617aad8','2023-07-14 10:13: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=21453;

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

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


