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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$78DMThPlLUd45Z6NyRzHT0azCwjRB5NLDgxqsqK/DkpK0iDg8ucmr','user','ak_977bb508dd2ef03e','2023-05-15 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$Tr6fp10JONyfkjXNryNdjcaL.8Sv/ELG885/uNELDQw4bx7QkOAAo','user','ak_20f0256bd60fc30a','2023-05-25 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$LSv39NZeDg7MbnoJnYU/NOm99pMH3VcFsN8NPJUf6HRxjLlFn1a4u','user','ak_0dccb916f86f1173','2023-02-04 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$E4uxCYEdYPeBPQwNi.W7Uvn/Dqf25e53y/TmJbeRGklhryG7PMm5g','admin','ak_afc8e550d2e32fe5','2023-09-21 10:02:00',NULL);

--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=10007;

--
-- Dumping data for table `products`
--


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

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


