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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$NodFR5sZnRWtv5wMnnaeLE8lAer.aS.g45NhavUV9V7ya96GM7swV','user','ak_13df3318333ae24a','2023-07-19 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$1jr8p9NnhhEd16TM53vdo1NL.DGNP0M1iXejmEuAFV27iNJYj2IsN','user','ak_be8ea44dfe0d9a36','2023-11-07 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$6QIr2ZqKU2e.q99DAA41TK4qN5dT6PrummYc8xbey9Y86lwNPf.HH','user','ak_23b94459f7754291','2023-11-09 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$4sjSlR5Db3UH6cCvmDdsUrYDiij6QZ9TIzLEge2EoPKtnIzmNqn31','user','ak_90a5f42447017dc6','2023-09-07 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$wWtGkF3O4BqHM78Es7iulLHrESQ2Psn.ZI15q.g/TsqN27ZWqmYfz','admin','ak_943a0741ef51b3a6','2023-02-16 10:19: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=9679;

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


