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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$0tMIP5J.KyLI22TeUkGRW7WeQzXh5G2QAVnVwH5FpxcWD4UI7I10t','user','ak_6b6ee4db5a494b33','2023-10-28 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$WIxa8mDS9r/5NL3RisRWA0yjh5vgMTF/qcgHaIi16TAyZlx/D0K6K','admin','ak_9fa417057fd84a5b','2023-07-22 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$rFHtkukN.x/fjZ/L2BiKaS5mTbVEh20l9xvPFspTpFq4hmsAfPmgv','admin','ak_ce1e425d493a9007','2023-03-09 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$aHrkhEgURI18I0ReAG4H32pcjTIryGV1s4b1lRA8g5QJ2z/0TiILr','user','ak_c2bb40984a2d2734','2023-07-10 10:14: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=2649;

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


