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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$P4PIJmqloH4rL1BivSleLvbjWczHmpaU9dhx5DozHi8ChzPXL39wI','admin','ak_84fe859e60692d28','2023-09-09 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$BI3dt5WTNVHDQSSm7Xj81IhSLk6wEWiRgJYMfe3QWgs.8xvv6IYnq','admin','ak_0b23bad5286fa631','2023-12-22 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$WrEwnZys6BzwGsIEkMZS7a08UIYR63aF/4wGO1ym00lzKbpgLsMvU','user','ak_fd6f608391e3c08f','2023-01-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=22995;

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


