-- Host: db-master-2.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=33550;

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

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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$WOfKH1P1elXLnT8/bJvkulE.wcSWzKm/o/I5jSTkDG0VQY18voC2G','admin','ak_333a1803ab6752ab','2023-01-25 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$kIhsfXd8UImPw2Xr7FC17hutXlymOPCtk.opOjGPT/WFGFP8lOaBA','user','ak_0716e9e4510d1b3e','2023-07-02 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$7.mygfmVfYhFb29H7yIIJvnane3BxeQ.8GTLlZRQ.erCfR9TD/6hG','user','ak_455ab70261bf6e7e','2023-01-05 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$TCKZf0dMnWGfbV5.QUfwSfm2IzBOIjF6vzQvxzO8SUcBEITIGMjHl','admin','ak_612401b7eccd2e3c','2023-05-23 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$.q2dBTP1kAPRC5kQzfAhzt6CqgKr9rkxTPXB/hP.ycataRBvX36mu','admin','ak_cd7fdc61eb4b0914','2023-09-08 10:13:00',NULL);

