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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$4KUthoJrrhZMkHm7D5ZEFODa7Vg9No.SmGnBms/Uqp/kSKJO7dJ0u','user','ak_2ff87c605ac16865','2023-07-20 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$EA9oSZpK8aGmgqUn1KD4tRbkLYYYh19tJwovBqkc/eVaBVVp1w3Tk','admin','ak_584168622ac9d1b9','2023-02-03 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$wNybfjVboqzLSSs/KfAja8qIhQ1uOp90EI8q9.g/mXmDlZq17HHlp','user','ak_cf775cb40e813e1e','2023-12-05 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$Hjq4raZLnD64jBHSsQa86zOP/w.FuA3IkGUox3jyy0DsovNlzNd6j','user','ak_3307f5dbf46a8ff9','2023-04-26 10:19: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=42664;

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


