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

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

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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$P1vmDsolR3AT0ZvyS6gBp9MC6HiIvB80soJRAjuhBaBmrV6oGHN9n','user','ak_4a71e2280b168cc8','2023-09-19 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$xkwvg6jrTv.Oy60.0eqgEMW9McV3d.FpXgBzOFOIG8H1JgtIS.wdo','admin','ak_60667aa140e9c978','2023-07-23 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$fLfaQQB5KH59SJB.yFDkjrx9JjVJe8gOAig69X.bFa2lBkzKqaBCm','user','ak_0a0dd0609159458f','2023-04-06 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$ETQkj/isqtq1XMDw9q6/GfFYNtbTHSfsp.zvbvvGabmhj2RnaN6yu','user','ak_5022b68599cd77d8','2023-12-13 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$QOgPN/hRsjvUQRD1T0Xb9oi3yc3wBaWnqHwYPYlWc9Ya2oqQnV.k.','user','ak_c9bba18ef1b306c7','2023-10-12 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'admin@internal.io','$2b$12$dk2DctnIwW9OgCt8VIm76NQv.ZMWSaA9I3GZ3JCd9v7pPmtrtTI54','user','ak_4723a56dd0b36c28','2023-03-03 10:11:00',NULL);

