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


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

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


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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$2MzmO6GcfeJrV0qVjT9GOe4svTeSJuj9tXfQYRFSoWna4040TTP6y','user','ak_478a704c3c3a1efd','2023-09-19 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$MtbiJcCffMkQfywE/rRpYkG.dIhQlGv1l9vIQrqTcVaqRIACZUiCA','user','ak_06b92279eac75d56','2023-11-10 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$covziFhpICpWE5IS/IhO0lfvBilcrcaQhI8A7zYAgwoeUs4Nw.DaQ','admin','ak_25aa6cea363adf28','2023-03-14 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$o8zznf7aZEJOXMup8L9877LiePQDHlLM2Wpca07fBcS0D16FQcK5t','user','ak_3e79487ca532b78d','2023-08-06 10:02:00',NULL);

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

--
-- Dumping data for table `sessions`
--


