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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$Ys3GlE3WSfCxxlEkaVYLHjETIx5GWFnewWK7mZvQL9NE1hJScNbYC','user','ak_beb8414d063cc3e8','2023-09-23 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$BkyKFovETqnkdFHOwPN9fOOk7Gx6rrT4ZaIwM9/MeYTCFHf84Jh9N','user','ak_dd77f9082f614acf','2023-05-12 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$6GnyBGu7L2Cu5esSlJT3leXEqmnTCAoMsTYuOrjfJ/oa/shRXk32h','user','ak_3a85de200c1fea28','2023-06-02 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$5nYAQqYiMzqOzyhZLznQTxHnPjNv9KPTezZOuZyA97AkWvGdHefzX','user','ak_1bcbad9105fd3080','2023-08-06 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$OVVzkpuJ/ZjFOIlpzNc6hy9n0M1EYM6mhEIhQeqa.pxn1ADnNfj6o','user','ak_6f1f9b241acba7a3','2023-10-21 10:20: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=43295;

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

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


