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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$OI8FFtCNWn20eIp4Vx5hzMHWjXCfJhFxfhv5PhngQBvW5HBRrgQPS','user','ak_9765bc62a368ab74','2023-10-25 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$TJ8DAmnkp0N9VMzPJA1m9xQIdq6y9pSJLvr0fq43XVvuJo3PLLrgu','user','ak_cb1791a8cbd6b6b2','2023-11-28 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$NO2czhNAI3dvlySmflFNLnYRx9R6x4Q3cPnG1hzlFi3kzMh/yqB2b','user','ak_391749c27df74ae5','2023-12-19 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$.u8y6cjnOpCtJvOf5eQY6MO//Ouee59eqUT54rOFQ0j0dRwe7Lwz6','admin','ak_ba9ded377cf3afe8','2023-02-27 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$veDQI5r9HHkkFHGa7j5YOQ6njkBfryxqqswCjkw5xrau61WEZISKB','admin','ak_a4c64ff272e78360','2023-08-16 10:14:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@corp.net','$2b$12$6O9Pn4/aLoRuTgcWnsm0ExjvoV0UNxKRcBxaDcz7q88/shG0FoaFI','user','ak_41b82eb1b212b22b','2023-09-02 10:23:00',NULL);
INSERT INTO `users` VALUES (7,'jane.smith@corp.net','$2b$12$lyQbG3aZ44Fm5alHl9rRVSWCTv8etklG9oeulKfSNTemICCdpLfaq','admin','ak_830980983b5be83e','2023-06-01 10:07: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=15300;

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

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


