-- Host: db-master-2.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=3398;

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$0sue5mHjrKKWwM3zIC7HfeH56QpDVu/AZddNd6rzzEon.hhs2tjwr','user','ak_0264167f01a9e64c','2023-04-28 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$88UawN26nJOexNBidupWOjK5VVn8T0zGg87DArtnvgA4ldjJJeZFn','admin','ak_dd85c60c4e11f39c','2023-05-23 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$efcmRvN9dELwhE519lqwSUhDcRL28LyR.3uGBrDVTJGpNDDwogEIv','user','ak_b54789c310a30bc6','2023-02-27 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$26My1YeU2FaV6SDiOvHjAOabW99tGwuZx8/EVpnfipRfAX3lod9wy','user','ak_fa730ac1e8a29769','2023-08-13 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$bG9NlMlMAuUN0KZFouqqNGvCLkn2qgi41PFeN9BZi99Tz6anFZnKa','user','ak_b6719a4e085cac96','2023-08-21 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@example.org','$2b$12$laz2334gwDu8ZUlgfTUkezcQB6r9c8Mh.DGYuuJd1TJ/M/ajGH7Sv','user','ak_9cf5f1149fea1e6f','2023-05-10 10:04:00',NULL);

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=18290;

--
-- Dumping data for table `sessions`
--


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

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


