-- Host: db-master-6.internal    Database: webapp_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=40261;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$QQSYaWjndmT0E3q6HQIuwXJ.EoQeWcUuDnmZXD3BKy5rLWeS4vN47','user','ak_851a37cb36723e5f','2023-05-27 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$.VKTqUf09xOcqqBN1C8tFK98STWtKZpxvF0J5PsBq4JPPLM4Vf4WX','user','ak_8b88c10241f9c471','2023-03-22 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$tVRFGKRm3YJU7f9czSYIRcxeZxbs9IweJf/Y06hYEwRNm3FdV3Dr1','user','ak_844c2f8146113b76','2023-11-21 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$/j7h5TpimOXGYImIhN.t25OZEu3/dO868qR7WmpvebWDnJUh8C4nC','user','ak_f0928b73e2f6577c','2023-03-15 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$8Q9.Z4EoEjH8.NWG5XMiQEUVOqW40d3O41.7TskaPc1IvRqeCuoAU','user','ak_c0aa2023092bdea8','2023-03-18 10:09:00',NULL);

