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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$XTJE8vbjhpomLTgqOlw0Nuv0u1QfhMNCS9fyIhgxgiBij02byp9sF','admin','ak_c8bc4fa195e40401','2023-07-02 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$OtiqqLev58jPGKwAs5kVwObqLOeU7GpLIrEFTPPzM8EDLt5lATxmL','user','ak_36130e5a06dc3d8b','2023-05-11 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$rlSPMwbLzswlfbNkCNI/kIrNJvdN50aHrucZERCg3X8i.wzwBanxX','admin','ak_e7510ab44b14bccd','2023-03-09 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$2fKvpYRJZW1//OX5iciO0HSDfEI5VvWlt7SAJ8xrE0v1xijiyo.kg','user','ak_814a4ea39f799042','2023-05-14 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$Go2BXl9cz7ToihbTIxhA2LGsvMrRl9U1zBcA72lUy3gYx9WZeViho','admin','ak_bfdbb5acac006411','2023-03-11 10:02:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@example.org','$2b$12$w8q4GhJs6sI6jX.MNMx3uoFIBCpmhSN5jkYmAhvAEiFIvm37dyyzo','user','ak_9518e0b393c41ee2','2023-03-07 10:07:00',NULL);

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

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


