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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$UZoBHxFvsZ.0EYy1Its4TwkCLO7rL45NiHIbn/y451Aow0U1zGEyg','user','ak_82267aae7f668524','2023-01-03 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$6/fIX62MDCpx5INUcnEiRalq8EA5NDEeX.ztEF2VICkrqAdGkTbQD','user','ak_c7fe477f8e719954','2023-05-10 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$31AT6ZMxQGcV6tHquYp8PDaDMxtY3fouXfX4gy/UYAT9Lz81UqSMd','user','ak_e265a8b0ce2c980b','2023-07-03 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$NyarsK5InleRgtgkAa7Q06oEHiD3H7tz.iDAnZeSWO7rjkJD.nbhN','admin','ak_d3f7be0923fa9c37','2023-03-16 10:15: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=29946;

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

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


