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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$aBzeBJrx4dWsCniq/P.QWlqqiqpvbND9KWpLushn3dZYkpoGdFFqc','user','ak_789bb1c28aeca1d0','2023-01-26 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$b8.0SeisbZ15D7SPEDVew8IR2NKlUka1vsjH1liZ1Rj6KU5g5cxLv','admin','ak_5e533253d66c3b25','2023-07-05 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$RDROAX/4PvvhlCGRA7NhJkN82QWKplU0fV/I7/TAyRk68YwqFzmkp','user','ak_1956d7c5688af099','2023-01-14 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$045VUNTVsaqHrCoEVteN1o5fP1RUQUWZiqoOt4dlKKIgSf/M7EKee','user','ak_4b67948adc5b4f41','2023-08-19 10:15: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=23626;

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

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


