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

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

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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$EhwVfSI5ABSqsAUtjtPBVYWbL7bipbh4C9Pa.ed1tvuOVu7xSsrYG','admin','ak_5c284cd2f9ca8426','2023-03-21 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$qE38DD9NcnZn36sRcdKC1OUPTTRcSKgRlM5E68RuXD6nC.wh.4.32','user','ak_c852f6288d5554c0','2023-01-24 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$cFrlFdLCVvgbTdVrSq6rQDSoDoSE.lDPOORrFLCgkhf.p/f/mXOXa','user','ak_6303e71170332aed','2023-06-27 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$ksd.tCd9Tzmxb2/NRGpEyC61P/ch1sHztKKgXjp02GNqpxIzUoRMa','admin','ak_993efbd6c0738434','2023-05-22 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$XvR8XG/HfjB.3W7XLa3ecqGbbi985GD4Z19RgD4yRBpbtUTqKVISE','user','ak_9fc116376967dd3e','2023-11-03 10:08:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@internal.io','$2b$12$ljLAeyTtE.JPRTjj6Be0o1Iu3/otitkg6vWQ0Wwvl2J.E2RwYZFaa','user','ak_7babc39ebab26486','2023-03-27 10:06:00',NULL);

