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

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$h.vd7yk3DTaV4yeOLsB7qOOjZgXTdbqBRinGDfDnRWH80Kw/Hz0Nf','user','ak_cc49ce5d03d4f69b','2023-04-07 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$bx006fQG9Usmw6o1v6ho0pkGBPIRRh1uflfzDV8pqpnUCttqjuiXg','user','ak_d2a7c71099ffa96e','2023-11-28 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$ed3VkhfMFNbdjRm.hXY3mpAonUYTeBHglF/4j33YJV1PFz9meLgnt','user','ak_93470f518622e282','2023-08-17 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$jhjzAeyn11GyLb0Mzaqp44DQpiMgeXVWze2Hli0/XUWYE1jpC69U9','user','ak_e9dfa194cee3deca','2023-11-09 10:00:00',NULL);

