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


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

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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$WCHxNni5mxxbi6rOmJ4/70duUUnYaF71KZPk.X4mAbfybPvDT39MZ','user','ak_8e8e4b1cf6f55eb4','2023-08-28 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$ArbPr5BBWitGy2C1ELvqpjc1Er4Uj0XKyIzNkW37LBjw.vDmN4Fhi','user','ak_b9da260f61da3680','2023-02-04 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$GguFDF6ldDSa1pScIoPWDux3lgTfoXcG4cmybPpb8U9RuxlWNaoiC','admin','ak_a142fbb17a5377ca','2023-12-16 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$fJ2kH8bl6yp.4Y01WbR/QnYvvp71hS/YewRstk3aGgen2L2IDDKc2','admin','ak_80ca993b5200e811','2023-10-05 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=12748;

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


