-- Host: db-master-3.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=7694;

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$ZJNlRIbpGuIOCAM9Q3ps9EnCVJMPJAMSh5MWYZGCYa269/a.NLFTS','user','ak_2fef89897f6cd909','2023-07-16 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$Ave.V5/0E3A9tUhemLvA9tJmxBRdcyc.GXG11T.hyuXUhuASYlGJV','admin','ak_795d5d4ee2c9b60b','2023-12-01 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$2v45qqYI4hj5.PFyfFBKuu3LAxFhZ3ndotR7Hhw97sIen.q61fYZk','user','ak_1cf5c13763739a73','2023-08-04 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=24512;

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


