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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$A3ADTrWRM6ZIgeJGKgPhEIcjavvfDmThYRmJgwnhAWomijFQnq8YC','user','ak_2dc79cd1e5035365','2023-05-14 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$u050daaUBzD9KjdqSlsivbL0bRepJqRY5eHxG5mV.c6R5cpu8bhAu','user','ak_1b2fad89f13c86b3','2023-09-16 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$EI3ab6X9uE5ofS/sLMERBPFkQaOIJeXRRDmZCkwWtu5yeQHYt99sY','admin','ak_b88ac8aad2f8190e','2023-05-07 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$iYipW1DRzs3mX6jX0z7tbx.n8JYsjiW3iD0CrMQa1Xfx3FVLS0JLj','admin','ak_a1c62a92056bf4c5','2023-02-25 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$RvPEv/RvaoonuZ4CXOfH1mrjG1RThUr68ovYxmX2FldxJmgqIvBKT','admin','ak_9a6fe5801e43e856','2023-10-21 10:01:00',NULL);

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

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


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

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


