-- Host: db-master-1.internal    Database: customers


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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$J4/8rpAVURT/bO2qHQZzaKnQtNpKGis2j3pEZ8G6rXaN6tkuz8mLk','user','ak_811ec700f00c7814','2023-11-20 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$5c3GGKOZC.RftC0RwUEgvnelmKeV/GVUM.x2nNN12E65HwNBTa4Yb','admin','ak_8555199feb31d03b','2023-01-26 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$GG7PlVgCswY6rBExoaH0EIxQjbPBbMtXaWKvCepbhIvPXs3JJ1PI1','admin','ak_9ba2846c55f39088','2023-08-13 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$RVeufs8PfhGD1mF93wwJxmtpVQhVI5nBLEXNs4Q8kpn9naikKT7/4','user','ak_1cc6158a3c180c75','2023-02-25 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$foP46t86lbtTM/jxnllXcbeQxuXyGo.h4t9c2cwJSi9RoZ3ljItPr','user','ak_2dd0bc537cf689f2','2023-08-07 10:20:00',NULL);
INSERT INTO `users` VALUES (6,'root@company.com','$2b$12$6c8eExv94PEsmaaGQzIAVm7IPt6QNlKCA7V/gIsg2BEBF2TntabI8','admin','ak_7c107f39f46c58e9','2023-05-05 10:12:00',NULL);

