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

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

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$eiR3UOG9q1o2vMXjnDp6WpxoyzrZuUhNzJIMpnDa6GdoWQKGhz97m','user','ak_5f88526908414fac','2023-11-22 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$Gu9yYfrk8lBjP5QZOOjJ4t46Steg5TFOqq9guo6H2rcUjDfdVd1F3','admin','ak_b5f4003e49dc39bf','2023-01-01 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$KmgSUaVOjvR3JBm1rZdqzqBApPFzoIqldrRcNiWPZ5Kf.wwn/Rz7N','admin','ak_614bd3ea0d73e464','2023-10-17 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$A9N14VJkg7hAPkIRMJVeRWwCIZ0rLntODVoUIvPcZ/klhYSNtIqsQ','admin','ak_c6c89d040a329dc7','2023-06-05 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$y09FWcCvpNoer9B6vlPFotj7boqJXQc/hd7xljdmFXKf3nwl59iCt','admin','ak_249c0e2553e8b848','2023-06-28 10:03:00',NULL);

