-- Host: db-master-5.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=17748;

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$OuA4WQEIu1VLzp1bfHG051WWg6MVoDVui2MqaIqKBYJmHHiJMn/Lf','user','ak_c6ad5a46610b5517','2023-06-10 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$X8GxRncJ7DLUO2/rO.kbJA62SuLLxuYBQIaJUnisDfhII9GxqEyks','admin','ak_b3f8b230936425d5','2023-06-01 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$g8XDBOk1zLtDDLZfEY4dU.05T9t8kFPfn3SzGhdrcJUSgi0IvJ03Y','user','ak_afd4f5118914d175','2023-10-15 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$p6LE9KYsbN32m/Hz/8Uli6VjtvMXjha.S2760GaU7OojSbmlkbak2','user','ak_9421ced271113e6b','2023-11-12 10:02: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=37807;

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


