-- Host: db-master-0.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=4544;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$Cw1bYbwgo3sDyMdRsvTAukwcXJWex10QQN5HuacBVvxiE/XCXNmqr','user','ak_80e6b638dc7b50e2','2023-02-20 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$pnzFX44XQmh.R7VwLR1gZNjR2QMw7/rPVCxmOaikJIuivVYDJnnSA','user','ak_b1415c9ff93d223e','2023-04-10 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$RLUPBojoSsXeoqV1sb.Y2TPBs3vOxhBhh4BnCZFxMohyQvBejjyTZ','user','ak_93379fdbf771f8ac','2023-01-12 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$AHNNeP38zKYM9cvZDPT4Sq6A6rxGwnBRx4Hbm17HSvfV8msRkdpJF','user','ak_98a54b8ce850ce2f','2023-05-15 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$r34.Syjmsq/9Br6JQtxtanU91QFQYGBgIU9WVLAO9kDjrdyfZlLAB','user','ak_59942a5104562f98','2023-06-06 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=44325;

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


