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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$lRexWEbnf6FlSYQOAHhTuppkj.C2yMiqHqnu5Qz7zvWFHFRDJxg.c','user','ak_280d174372b4c7ed','2023-02-13 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$f3mAxEF.F3HE2qQs9lU6V.e3JgRs5jyjGpoSBUwiGAw46zgZej7X3','admin','ak_5fa9e3a141e7e797','2023-06-14 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$PQ4ZJCHcmP21dcuImTyS6tNAglPXdqrAahxBHbirMKowmZ/Ej52q7','admin','ak_9d9c62276ad5c525','2023-10-16 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$Jjv9gKFVKGVmciWajxAiuP2fCT.X7eUT7kCOjkoVUDkSXu2G77qfB','user','ak_3b2c9d1e4e432e86','2023-02-21 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$qOxIrVXvH6O1IcYL17HpW2prD1kN9IeNTRJD8hRhaazPvCUCUejOl','user','ak_c195ee7f4b3cd44e','2023-02-07 10:09: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=44301;

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


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

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


