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


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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$TZSqwOVRjkACvYoFkrU7DWRKRxh/BpDWYnkJQP3qFsFnbqc3II4XU','user','ak_b7b080944270efbd','2023-07-05 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$KcBrHUHjoK68/Pjphkf82qwt/xHom9TDUGcdqOmGeIL7aB0/oHNt4','user','ak_5d9fd1755f370fa9','2023-10-26 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$HIsH6dCS0DdvwA/zYPGA4ENRCZSyUHO5hkWqf/u81a8CriKW9gzFa','admin','ak_b9c3f1e5f2cec9d9','2023-11-08 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$xmjNymCH5ELmgluPNa/GQ3fmV6ZT.P3LAR04u1ndGnVl4F39aNP4d','user','ak_7422a5437f514b51','2023-01-25 10:01: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=9428;

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


