-- Host: db-master-6.internal    Database: webapp_db


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=50148;

--
-- Dumping data for table `products`
--


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

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$CLBuGfwzfboK/.CWFnWG4ZFeGZLChC8QYhWVWIiVXzybYmEDAg6OE','user','ak_f7a760437ea80c27','2023-05-07 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$Vc7I4u/km0nX2JrjAYmb4iNkuBDli7AHNse7f0WCqMBPnuN5GRe.R','user','ak_d74d8984f25931ed','2023-01-04 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$VYGeB3ab98UrAK4.Daa5489PSDhLTFpQ2u.YgAKWRN9sPFwNWXAlW','user','ak_1a828c8252791c88','2023-09-01 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$2YAduvo6pLT7tXMr9NhJQdQ.t1Cq7b1ddKHYqsQKocb3lFSm2bUZJ','admin','ak_ad863661b9d2b73e','2023-05-12 10:12:00',NULL);

