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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$7lo82Sq7v4Z6blyof25ZHbhrbSkXOLKg8Ih6G.Urla1XuG9yLpzAd','user','ak_ce0f7f7dcb4861e8','2023-03-07 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$LEvLnfkjNsmZekF0AT5qtlMqezaAs8SCqqkSCxTvhhkUQpGlmptVN','user','ak_4dc5b7642c5bbf4b','2023-04-19 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$DDKGAv4ObMSzBNI4jSRCSADCmxq8tA8IqDDqgAbevw1ZK7hdSdl/L','admin','ak_ac4adffa83ce98dc','2023-02-11 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$oXZuGqoHxdcCy/xEViE0RvrEUHe/SLUICnMuvcZYWnTj3QXd9z/hT','user','ak_f42cd52e61eff740','2023-12-25 10:06: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=18722;

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


