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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$0c7Gzp.SbJ/Ffu2r9hHFaPCi5lJIuNLwheNfU9f4e9vwPMk51RKxj','user','ak_0731b8ecabacbc0f','2023-12-17 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$opwW/iSjrFnMXTFvoJZztaIbZIZpBnwe1OVxkA4EXzt5040bm.bT9','user','ak_de71bc779a6f9d58','2023-03-01 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$OKqIxINvTk1rgX7iIgUGPw8yf8fcAi0Y56ZHimGeLGK0YMkE1NP6J','user','ak_bcb3aba4eab58db9','2023-04-24 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$Bf0cj1GnmsudAHd4cFCcOoRJafYdW61VyiOIxx2LMTTZRrFsgeqtb','user','ak_67d3b21f24d9ce6e','2023-11-06 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$Flxc3OO2w7uyQa.l9WOaVmp4Z772EymX.6YgAUwX/adfh73BytmfD','user','ak_51652283be8484d4','2023-03-08 10:15: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=14008;

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


