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


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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$m6AFWGYhLXJJSPlQaVTsGRXxwpB8R7wY2BN7qYQWBqYyothwCBJH5','user','ak_02c340326c455a58','2023-12-13 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$0TiqLvklv54x/QYxWGa/3kKQ/5txq/QZQ47rxa5G3m2yw6lXI2YTG','admin','ak_c541561a71e2acfb','2023-06-08 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$xoZafI45JFpPDSLJyRPiv/R3Hr5o/TedKCZaOu3jVKF1qfY2pNgJ.','user','ak_575e10bad1622a45','2023-01-20 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$BeT8F4Rww0et5QsfkzG8exYJHd7ucvJkRVkLYX05YQEwIzj4YFu5a','user','ak_d39084df3510a4ec','2023-01-27 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$/fQIt6V5h34mQN/UFMsjtvl9ZimR/M6GlyGORT64pCR3nLkmMrRNy','user','ak_7da7e9b032933e59','2023-11-27 10:10: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=26073;

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


