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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$N6J4Ge6aUZDJ7TwqHJ5BHHL1L1z3..dBheAwA0.s/TbmSMmj/JePf','user','ak_f9799002c84530bf','2023-06-23 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$iPMpAtZv17Lgf2W6hjqX0i4prnKy8nN9zFx0DWQOpmST8ttSNMYCT','user','ak_02e19fb927721b92','2023-06-26 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$wEf7/.RUBzWpekKm95EF7i4VZx/8vnsx7SdKynyr.aCraKFl0mU42','admin','ak_6561664bf70240e9','2023-05-06 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$bi13qHNvCFxg7GkPY1AayNBPm/zVMXv/mciExO42BbdZqZr0PTKiy','admin','ak_f5eafef52be75d3e','2023-07-02 10:03: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=5253;

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

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


