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

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$hjrcnt0wDSZ3a7M8BCErJzQODfcAErYnNSVvVajk1E/XpVmKMKog1','user','ak_448fed2a09a82e18','2023-08-13 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$tlnHtB.88B70LDTozl2GDB63GPEzx3ayH6u9GG/KAEyfkSO7sbDEp','admin','ak_198ff572955414a9','2023-07-23 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$LKqNYhqzuAL3i/OuXGVeNtqhMu23GK2xo25E5zomovha9XwJzyyJN','user','ak_883ec53dda93578c','2023-12-20 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$Now364rCoF7vOYmEVN3FOMXAPrrZOfwae8y9bIOyIzRaLuOXWIiOY','user','ak_d03637545ceef97d','2023-10-18 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$IGFACeGpCLLaQcdi9rpP2mvJTRCmod/txqQrbYlWYBbTieYhMltZ0','admin','ak_008e241bb3ca7704','2023-08-27 10:01: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=14497;

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


