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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$HZbhE66ESuSi5iDPrHViL9IArOzAhlKsHC0PWYuNloDhelCu6mSi9','user','ak_7fc2d11de9f294f4','2023-09-23 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$hC3TsrioUNHOkgQXgMeucQhdptvFoDpjoO3b6fx9ZKeEgtjKnWj/3','admin','ak_44558687a6761f3a','2023-07-20 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$i5iYIXJip.I2jQZdYM2St2E.6.x4AjiSRdNY0Q0Sp0.KSBRcy3Eee','user','ak_be17b8f2c7a7fb65','2023-11-07 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$yx6NqeteKpjZd7BPqC9XtmIxEUOdHwD87ALVV3bNNGvurxB5UTW4A','admin','ak_4cc1d6c590c17638','2023-10-12 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$hHBsVrC6wmPvQt5TZ/U4v1iQVwgJqryPoq2xg0LyIxx6rLlklAANC','admin','ak_2251c21eb5f44d7e','2023-11-25 10:08: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=25555;

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

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


