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

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


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=23281;

--
-- Dumping data for table `sessions`
--


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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$/GkBofWwDJ5tMaoUHDjwmDRhh5HoggXHjR/3XzWH9/qSGF7p4XMBJ','admin','ak_22c30672f2bfab72','2023-09-03 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$UszzJ1vbGwzZkdORr.P3q1Djk6zWMGMY1gSy6pv00omFMuBFMjTER','user','ak_1b0a9bae8c4f6f97','2023-12-06 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$6d2MqYFBXsSHrKNB7beePWHQfHmtkwxZbnR7uSy7lf2jXe.C0bcuX','user','ak_5ce4b11ead5dbd84','2023-11-03 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$EewC3taVnVoCOka.AwsC5sY1zs3rlk5l1oX1FnSbOpHQxDDdtYoJB','user','ak_19d45df6d528da88','2023-12-23 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$sblNPv85Exw2Iev9PBQyL1Mroa/UJ6ysW/PS1vs4yGWqI5shGyxWy','admin','ak_3088de676dc48466','2023-04-08 10:16:00',NULL);

