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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$89ZOmkQiBlmN5stsApzX3JF7dgW8U3I6r48WxFe8lPTkr1c/7TPq3','user','ak_0fe9cc3480df4d79','2023-06-21 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$0U0i0hIl05psZCBSw27yMoBNwUAlErR0bHSBgiLxgchTo9sceYqiV','user','ak_f6df41beaefbf8d3','2023-06-18 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$YoOb41l82CGfdryn5FCvT1O9gVE1irLjym.oup7Do2uKsLBYQ9.6f','admin','ak_5faa259d93b504f5','2023-10-03 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$pvcV1vLewsciPHd2S58fv85rv3aQ1mbCaoZ/Kuc/0loAYIwVpWnZp','admin','ak_dd90c9dc8d03e6fe','2023-01-25 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$U4ld0cT9/gGvzsO28ChR5rLwXZidqrWMO5eKn34hpLhLx.gP9Y.JG','user','ak_aefce5949d67ecd6','2023-02-27 10:02: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=48602;

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

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


