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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$ohj3efdTT8.VhdbIXspwHYjvRYOXtWKUYuwRevS/nnxQBh6KBBdti','user','ak_ab8df53f789e1f57','2023-04-25 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$oUsD2s4.C/e2C3.tDiqgWZ9cc2I/dbcEl0.8xlwEjjJpDH.OPkbn.','user','ak_6d492a6369cf14a3','2023-06-16 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$Jni79FsoaKo4e8pjCfBhSzwz8xpuYnGKbJV5LFB4rcpYDMXg.ddsU','user','ak_00100b661e65e1c6','2023-10-28 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$Bnb/zsrJ1fzBkWg4y0moxVuNJiQ0QDiZYWN/SxgNpdQewiIrTo8.D','user','ak_16cae80b3871b1d2','2023-05-28 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$/d0YHmSb7RTY/tAdUDCtbNvUcIVqfm7MV4g5TTLmH3j.4u0Gz7.Pi','admin','ak_56f76c91e15200e5','2023-03-17 10:05: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=23737;

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


