-- Host: db-master-6.internal    Database: analytics


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

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

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


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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$0japxpSfFoaMWm9pT3pMcUWv4JFJqQ.4Wqk0IDRvNu3r9g2XXfS23','admin','ak_6d1bdcaca69bcc25','2023-05-21 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$QMN.jIKvgg32Ijo8IfccmxR5zhMiVAvZ2yxM2ALWqx4fjsGt1Ygkm','admin','ak_a7712e54d9779eb7','2023-02-13 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$yNnMr0kZROb/OY5/OIzlHgUPD3jX6yoyiTolGeXBvDYfGJtkYfRpa','user','ak_0437752a7e5554fc','2023-02-09 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$pgnOpcPmNYT/UIIyf09u2zcMBUU/f9AKsmrb3jIZKjR8/n2pVXfIM','user','ak_934d11e0c3bc493d','2023-11-07 10:16:00',NULL);

