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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$6aKXY0fgco5woM0H0gr013XJadFjBBbaId2Hc.DccR4zE7HLfgnKC','user','ak_e21a8176540013cf','2023-10-25 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$rUVgWrq.pD6DIAGoUBK2LjmDfXWxphnMFLS24BVYwFY6ZntOzwH.A','admin','ak_a8c87e07171cbe12','2023-10-03 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$w9Nn3Y1SUGLGPQXh.oQB.gdwRA5rS4bKUJ6w5vUaj0o0ZuDj3LdBO','user','ak_01920ee9cbd6dc05','2023-01-26 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$nFIShg4KXGHBa3iy9VenCZnF41n/B/fWAw0hXtMMIteZLhY4KwGZk','user','ak_0321e8da1b01972b','2023-03-19 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$O77uLKg5layl3qWf3dNYw1OxT6gmTjB79v5O2iUnaMO4dMsnqpy3V','user','ak_2785a8ec70b9bdda','2023-02-14 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=27362;

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

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


