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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$kQ3HX3omAo1V65ZSkt/DQvao2J7nrXwj8PTSEgkPlmJ4RVTZiLjVf','user','ak_d86839b128128c89','2023-05-20 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$00Rp1BO5J.4nZ5UfUSzGjJUz1l8aKL7NSvT.5owvj4b.zgsLVtIlC','user','ak_bb4dad2333cbd125','2023-08-13 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$aNCvZ.CmqF1fj2jHQlXqzIaDn4s9/wVz.9V837uoe/pcNbFotWA5D','user','ak_b1a9e5697ac902ed','2023-11-28 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$Mn9Rz3vw7igx64CpIsYfeV5kL3We4iLw6ny8lbzfPoxaZ7tEA3I7e','user','ak_0021d44fe5f07c3a','2023-06-09 10:04: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=9524;

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


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

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


