-- Host: db-master-2.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=48406;

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$laP7X0nGz1hVb3PJt01QaDMUfvAQChKqsjXFfE2EgIyJ6yxMoIm30','admin','ak_b12156afc199d02f','2023-12-27 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$SuvoeojKrQFak791ka1gUBnukyvl4DOisPin2LgHJDBrZlwzpLHzY','user','ak_dc51be1ea510dd68','2023-05-13 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$/zgQwezQPBEUrqjD91AQsJmakNfL1HdgTFlKok0m0CVPwdt6Pn5lD','user','ak_791cba53812fe546','2023-03-10 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$PmFrRZDe7D67NhjItDv7jqLuVRKUJxEMHcz6ozFU8feHexEOGSJDp','user','ak_1f2c24964fe7a24c','2023-11-07 10:20: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=47275;

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

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


