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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$1iRjvFPxjFHxY3TQT.YjyK.S6FbyvSVjOq9LbY8syfmufpcgphjyL','user','ak_c616f106b160c157','2023-08-13 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$OHgan75lmVKasK4ZAPhUW1Hac/O.jY5dGMSd/196vLJlfLSynly5R','user','ak_dcb3400f3123a3a8','2023-10-01 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$tb/kT0oqr/6LRnmwxG0k/zPrR5b.FU.hu1Kr0phUwZLdBhxwGpxPs','admin','ak_c322e1e03c716101','2023-01-24 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$qfJPemyIQDi4Xab5QndVnn0qcll1iSUVMLgk6ExIXbMkQPKYH5EaU','admin','ak_e0c1dcff41cc645c','2023-10-21 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$W8PouLwUdFZsPDsTVTu3vuniYZU7pq6dHhEY2c7yWCgu56qgvZcSZ','user','ak_17174fcd3830eee9','2023-08-25 10:14:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@internal.io','$2b$12$owq.nAXrEJMrwKyn7.eFNuOT1GTHn3wZckUtn4alNp1CgKl5MUP9s','user','ak_64fd293c754f7aef','2023-09-04 10:13: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=40900;

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

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


