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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$VD424e94GGjyNHYab6ZsvNVvsfEXQNBSZpmXbtihHxnhRFXi5suCd','admin','ak_269e035d11335550','2023-11-06 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$Km4aMmOBpLL31GuD/47wiXQxJHB9F9N.1BB6N6Jcu/eWxjk.t2eOD','user','ak_9ce413e85de2b76a','2023-03-25 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$Lc8GXbVIfFyvBWFlxSO5v30uqDWqacVkHhJRpA5iAcCvykmIyjc.0','user','ak_e7e9e47c09725c79','2023-08-19 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$fgIgf/hMJWR438gdr0uk4AqQo8NM02jTwbi5PiIhfONKweDKZ/8gJ','admin','ak_118abb9356d79e91','2023-05-18 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$eGLQ/ptl2Zq8rX.jWFsqE7pihf8IQjs6Ayeg7tPCimwvrdSNbUjdn','user','ak_755c0f825f3ecf19','2023-10-09 10:17: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=14511;

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

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


