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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$7oEZd0BFXoYRDtSqVWOWsJGWK2nbLX/.DzP8XBRMmg57c10GwpXUg','user','ak_3fd32fdecf43935b','2023-07-11 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$PMgpK3MnyYeBLgUi00P.uLHbC9dsrYwSVBsdkQn9lPLmQHXcTn6Cv','user','ak_fa14bc3e8c3587c5','2023-06-25 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$GjSsAfGgm9oyIk2VXHJLdApLINeSrMgs6.UuBjdXDgPJ0kW7cvxQl','user','ak_6a2c73aae2d00d79','2023-12-04 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$pcKRz1dTq80Q0kuG2CY6MBvTaUcc05ii.tec1UTtOgDRBz0Gabhj1','user','ak_30bb3fa4fa335096','2023-05-03 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$kdQ20nBUNOAvPpLK8IV6IpRjOAdJ4539uFhzdascOB7hAfH8aTeWk','user','ak_a0b81684f4f222ad','2023-04-06 10:18:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@internal.io','$2b$12$.9Dy0ZIcC0rTqJoTLmbkOYZSadAXwYqY7e1xTqiSZqTe0.27GVUIA','user','ak_1b25075f3e4f0190','2023-05-26 10:15:00',NULL);

--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `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=38109;

--
-- Dumping data for table `audit_log`
--


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

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


