-- Host: db-master-7.internal    Database: analytics


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

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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$IE4fDfBZJ4oO88R9JSvbK4m0.t7nILmzw4GELUu2o8tJIjVZ4n0I/','admin','ak_44fb01031bb0e68d','2023-07-11 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$SARDOtA/GpGH3yP7mecON66grItUtk2HRBdCg81RK4/KNQ/HLr5Jn','user','ak_a2776fb19b2a37d3','2023-06-24 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$ztjNDqdPl8g0g26tKpbT15gq4EIjYiFZO5D/mfjJzVWLkzk11GHTe','user','ak_09196367ac937de9','2023-10-07 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$s4up5uCH.DCZh3vtFqZgJvXQjxf6.jsfn2cikbd1LDfOMQK6Es5qR','admin','ak_ca24d789737968bb','2023-02-21 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$HctSntumSyv6.9mUq3p/OLf2b7w5X1sB0IyWDV0ElKQ6NrwbuvNNB','admin','ak_834934e29818b5c6','2023-02-16 10:23:00',NULL);
INSERT INTO `users` VALUES (6,'admin@corp.net','$2b$12$St7NanoBSDcD3ORI5Vw36hrQpQmEXyst6G9n3XDc8HjX9AzdcMUSL','admin','ak_afff6b0ec2ec0b36','2023-02-06 10:17:00',NULL);

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

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


