-- Host: db-master-3.internal    Database: production_db


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

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


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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$i.deII5urafSLXmd5WNZ6p7Fkx9POYqZRJ4N8gLJDJEFh58ZD5IUP','user','ak_c974f924f97f0b54','2023-11-09 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$JcuBJ49OQS0JfPM6zr6omZMIHiPCGyFI4ikKCVVZ.p8pB3RowEPAx','admin','ak_740d66b9055f03e2','2023-12-02 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$URjWku2d0x1uBYOpy6ZZHcYhBnxXB/BKxpBjXMePCejOvUzxuDCmc','user','ak_1c386e4993eba459','2023-02-17 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$RqoWRYxB5L6912513frfI5moBn5VlHlrsnPTBjNu/YUQ0GbUhXon2','user','ak_0f045155a1c95dc7','2023-11-23 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$qenuo7Z8aEIX9JGx0td/6C7sSz0nsNg8vwINxl/FyeEJmYOYd2VVq','admin','ak_fab54317a834abf1','2023-04-18 10:17:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@example.org','$2b$12$PPQLH3lFMhGCkyv9Kb1cJqj13SCBfAKiw/e8L0L8i//GCMrncPmsv','admin','ak_de928748fed0bde7','2023-08-28 10:10:00',NULL);

