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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$iXue.5EpT3oSD3aPDmjaqWtpw0NyIdnyjjCV3Tbl9ng6itU4stOZa','user','ak_f458a6a01fbd7679','2023-02-23 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$6v/OGHFCXcS38pDVtfRhv3eBTxLxRjiZ/JMABDXIOJ/H3lZh9YbPt','user','ak_24e15f35f0dd76ed','2023-06-13 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$PI4IZfGCLEGQPHizW1wuHnQUW1uU4BxhCsBGMdYfH5F3291sxvwJU','user','ak_dcbdcbe5aef947aa','2023-02-04 10:07:00',NULL);

