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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$XRcrCBTTU.lr9JTuvaPGHBOGYFyysXjs059.twayl2lZQk6WZZWmm','user','ak_ea134d0102cf3790','2023-02-03 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$lZqdLwKOpHyeLGt1LleQS82LssbPYJCuM14NbNkoCiWAsz/z7O3Dg','admin','ak_ae2e534c62b6f183','2023-04-04 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$lVC15dPq3vVVE3XPUQW7sN4f5IZrl.AqKMhjfZbzzl0R4vWJnZK5n','user','ak_154d9d9d5c4d62a0','2023-02-08 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$KiOXSxojFOjhrptti8gDbwi42HG1X152kRa08IY/1RKH0IUPEtdNb','user','ak_3de40fa690a8b033','2023-07-27 10:13: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=22582;

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


